Class Animatable
Definition
- Assembly:
- Tizen.NUI.dll
Animatable.
public class Animatable : BaseHandle, INotifyPropertyChanged, IDisposable
- Inheritance
- Derived
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceAnimatable()
Create an instance of animatable.
Declaration
public Animatable()
Methods
View SourceAddPropertyNotification(string, PropertyCondition)
Adds a property notification to this object.
Declaration
public PropertyNotification AddPropertyNotification(string property, PropertyCondition condition)
Parameters
Type | Name | Description |
---|---|---|
string | property | The name of the property. |
PropertyCondition | condition | The notification will be triggered when this condition is satisfied. |
Returns
Type | Description |
---|---|
PropertyNotification | A handle to the newly created PropertyNotification. |
GetProperty(int)
Retrieves a property value.
Declaration
public PropertyValue GetProperty(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the property. |
Returns
Type | Description |
---|---|
PropertyValue | The property value. |
GetPropertyIndex(string)
Queries the index of a property.
Declaration
public int GetPropertyIndex(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the property. |
Returns
Type | Description |
---|---|
int | The index of the property. |
GetPropertyName(int)
Queries the name of a property.
Declaration
public string GetPropertyName(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the property. |
Returns
Type | Description |
---|---|
string | The name of the property. |
GetPropertyType(int)
Queries the type of a property.
Declaration
public PropertyType GetPropertyType(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the property. |
Returns
Type | Description |
---|---|
PropertyType | The type of the property. |
IsPropertyAnimatable(int)
whether a writable property can be the target of an animation.
Declaration
public bool IsPropertyAnimatable(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the property. |
Returns
Type | Description |
---|---|
bool | True if the property is animatable. |
IsPropertyWritable(int)
Queries whether a property can be writable.
Declaration
public bool IsPropertyWritable(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the property. |
Returns
Type | Description |
---|---|
bool | True if the property is writable. |
RegisterProperty(string, PropertyValue, PropertyAccessMode)
Registers a new animatable property.
Declaration
public int RegisterProperty(string name, PropertyValue propertyValue, PropertyAccessMode accessMode)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the property. |
PropertyValue | propertyValue | The new value of the property. |
PropertyAccessMode | accessMode | The property access mode (writable, animatable etc). |
Returns
Type | Description |
---|---|
int | The type of the property. |
RegisterProperty(string, PropertyValue)
Registers a new animatable property.
Declaration
public int RegisterProperty(string name, PropertyValue propertyValue)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the property. |
PropertyValue | propertyValue | The new value of the property. |
Returns
Type | Description |
---|---|
int | The type of the property. |
RemovePropertyNotification(PropertyNotification)
Removes a property notification from this object.
Declaration
public void RemovePropertyNotification(PropertyNotification propertyNotification)
Parameters
Type | Name | Description |
---|---|---|
PropertyNotification | propertyNotification | The propertyNotification to be removed. |
RemovePropertyNotifications()
Removes a property notification from this object.
Declaration
public void RemovePropertyNotifications()
SetProperty(int, PropertyValue)
Sets the value of an existing property.
Declaration
public void SetProperty(int index, PropertyValue propertyValue)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the property. |
PropertyValue | propertyValue | The new value of the property. |