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#
Copy
public class KeyFrames : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Implements

Constructors

View Source

KeyFrames()

Creates an initialized KeyFrames handle.

Declaration
C#
Copy
public KeyFrames()
API Level: 3

Methods

View Source

Add(Single, Object)

Adds a key frame.

Declaration
C#
Copy
public 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
View Source

Add(Single, Object, AlphaFunction)

Adds a key frame.

Declaration
C#
Copy
public 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
View Source

Add(Single, PropertyValue)

Adds a key frame.

Declaration
C#
Copy
public 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
View Source

Add(Single, PropertyValue, AlphaFunction)

Adds a key frame.

Declaration
C#
Copy
public 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
View Source

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#
Copy
public 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.

View Source

GetKeyFrameCount()

Get the number of added key frame.

Declaration
C#
Copy
public uint GetKeyFrameCount()
Returns
Type Description
UInt32
View Source

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#
Copy
public PropertyType GetType()
Returns
Type Description
PropertyType

The key frame property type

API Level: 3
View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
Tizen.System.Runtime.InteropServices.HandleRef swigCPtr
Overrides
View Source

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#
Copy
public void SetKeyFrameValue(uint index, PropertyValue value)
Parameters
Type Name Description
UInt32 index

The index of keyframe.

PropertyValue value

A value.

Implements

Extension Methods