1.10 |
Simple delay, useful to insert a delay in an AnimationSequence. More...
#include <animation.h>
Public Member Functions | |
AnimationDelay ()=delete | |
AnimationDelay (std::chrono::milliseconds duration) noexcept | |
bool | next () override |
Periodic call to the animation. | |
void | resume () override |
Resume the animation. | |
void | start () override |
Start the animation. | |
void | stop () override |
Stop the animation. | |
Public Member Functions inherited from AnimationBase | |
AnimationBase ()=default | |
AnimationBase (AnimationBase &&) noexcept=default | |
AnimationBase (const AnimationBase &)=delete | |
virtual | ~AnimationBase () noexcept=default |
void | add_callback (AnimationCallback callback) |
Register a callback for the animation. | |
void | clear_callbacks () |
Clear all callbacks. | |
AnimationBase & | operator= (AnimationBase &&) noexcept=default |
AnimationBase & | operator= (const AnimationBase &)=delete |
virtual EGT_NODISCARD bool | running () const |
Returns true if the animation is currently running. | |
Protected Attributes | |
Timer | m_timer |
One-shot timer. | |
Protected Attributes inherited from AnimationBase | |
std::vector< AnimationCallback > | m_callbacks |
Registered callbacks for the animation. | |
bool | m_running {false} |
The running state of the animation. | |
Simple delay, useful to insert a delay in an AnimationSequence.
This basically established as one-shot timer to create a delay. It performs no easing curve function evaluation.
|
delete |
|
inlineexplicitnoexcept |
duration | The delay time for the animation. |
|
inlineoverridevirtual |
Periodic call to the animation.
This must be called until it returns false. When it returns false, the animation is done.
Implements AnimationBase.
|
inlineoverridevirtual |
Resume the animation.
Implements AnimationBase.
|
inlineoverridevirtual |
Start the animation.
Implements AnimationBase.
|
inlineoverridevirtual |
Stop the animation.
Implements AnimationBase.
|
protected |
One-shot timer.