|
| PropertyAnimatorType (std::chrono::milliseconds duration, const EasingFunc &func=easing_linear) |
|
| PropertyAnimatorType (T start=T(), T end=T(), std::chrono::milliseconds duration=std::chrono::milliseconds(), const EasingFunc &func=easing_linear) |
|
void | clear_change_callbacks () |
| Clear all callbacks.
|
|
void | on_change (PropertyCallback callback) |
| Register a callback handler for when the value changes.
|
|
| AutoAnimation (EasingScalar start, EasingScalar end, std::chrono::milliseconds duration, const EasingFunc &func=easing_linear, const AnimationCallback &callback=nullptr) |
|
| AutoAnimation (std::chrono::milliseconds duration, const EasingFunc &func=easing_linear, const AnimationCallback &callback=nullptr) |
|
void | interval (std::chrono::milliseconds duration) |
| Change the interval of the internal timer.
|
|
void | resume () override |
| Resume the animation from its current value.
|
|
void | start () override |
| Start the animation from its start value.
|
|
void | stop () override |
| Stop the animation.
|
|
| Animation (EasingScalar start, EasingScalar end, const AnimationCallback &callback, std::chrono::milliseconds duration, EasingFunc func=easing_linear) |
|
EGT_NODISCARD EasingScalar | current () const |
| Get the current value.
|
|
void | duration (std::chrono::milliseconds dur) |
|
void | easing_func (EasingFunc func) |
|
EGT_NODISCARD EasingScalar | ending () const |
| Get the ending value.
|
|
void | ending (EasingScalar end) |
|
bool | next () override |
| Periodic call to the animation.
|
|
void | reverse (bool rev) |
|
void | rounding (bool enable) |
| Should the value be rounded?
|
|
EGT_NODISCARD EasingScalar | starting () const |
| Get the starting value.
|
|
void | starting (EasingScalar start) |
|
| 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.
|
|
template<class T>
class egt::v1::PropertyAnimatorType< T >
Animates a property of a widget.
This as a utility class that makes animating a specific property of a widget easier. Any property that matches PropertyAnimator::property_callback_t can be used.