CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UIAnimationCurve< T > Class Template Referencefinal

These constants describe the curve of an animation—that is, the relative speed of an animation from start to finish. More...

#include <CeresEngine/UI/UIAnimation.hpp>

Public Types

using FunctionRef = T(*)(double, const T &, const T &)
 

Static Public Member Functions

static UIAnimationCurve EaseInOut (T start, T end)
 Describes an S-curve in which the animation slowly speeds up and then slows down near the end of the animation.
 
static const UIAnimationCurve EaseIn (T start, T end)
 Describes an animation that slows down as it reaches the end.
 
static const UIAnimationCurve EaseOut (T start, T end)
 Describes an animation that slowly speeds up from the start.
 
static const UIAnimationCurve Linear (T start, T end)
 Describes an animation in which there is no change in frame rate.
 

Private Attributes

FunctionRef mFunction
 
double start
 
double end
 

Detailed Description

template<typename T>
class CeresEngine::UIAnimationCurve< T >

These constants describe the curve of an animation—that is, the relative speed of an animation from start to finish.

Member Typedef Documentation

◆ FunctionRef

template<typename T >
using CeresEngine::UIAnimationCurve< T >::FunctionRef = T (*)(double, const T&, const T&)

Member Function Documentation

◆ EaseIn()

template<typename T >
static const UIAnimationCurve CeresEngine::UIAnimationCurve< T >::EaseIn ( T  start,
T  end 
)
inlinestatic

Describes an animation that slows down as it reaches the end.

◆ EaseInOut()

template<typename T >
static UIAnimationCurve CeresEngine::UIAnimationCurve< T >::EaseInOut ( T  start,
T  end 
)
inlinestatic

Describes an S-curve in which the animation slowly speeds up and then slows down near the end of the animation.

This constant is the default.

◆ EaseOut()

template<typename T >
static const UIAnimationCurve CeresEngine::UIAnimationCurve< T >::EaseOut ( T  start,
T  end 
)
inlinestatic

Describes an animation that slowly speeds up from the start.

◆ Linear()

template<typename T >
static const UIAnimationCurve CeresEngine::UIAnimationCurve< T >::Linear ( T  start,
T  end 
)
inlinestatic

Describes an animation in which there is no change in frame rate.

Member Data Documentation

◆ end

template<typename T >
double CeresEngine::UIAnimationCurve< T >::end
private

◆ mFunction

template<typename T >
FunctionRef CeresEngine::UIAnimationCurve< T >::mFunction
private

◆ start

template<typename T >
double CeresEngine::UIAnimationCurve< T >::start
private

The documentation for this class was generated from the following file: