AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AAnimator Class Reference

Public Member Functions

void setCurve (const std::function< float(float)> &curve)
 
void animate (AView *view, IRenderer &render)
 
void postRender (AView *view, IRenderer &render)
 
void pause ()
 
void setDuration (float period)
 
void setRepeating (bool repeating)
 
const AViewgetView () const
 
void setView (AView *view)
 

Static Public Member Functions

static _< AAnimatorcombine (const AVector< _< AAnimator > > &animators)
 

Protected Member Functions

virtual void doAnimation (AView *view, float theta, IRenderer &render)
 Does the animation (sets matrix, colors, etc...)
 
virtual void doPostRender (AView *view, float theta, IRenderer &render)
 
void translateToCenter (IRenderer &render)
 
void translateToCorner (IRenderer &render)
 

Static Protected Member Functions

static void translateToCenter (AView *view, IRenderer &render)
 
static void translateToCorner (AView *view, IRenderer &render)
 

Detailed Description

Member Function Documentation

◆ doAnimation()

virtual void AAnimator::doAnimation ( AView * view,
float theta,
IRenderer & render )
inlineprotectedvirtual

Does the animation (sets matrix, colors, etc...)

Parameters
viewtarget view to perform animation for.
thetaanimation time value [0;1] where 0 - start of the animation, 1 - end of the animation.
renderrenderer.

Reimplemented in AFocusAnimator, ARotationAnimator, ASizeAnimator, and ATranslationAnimator.


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