ASPiK SDK
VSTGUI::Animation::ExchangeViewAnimation Class Reference

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

#include <animations.h>

Inheritance diagram for VSTGUI::Animation::ExchangeViewAnimation:
VSTGUI::Animation::IAnimationTarget VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Public Types

enum  AnimationStyle {
  kAlphaValueFade = 0, kPushInFromLeft, kPushInFromRight, kPushInFromTop,
  kPushInFromBottom, kPushInOutFromLeft, kPushInOutFromRight
}
 

Public Member Functions

 ExchangeViewAnimation (CView *oldView, CView *newView, AnimationStyle style=kAlphaValueFade)
 
void animationStart (CView *view, IdStringPtr name) override
 animation starts
 
void animationTick (CView *view, IdStringPtr name, float pos) override
 pos is a normalized value between zero and one
 
void animationFinished (CView *view, IdStringPtr name, bool wasCanceled) override
 animation ended
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0
 
void remember () override
 increase refcount
 
virtual int32_t getNbReference () const
 get refcount
 
virtual void beforeDelete ()
 

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< CViewnewView
 
SharedPointer< CViewviewToRemove
 
AnimationStyle style
 
float newViewAlphaValueEnd
 
float oldViewAlphaValueStart
 
CRect destinationRect
 

Detailed Description

exchange a view by another view with an animation

see Animations Support

Constructor & Destructor Documentation

◆ ExchangeViewAnimation()

VSTGUI::Animation::ExchangeViewAnimation::ExchangeViewAnimation ( CView oldView,
CView newView,
AnimationStyle  style = kAlphaValueFade 
)

oldView must be a subview of the animation view


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