Tizen Native API
5.0
|
Alpha functions are used in animations to specify the rate of change of the animation parameter over time. More...
Public Types | |
enum | BuiltinFunction |
Enumeration for built-in alpha functions. More... | |
enum | Mode |
Enumeration for all possible functioning modes for the alpha function. More... | |
Public Member Functions | |
AlphaFunction () | |
Default constructor. Creates an alpha function object with the default built-in alpha function. | |
AlphaFunction (BuiltinFunction function) | |
Constructor. Creates an alpha function object with the built-in alpha function passed as a parameter to the constructor. | |
AlphaFunction (AlphaFunctionPrototype function) | |
Constructor. Creates an alpha function object using a pointer to an alpha function passed as a parameter to the constructor. | |
AlphaFunction (const Dali::Vector2 &controlPoint0, const Dali::Vector2 &controlPoint1) | |
Constructor. | |
Vector4 | GetBezierControlPoints () const |
Returns the control points of the alpha function. | |
AlphaFunctionPrototype | GetCustomFunction () const |
Returns the pointer to the custom function. | |
BuiltinFunction | GetBuiltinFunction () const |
Returns the built-in function used by the alpha function. | |
Mode | GetMode () const |
Returns the functioning mode of the alpha function. |
Alpha functions are used in animations to specify the rate of change of the animation parameter over time.
Understanding an animation as a parametric function over time, the alpha function is applied to the parameter of the animation before computing the final animation value.
Enumeration for built-in alpha functions.
Enumeration for all possible functioning modes for the alpha function.
Default constructor. Creates an alpha function object with the default built-in alpha function.
Dali::AlphaFunction::AlphaFunction | ( | BuiltinFunction | function | ) |
Constructor. Creates an alpha function object with the built-in alpha function passed as a parameter to the constructor.
[in] | function | One of the built-in alpha functions |
Constructor. Creates an alpha function object using a pointer to an alpha function passed as a parameter to the constructor.
[in] | function | A pointer to an alpha function |
Dali::AlphaFunction::AlphaFunction | ( | const Dali::Vector2 & | controlPoint0, |
const Dali::Vector2 & | controlPoint1 | ||
) |
Constructor.
Creates a bezier alpha function. The bezier will have the first point at (0,0) and the end point at (1,1).
[in] | controlPoint0 | A Vector2 which will be used as the first control point of the curve |
[in] | controlPoint1 | A Vector2 which will be used as the second control point of the curve |
Returns the control points of the alpha function.
Returns the built-in function used by the alpha function.
Returns the pointer to the custom function.
0
if not defined Mode Dali::AlphaFunction::GetMode | ( | ) | const |
Returns the functioning mode of the alpha function.