Class KeyFrames
Definition
- Assembly:
- Tizen.NUI.dll
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.
public class KeyFrames : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceKeyFrames()
Creates an initialized KeyFrames handle.
Declaration
public KeyFrames()
Methods
View SourceAdd(float, object, AlphaFunction)
Adds a key frame.
Declaration
public void Add(float progress, object value, AlphaFunction alpha)
Parameters
Type | Name | Description |
---|---|---|
float | 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. |
Add(float, object)
Adds a key frame.
Declaration
public void Add(float progress, object value)
Parameters
Type | Name | Description |
---|---|---|
float | progress | A progress value between 0.0 and 1.0. |
object | value | A value. |
Add(float, PropertyValue, AlphaFunction)
Adds a key frame.
Declaration
public void Add(float progress, PropertyValue value, AlphaFunction alpha)
Parameters
Type | Name | Description |
---|---|---|
float | 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. |
Add(float, PropertyValue)
Adds a key frame.
Declaration
public void Add(float progress, PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
float | progress | A progress value between 0.0 and 1.0. |
PropertyValue | value | A value. |
GetKeyFrame(uint, out float, 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
public void GetKeyFrame(uint index, out float progress, PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The index of keyframe. |
float | progress | A progress value between 0.0 and 1.0. |
PropertyValue | value | A value. |
GetKeyFrameCount()
Get the number of added key frame.
Declaration
public uint GetKeyFrameCount()
Returns
Type | Description |
---|---|
uint |
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
public PropertyType GetType()
Returns
Type | Description |
---|---|
PropertyType | The key frame property type |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
View SourceSetKeyFrameValue(uint, 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
public void SetKeyFrameValue(uint index, PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The index of keyframe. |
PropertyValue | value | A value. |