51 base_easing_element(
const easing::func<T>& func, T fStart = T(0.f), T fEnd = T(1.f), T fSpeed = T(1.f)) noexcept;
56 void start() noexcept;
61 void pause() noexcept;
76 void reset() noexcept;
83 [[nodiscard]] T
update(T fDeltaTime) noexcept;
95 [[nodiscard]] T
get()
const noexcept;
107 [[nodiscard]] T
get_speed()
const noexcept;
113 [[nodiscard]] status
get_status()
const noexcept;
125 [[nodiscard]]
bool is_started()
const noexcept;
131 [[nodiscard]]
bool is_paused()
const noexcept;
140 easing::func<T> m_EasingFunc;
141 status m_eStatus = status::not_started;
143 T m_fCurrentX = T(0.f);
144 T m_fCurrentY = T(0.f);
145 T m_fStartY = T(0.f);
An updatable element representing the value of the easing function at a given time.
T get() const noexcept
Get current value of element.
void set_speed(T fSpeed) noexcept
Set speed value.
bool is_not_started() const noexcept
Check if element is not started.
T update(T fDeltaTime) noexcept
Update element corresponding to easing function.
status get_status() const noexcept
Get element status.
void finish() noexcept
Mark element as finished.
void reset() noexcept
Mark element as inactive.
void pause() noexcept
Pause element if started.
bool is_paused() const noexcept
Check if element is paused.
T get_fraction() const noexcept
Get a fraction indicating how much of the element has played.
void resume() noexcept
Resume updating if paused.
bool is_started() const noexcept
Check if element is started.
T get_speed() const noexcept
Get speed value.
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
bool is_finished() const noexcept
Check if element is finished.
void start() noexcept
Mark element as active and let it update.
File contains easing functions.