4#ifndef FTXUI_ANIMATION_HPP
5#define FTXUI_ANIMATION_HPP
22using Clock = std::chrono::steady_clock;
98 Duration duration = std::chrono::milliseconds(250),
100 Duration delay = std::chrono::milliseconds(0));
104 float to()
const {
return to_; }
Animator(float *from, float to=0.f, Duration duration=std::chrono::milliseconds(250), easing::Function easing_function=easing::Linear, Duration delay=std::chrono::milliseconds(0))
void OnAnimation(Params &)
Params(Duration duration)
Duration duration() const
The duration this animation step represents.
float CircularInOut(float p)
float BounceInOut(float p)
float CubicInOut(float p)
float Linear(float p)
Modeled after the line y = x.
float CircularOut(float p)
float ExponentialInOut(float p)
float ElasticInOut(float p)
float QuarticInOut(float p)
float QuadraticInOut(float p)
float QuarticOut(float p)
float CircularIn(float p)
float ExponentialOut(float p)
float QuadraticOut(float p)
float QuinticOut(float p)
float QuadraticIn(float p)
Modeled after the parabola y = x^2.
float ExponentialIn(float p)
float ElasticOut(float p)
std::function< float(float)> Function
float QuinticInOut(float p)
std::chrono::steady_clock Clock
std::chrono::duration< float > Duration
std::chrono::time_point< Clock > TimePoint
void RequestAnimationFrame()