9#include <aegis/types.hpp>
UIRepeatMode
How an animation behaves after reaching its end.
@ Loop
Restart from the beginning.
@ PingPong
Reverse direction each cycle.
@ Once
Play once, then complete.
int remainingRepeats
-1 = infinite when mode is not Once.
UIAnimation(UIAnimation &&)=delete
bool tick(ae::q20_12_t dt)
Advances the animation by dt seconds (Q20.12).
UIAnimation & operator=(UIAnimation &&)=delete
virtual ~UIAnimation()=default
virtual void reset()
Resets runtime state so the animation can play again (used by Loop).
void setRepeat(UIRepeatMode mode, int count=-1)
bool applyRepeat()
Applies repeat policy after a completed cycle.
UIAnimation(const UIAnimation &)=delete
UIAnimation & operator=(const UIAnimation &)=delete
virtual bool onUpdate(ae::q20_12_t dt)=0
Per-frame update.