Tizen Native API
6.5
|
A set of key frames for a property that can be animated using Dali::Animation::AnimateBetween(). More...
Public Member Functions | |
KeyFrames () | |
Creates an uninitialized KeyFrame handle. | |
~KeyFrames () | |
Destructor. | |
KeyFrames (const KeyFrames &handle) | |
This copy constructor is required for (smart) pointer semantics. | |
KeyFrames & | operator= (const KeyFrames &rhs) |
This assignment operator is required for (smart) pointer semantics. | |
Property::Type | GetType () const |
Gets the type of the key frame. | |
void | Add (float progress, Property::Value value) |
Adds a key frame. | |
void | Add (float progress, Property::Value value, AlphaFunction alpha) |
Adds a key frame. | |
Static Public Member Functions | |
static KeyFrames | New () |
Creates an initialized KeyFrames handle. | |
static KeyFrames | DownCast (BaseHandle handle) |
Downcasts a handle to KeyFrames handle. |
Detailed Description
A set of key frames for a property that can be animated using Dali::Animation::AnimateBetween().
This allows the generation of key frame objects from individual Property::Values. The type of the key frame is specified by the type of the first value to be added. Adding key frames with a different Property::Value type will result in a run time assert.
- Since:
- 3.0, DALi version 1.0.0
Constructor & Destructor Documentation
Creates an uninitialized KeyFrame handle.
This can be initialized with KeyFrame::New(). Calling member functions with an uninitialized KeyFrames handle is not allowed.
- Since:
- 3.0, DALi version 1.0.0
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
- Since:
- 3.0, DALi version 1.0.0
Dali::KeyFrames::KeyFrames | ( | const KeyFrames & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] handle A reference to the copied handle
Member Function Documentation
void Dali::KeyFrames::Add | ( | float | progress, |
Property::Value | value | ||
) |
Adds a key frame.
The key frames should be added in time order.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] progress A progress value between 0.0 and 1.0 [in] value A value
void Dali::KeyFrames::Add | ( | float | progress, |
Property::Value | value, | ||
AlphaFunction | alpha | ||
) |
Adds a key frame.
The key frames should be added in time order.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] progress A progress value between 0.0 and 1.0 [in] value A value [in] alpha The alpha function used to blend to the next keyframe
static KeyFrames Dali::KeyFrames::DownCast | ( | BaseHandle | handle | ) | [static] |
Property::Type Dali::KeyFrames::GetType | ( | ) | const |
Gets the type of the key frame.
If no key frames have been added, this returns Property::NONE.
- Since:
- 3.0, DALi version 1.0.0
- Returns:
- The key frame property type
static KeyFrames Dali::KeyFrames::New | ( | ) | [static] |