HikoGUI
A low latency retained GUI
|
#include <hikogui/algorithm/animator.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
animator (std::chrono::nanoseconds animation_duration) noexcept | |
Constructor. | |
animator_state | update (value_type new_value, utc_nanoseconds current_time) noexcept |
Update the value and time. | |
animator_state | is_animating () const noexcept |
Check if the animation is currently running. | |
value_type | current_value () const noexcept |
The interpolated value between start and end value. | |
A type that gets animated between two values.
|
inlinenoexcept |
Constructor.
animation_duration | The duration to animate from start to end value. |
|
inlinenoexcept |
The interpolated value between start and end value.
|
inlinenoexcept |
Check if the animation is currently running.
|
inlinenoexcept |
Update the value and time.
new_value | The value to animate toward. |
current_time | The current time. |