Class KeyFrames
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A set of key frames for a property that can be animated using DALi animation.
This allows the generation of key frame objects from individual Property::Values.
C#Copypublic class KeyFrames : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic KeyFrames()
API Level: 3
Methods
Declaration
C#Copypublic void Add(float progress, object value)
Parameters
Type | Name | Description |
---|---|---|
Single | progress | A progress value between 0.0 and 1.0. |
Object | value | A value. |
API Level: 3
Declaration
C#Copypublic void Add(float progress, object value, AlphaFunction alpha)
Parameters
Type | Name | Description |
---|---|---|
Single | progress | A progress value between 0.0 and 1.0. |
Object | value | A value |
AlphaFunction | alpha | The alpha function used to blend to the next keyframe. |
API Level: 3
Declaration
C#Copypublic void Add(float progress, PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
Single | progress | A progress value between 0.0 and 1.0. |
PropertyValue | value | A value. |
API Level: 3
Declaration
C#Copypublic void Add(float progress, PropertyValue value, AlphaFunction alpha)
Parameters
Type | Name | Description |
---|---|---|
Single | progress | A progress value between 0.0 and 1.0. |
PropertyValue | value | A value. |
AlphaFunction | alpha | The alpha function used to blend to the next keyframe. |
API Level: 3
GetKeyFrame(UInt32, out Single, PropertyValue)
Get the progress and value from specific key frame.
If index is greater or equal than total key frame count, progress and value is not changed.
Declaration
C#Copypublic void GetKeyFrame(uint index, out float progress, PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | The index of keyframe. |
Single | progress | A progress value between 0.0 and 1.0. |
PropertyValue | value | A value. |
Declaration
C#Copypublic uint GetKeyFrameCount()
Returns
Type | Description |
---|---|
UInt32 |
GetType()
Gets the type of the key frame.
An empty key frame will return PropertyType.None, wheras an initialised
key frame object will return the type of it's first element.
Declaration
C#Copypublic PropertyType GetType()
Returns
Type | Description |
---|---|
PropertyType | The key frame property type |
API Level: 3
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
SetKeyFrameValue(UInt32, PropertyValue)
Set the value to specific key frame.
If index is greater or equal than total key frame count or value's PropertyType is not matched, Nothing happened.
Declaration
C#Copypublic void SetKeyFrameValue(uint index, PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | The index of keyframe. |
PropertyValue | value | A value. |