VSTGUI  4.3
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
ExchangeViewAnimation Class Reference

exchange a view by another view with an animation More...

+ Inheritance diagram for ExchangeViewAnimation:
+ Collaboration 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)
 
 ~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 void beforeDelete ()
 
Reference Counting Methods
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...
 
Message Methods
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

CViewnewView
 
CViewviewToRemove
 
AnimationStyle style
 
float newViewAlphaValueEnd
 
float oldViewAlphaValueStart
 
CRect destinationRect
 

Detailed Description

exchange a view by another view with an animation

see Animations Support

Member Enumeration Documentation

Enumerator
kAlphaValueFade 
kPushInFromLeft 
kPushInFromRight 
kPushInFromTop 
kPushInFromBottom 
kPushInOutFromLeft 
kPushInOutFromRight 

Constructor & Destructor Documentation

ExchangeViewAnimation ( CView oldView,
CView newView,
AnimationStyle  style = kAlphaValueFade 
)

oldView must be a subview of the animation view

+ Here is the call graph for this function:

+ Here is the call graph for this function:

Member Function Documentation

void animationFinished ( CView view,
IdStringPtr  name,
bool  wasCanceled 
)
virtual

animation ended

Implements IAnimationTarget.

+ Here is the call graph for this function:

void animationStart ( CView view,
IdStringPtr  name 
)
virtual

animation starts

Implements IAnimationTarget.

+ Here is the call graph for this function:

void animationTick ( CView view,
IdStringPtr  name,
float  pos 
)
virtual

pos is a normalized value between zero and one

Implements IAnimationTarget.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void beforeDelete ( )
inlinevirtualinherited

Reimplemented in CView.

+ Here is the caller graph for this function:

void doAlphaFade ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void doPushInFromBottom ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void doPushInFromLeft ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void doPushInFromRight ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void doPushInFromTop ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void doPushInOutFromLeft ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void doPushInOutFromRight ( float  pos)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

+ Here is the call graph for this function:

virtual int32_t getNbReference ( ) const
inlinevirtualinherited

get refcount

void init ( )
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void remember ( )
inlinevirtualinherited

increase refcount

+ Here is the caller graph for this function:

void updateViewSize ( CView view,
const CRect rect 
)
protected

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

CRect destinationRect
protected
CView* newView
protected
float newViewAlphaValueEnd
protected
float oldViewAlphaValueStart
protected
AnimationStyle style
protected
CView* viewToRemove
protected

The documentation for this class was generated from the following files: