|
qxLib
|
An updatable element representing the value of the easing function at a given time. More...
#include <easing_element.h>
Public Member Functions | |
| base_easing_element (const easing::func< T > &func, T fStart=T(0.f), T fEnd=T(1.f), T fSpeed=T(1.f)) noexcept | |
| base_easing_element object constructor More... | |
| void | start () noexcept |
| Mark element as active and let it update. | |
| void | pause () noexcept |
| Pause element if started. | |
| void | resume () noexcept |
| Resume updating if paused. | |
| void | finish () noexcept |
| Mark element as finished. | |
| void | reset () noexcept |
| Mark element as inactive. | |
| T | update (T fDeltaTime) noexcept |
| Update element corresponding to easing function. More... | |
| void | set_speed (T fSpeed) noexcept |
| Set speed value. More... | |
| T | get () const noexcept |
| Get current value of element. More... | |
| T | get_fraction () const noexcept |
| Get a fraction indicating how much of the element has played. More... | |
| T | get_speed () const noexcept |
| Get speed value. More... | |
| status | get_status () const noexcept |
| Get element status. More... | |
| bool | is_not_started () const noexcept |
| Check if element is not started. More... | |
| bool | is_started () const noexcept |
| Check if element is started. More... | |
| bool | is_paused () const noexcept |
| Check if element is paused. More... | |
| bool | is_finished () const noexcept |
| Check if element is finished. More... | |
An updatable element representing the value of the easing function at a given time.
| T | - floating point ish value |
Definition at line 28 of file easing_element.h.
|
inlinenoexcept |
base_easing_element object constructor
| func | - easing function |
| fStart | - start value |
| fEnd | - end value |
| fSpeed | - speed of updating |
Definition at line 14 of file easing_element.inl.
|
inlinenoexcept |
Get current value of element.
| - | current value of element |
Definition at line 96 of file easing_element.inl.
|
inlinenoexcept |
Get a fraction indicating how much of the element has played.
| - | fraction [0.0, 1.0] |
Definition at line 102 of file easing_element.inl.
|
inlinenoexcept |
|
inlinenoexcept |
Get element status.
| - | element status |
Definition at line 114 of file easing_element.inl.
|
inlinenoexcept |
Check if element is finished.
| - | true if element is finished |
Definition at line 138 of file easing_element.inl.
|
inlinenoexcept |
Check if element is not started.
| - | true if element is not started |
Definition at line 120 of file easing_element.inl.
|
inlinenoexcept |
Check if element is paused.
| - | true if element is paused |
Definition at line 132 of file easing_element.inl.
|
inlinenoexcept |
Check if element is started.
| - | true if element is started |
Definition at line 126 of file easing_element.inl.
|
inlinenoexcept |
Set speed value.
| fSpeed | - new speed value |
Definition at line 89 of file easing_element.inl.
|
inlinenoexcept |
Update element corresponding to easing function.
| fDeltaTime | - delta time |
| - | the portion of time that was not used |
Definition at line 62 of file easing_element.inl.