4#ifndef FTXUI_ANIMATION_HPP
5#define FTXUI_ANIMATION_HPP
18using Clock = std::chrono::steady_clock;
35using Function = std::function<
float(
float)>;
40float QuadraticIn(
float p);
41float QuadraticOut(
float p);
42float QuadraticInOut(
float p);
45float CubicIn(
float p);
46float CubicOut(
float p);
47float CubicInOut(
float p);
50float QuarticIn(
float p);
51float QuarticOut(
float p);
52float QuarticInOut(
float p);
55float QuinticIn(
float p);
56float QuinticOut(
float p);
57float QuinticInOut(
float p);
61float SineOut(
float p);
62float SineInOut(
float p);
65float CircularIn(
float p);
66float CircularOut(
float p);
67float CircularInOut(
float p);
70float ExponentialIn(
float p);
71float ExponentialOut(
float p);
72float ExponentialInOut(
float p);
75float ElasticIn(
float p);
76float ElasticOut(
float p);
77float ElasticInOut(
float p);
81float BackOut(
float p);
82float BackInOut(
float p);
85float BounceIn(
float p);
86float BounceOut(
float p);
87float BounceInOut(
float p);
94 Duration duration = std::chrono::milliseconds(250),
100 float to()
const {
return to_; }
107 easing::Function easing_function_;
void OnAnimation(Params &)
Params(Duration duration)
Duration duration() const
The duration this animation step represents.
std::chrono::steady_clock Clock
std::chrono::duration< float > Duration
std::chrono::time_point< Clock > TimePoint
void RequestAnimationFrame()
std::shared_ptr< T > Make(Args &&... args)