52 base_easing_element(
const easing::func<T>& func, T fStart = T(0.f), T fEnd = T(1.f), T fSpeed = T(1.f)) noexcept;
57 void start() noexcept;
62 void pause() noexcept;
77 void reset() noexcept;
84 [[nodiscard]] T
update(T fDeltaTime) noexcept;
96 [[nodiscard]] T
get()
const noexcept;
108 [[nodiscard]] T
get_speed()
const noexcept;
114 [[nodiscard]] status
get_status()
const noexcept;
126 [[nodiscard]]
bool is_started()
const noexcept;
132 [[nodiscard]]
bool is_paused()
const noexcept;
141 easing::func<T> m_EasingFunc;
142 status m_eStatus = status::not_started;
144 T m_fCurrentX = T(0.f);
145 T m_fCurrentY = T(0.f);
146 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.