|
VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
|
exchange a view by another view with an animation More...
#include <animations.h>
Inheritance diagram for ExchangeViewAnimation:Public Types | |
| enum | AnimationStyle { kAlphaValueFade = 0 , kPushInFromLeft , kPushInFromRight , kPushInFromTop , kPushInFromBottom , kPushInOutFromLeft , kPushInOutFromRight } |
Public Member Functions | |
| ExchangeViewAnimation (CView *oldView, CView *newView, AnimationStyle style=kAlphaValueFade) | |
| oldView must be a subview of the animation view More... | |
| ~ExchangeViewAnimation () noexcept override | |
| void | animationStart (CView *view, IdStringPtr name) override |
| animation starts More... | |
| void | animationTick (CView *view, IdStringPtr name, float pos) override |
| pos is a normalized value between zero and one More... | |
| void | animationFinished (CView *view, IdStringPtr name, bool wasCanceled) override |
| animation ended More... | |
Public Member Functions inherited from IAnimationTarget | |
| virtual | ~IAnimationTarget () noexcept=default |
| virtual void | animationStart (CView *view, IdStringPtr name)=0 |
| animation starts More... | |
| virtual void | animationTick (CView *view, IdStringPtr name, float pos)=0 |
| pos is a normalized value between zero and one More... | |
| virtual void | animationFinished (CView *view, IdStringPtr name, bool wasCanceled)=0 |
| animation ended More... | |
Public Member Functions inherited from ReferenceCounted< T > | |
| ReferenceCounted ()=default | |
| virtual | ~ReferenceCounted () noexcept=default |
| ReferenceCounted (const ReferenceCounted &) | |
| ReferenceCounted & | operator= (const ReferenceCounted &) |
| void | forget () override |
| decrease refcount and delete object if refcount == 0 More... | |
| void | remember () override |
| increase refcount More... | |
| virtual int32_t | getNbReference () const |
| get refcount More... | |
| virtual void | forget ()=0 |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember ()=0 |
| increase refcount More... | |
Protected Member Functions | |
| void | init () |
| void | doAlphaFade (float pos) |
| void | doPushInFromLeft (float pos) |
| void | doPushInFromRight (float pos) |
| void | doPushInFromTop (float pos) |
| void | doPushInFromBottom (float pos) |
| void | doPushInOutFromLeft (float pos) |
| void | doPushInOutFromRight (float pos) |
| void | updateViewSize (CView *view, const CRect &rect) |
Protected Attributes | |
| SharedPointer< CView > | newView |
| SharedPointer< CView > | viewToRemove |
| AnimationStyle | style |
| float | newViewAlphaValueEnd |
| float | oldViewAlphaValueStart |
| CRect | destinationRect |
exchange a view by another view with an animation
see Animations Support
| enum AnimationStyle |
| ExchangeViewAnimation | ( | CView * | oldView, |
| CView * | newView, | ||
| AnimationStyle | style = kAlphaValueFade |
||
| ) |
oldView must be a subview of the animation view
|
overridenoexcept |
|
overridevirtual |
animation ended
Implements IAnimationTarget.
|
overridevirtual |
animation starts
Implements IAnimationTarget.
|
overridevirtual |
pos is a normalized value between zero and one
Implements IAnimationTarget.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |