VSTGUI
4.4
Graphical User Interface Framework not only for VST plugins
|
exchange a view by another view with an animation More...
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 () | |
void | animationStart (CView *view, IdStringPtr name) |
animation starts More... | |
void | animationTick (CView *view, IdStringPtr name, float pos) |
pos is a normalized value between zero and one More... | |
void | animationFinished (CView *view, IdStringPtr name, bool wasCanceled) |
animation ended More... | |
![]() | |
virtual | ~IAnimationTarget () |
![]() | |
CBaseObject () | |
virtual | ~CBaseObject () |
virtual void | beforeDelete () |
virtual void | forget () |
decrease refcount and delete object if refcount == 0 More... | |
virtual void | remember () |
increase refcount More... | |
virtual int32_t | getNbReference () const |
get refcount More... | |
virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
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 | |
CView * | newView |
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
|
virtual |
animation ended
Implements IAnimationTarget.
|
virtual |
animation starts
Implements IAnimationTarget.
|
virtual |
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 |