|
persona-3-dual
A DS demake of Persona 3
|
Runs a void callback once, then completes. More...
#include <UICallbackAnimation.hpp>


Public Member Functions | |
| UICallbackAnimation (std::function< void()> f) | |
| Public Member Functions inherited from UIAnimation | |
| virtual | ~UIAnimation ()=default |
| UIAnimation (const UIAnimation &)=delete | |
| UIAnimation & | operator= (const UIAnimation &)=delete |
| UIAnimation (UIAnimation &&)=delete | |
| UIAnimation & | operator= (UIAnimation &&)=delete |
| bool | tick (ae::q20_12_t dt) |
Advances the animation by dt seconds (Q20.12). | |
| virtual void | reverse () |
| virtual void | reset () |
| Resets runtime state so the animation can play again (used by Loop). | |
| void | pause () |
| void | resume () |
| void | cancel () |
| bool | isCancelled () const |
| bool | isPaused () const |
| bool | isDone () const |
| void | setRepeat (UIRepeatMode mode, int count=-1) |
Protected Member Functions | |
| bool | onUpdate (ae::q20_12_t) override |
| Per-frame update. | |
| Protected Member Functions inherited from UIAnimation | |
| UIAnimation ()=default | |
| bool | applyRepeat () |
| Applies repeat policy after a completed cycle. | |
Private Attributes | |
| std::function< void()> | fn |
Additional Inherited Members | |
| Protected Attributes inherited from UIAnimation | |
| bool | paused = false |
| bool | cancelled = false |
| bool | done = false |
| ae::q20_12_t | elapsed {0} |
| UIRepeatMode | repeatMode = UIRepeatMode::Once |
| int | remainingRepeats = -1 |
| -1 = infinite when mode is not Once. | |
Runs a void callback once, then completes.
Definition at line 16 of file UICallbackAnimation.hpp.
|
inlineexplicit |
Definition at line 19 of file UICallbackAnimation.hpp.
|
inlineoverrideprotectedvirtual |
Per-frame update.
Implements UIAnimation.
Definition at line 24 of file UICallbackAnimation.hpp.
|
private |
Definition at line 34 of file UICallbackAnimation.hpp.