|
Tizen Native API
5.0
|
Dali::Handle is a handle to an internal property owning Dali object that can have constraints applied to it. More...
Public Types | |
| enum | Capability |
| Enumeration for Handle's capabilities that can be queried using Handle::Supports(). More... | |
Public Member Functions | |
| Handle (Dali::Internal::Object *handle) | |
| This constructor is used by Dali New() methods. | |
| Handle () | |
| This constructor provides an uninitialized Dali::Handle. | |
| ~Handle () | |
| Dali::Handle is intended as a base class. | |
| Handle (const Handle &handle) | |
| This copy constructor is required for (smart) pointer semantics. | |
| Handle & | operator= (const Handle &rhs) |
| This assignment operator is required for (smart) pointer semantics. | |
| bool | Supports (Capability capability) const |
| Queries whether an handle supports a given capability. | |
| uint32_t | GetPropertyCount () const |
| Queries how many properties are provided by an handle. | |
| std::string | GetPropertyName (Property::Index index) const |
| Queries the name of a property. | |
| Property::Index | GetPropertyIndex (const std::string &name) const |
| Queries the index of a property. | |
| bool | IsPropertyWritable (Property::Index index) const |
| Queries whether a property can be set using SetProperty(). | |
| bool | IsPropertyAnimatable (Property::Index index) const |
| Queries whether a writable property can be the target of an animation or constraint. | |
| bool | IsPropertyAConstraintInput (Property::Index index) const |
| Queries whether a property can be used as in input to a constraint. | |
| Property::Type | GetPropertyType (Property::Index index) const |
| Queries the type of a property. | |
| void | SetProperty (Property::Index index, const Property::Value &propertyValue) |
| Sets the value of an existing property. | |
| Property::Index | RegisterProperty (const std::string &name, const Property::Value &propertyValue) |
| Registers a new animatable property. | |
| Property::Index | RegisterProperty (const std::string &name, const Property::Value &propertyValue, Property::AccessMode accessMode) |
| Registers a new property. | |
| Property::Value | GetProperty (Property::Index index) const |
| Retrieves a property value. | |
| template<typename T > | |
| T | GetProperty (Property::Index index) const |
| Convenience function for obtaining a property of a known type. | |
| Property::Value | GetCurrentProperty (Property::Index index) const |
| Retrieves the latest value of the property from the scene-graph. | |
| template<typename T > | |
| T | GetCurrentProperty (Property::Index index) const |
| Convenience function for obtaining the current value of a property of a known type. | |
| void | GetPropertyIndices (Property::IndexContainer &indices) const |
| Retrieves all the property indices for this object (including custom properties). | |
| PropertyNotification | AddPropertyNotification (Property::Index index, const PropertyCondition &condition) |
| Adds a property notification to this object. | |
| PropertyNotification | AddPropertyNotification (Property::Index index, int componentIndex, const PropertyCondition &condition) |
| Adds a property notification to this object. | |
| void | RemovePropertyNotification (Dali::PropertyNotification propertyNotification) |
| Removes a property notification from this object. | |
| void | RemovePropertyNotifications () |
| Removes all property notifications from this object. | |
| void | RemoveConstraints () |
| Removes all constraints from an Object. | |
| void | RemoveConstraints (uint32_t tag) |
| Removes all the constraint from the Object with a matching tag. | |
Static Public Member Functions | |
| static Handle | New () |
| Creates a new object. | |
| static Handle | DownCast (BaseHandle handle) |
| Downcasts to a handle. | |
Dali::Handle is a handle to an internal property owning Dali object that can have constraints applied to it.
Enumeration for Handle's capabilities that can be queried using Handle::Supports().
| DYNAMIC_PROPERTIES |
Some objects support dynamic property creation at run-time. New properties are registered by calling RegisterProperty() with an unused property name.
|
| Dali::Handle::Handle | ( | Dali::Internal::Object * | handle | ) |
This constructor provides an uninitialized Dali::Handle.
This should be initialized with a Dali New() method before use. Methods called on an uninitialized Dali::Handle will assert.
Handle handle; // uninitialized handle.SomeMethod(); // unsafe! This will assert handle = SomeClass::New(); // now initialized handle.SomeMethod(); // safe
Dali::Handle is intended as a base class.
This is non-virtual since derived Handle types must not contain data or virtual methods.
| Dali::Handle::Handle | ( | const Handle & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
| [in] | handle | A reference to the copied handle |
| PropertyNotification Dali::Handle::AddPropertyNotification | ( | Property::Index | index, |
| const PropertyCondition & | condition | ||
| ) |
Adds a property notification to this object.
| [in] | index | The index of the property |
| [in] | condition | The notification will be triggered when this condition is satisfied |
| PropertyNotification Dali::Handle::AddPropertyNotification | ( | Property::Index | index, |
| int | componentIndex, | ||
| const PropertyCondition & | condition | ||
| ) |
Adds a property notification to this object.
| [in] | index | The index of the property |
| [in] | componentIndex | Index to the component of a complex property such as a Vector |
| [in] | condition | The notification will be triggered when this condition is satisfied |
| static Handle Dali::Handle::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts to a handle.
If not, the returned handle is left uninitialized.
| [in] | handle | to An object |
Reimplemented in Dali::Toolkit::ScrollView, Dali::Toolkit::TextField, Dali::Toolkit::TextEditor, Dali::Toolkit::Control, Dali::Toolkit::TextLabel, Dali::Renderer, Dali::Actor, Dali::Toolkit::FlexContainer, Dali::Toolkit::VideoView, Dali::Toolkit::Control, Dali::Toolkit::ItemView, Dali::Toolkit::TableView, Dali::Toolkit::Button, Dali::Toolkit::ScrollBar, Dali::Toolkit::ImageView, Dali::Layer, Dali::Toolkit::Slider, Dali::Toolkit::ProgressBar, Dali::RenderTask, Dali::WidgetView::WidgetView, Dali::Toolkit::PushButton, Dali::Toolkit::Alignment, Dali::CameraActor, Dali::Toolkit::Model3dView, Dali::Shader, Dali::Toolkit::Scrollable, Dali::Toolkit::RadioButton, Dali::PanGestureDetector, Dali::Toolkit::CheckBoxButton, Dali::LongPressGestureDetector, Dali::TapGestureDetector, Dali::PinchGestureDetector, Dali::LinearConstrainer, Dali::Path, Dali::GestureDetector, and Dali::CustomActor.
| Property::Value Dali::Handle::GetCurrentProperty | ( | Property::Index | index | ) | const |
Retrieves the latest value of the property from the scene-graph.
| [in] | index | The index of the property |
| T Dali::Handle::GetCurrentProperty | ( | Property::Index | index | ) | const |
Convenience function for obtaining the current value of a property of a known type.
| [in] | index | The index of the property |
| Property::Value Dali::Handle::GetProperty | ( | Property::Index | index | ) | const |
Retrieves a property value.
| [in] | index | The index of the property |
| T Dali::Handle::GetProperty | ( | Property::Index | index | ) | const |
Convenience function for obtaining a property of a known type.
| [in] | index | The index of the property |
| uint32_t Dali::Handle::GetPropertyCount | ( | ) | const |
Queries how many properties are provided by an handle.
This may vary between instances of a class, if dynamic properties are supported.
| Property::Index Dali::Handle::GetPropertyIndex | ( | const std::string & | name | ) | const |
Queries the index of a property.
Returns the first property index that matches the given name exactly.
| [in] | name | The name of the property |
| void Dali::Handle::GetPropertyIndices | ( | Property::IndexContainer & | indices | ) | const |
Retrieves all the property indices for this object (including custom properties).
| [out] | indices | A container of property indices for this object |
| std::string Dali::Handle::GetPropertyName | ( | Property::Index | index | ) | const |
Queries the name of a property.
| [in] | index | The index of the property |
| Property::Type Dali::Handle::GetPropertyType | ( | Property::Index | index | ) | const |
Queries the type of a property.
| [in] | index | The index of the property |
| bool Dali::Handle::IsPropertyAConstraintInput | ( | Property::Index | index | ) | const |
Queries whether a property can be used as in input to a constraint.
| [in] | index | The index of the property |
| bool Dali::Handle::IsPropertyAnimatable | ( | Property::Index | index | ) | const |
Queries whether a writable property can be the target of an animation or constraint.
| [in] | index | The index of the property |
| bool Dali::Handle::IsPropertyWritable | ( | Property::Index | index | ) | const |
Queries whether a property can be set using SetProperty().
| [in] | index | The index of the property |
| static Handle Dali::Handle::New | ( | ) | [static] |
Creates a new object.
Reimplemented in Dali::Toolkit::ScrollView, Dali::Toolkit::TextField, Dali::Toolkit::TextEditor, Dali::Toolkit::TextLabel, Dali::Actor, Dali::Toolkit::FlexContainer, Dali::Layer, Dali::Toolkit::Control, Dali::Toolkit::VideoView, Dali::Toolkit::Slider, Dali::Toolkit::ProgressBar, Dali::Toolkit::PushButton, Dali::Toolkit::ImageView, Dali::CameraActor, Dali::Toolkit::RadioButton, Dali::PanGestureDetector, Dali::Toolkit::CheckBoxButton, Dali::Toolkit::Model3dView, Dali::TapGestureDetector, Dali::LongPressGestureDetector, Dali::PinchGestureDetector, Dali::LinearConstrainer, and Dali::Path.
This assignment operator is required for (smart) pointer semantics.
| [in] | rhs | A reference to the copied handle |
| Property::Index Dali::Handle::RegisterProperty | ( | const std::string & | name, |
| const Property::Value & | propertyValue | ||
| ) |
Registers a new animatable property.
| [in] | name | The name of the property |
| [in] | propertyValue | The new value of the property |
| Property::Index Dali::Handle::RegisterProperty | ( | const std::string & | name, |
| const Property::Value & | propertyValue, | ||
| Property::AccessMode | accessMode | ||
| ) |
Registers a new property.
Properties can be set as non animatable using property attributes.
| [in] | name | The name of the property |
| [in] | propertyValue | The new value of the property |
| [in] | accessMode | The property access mode (writable, animatable etc) |
| void Dali::Handle::RemoveConstraints | ( | ) |
Removes all constraints from an Object.
| void Dali::Handle::RemoveConstraints | ( | uint32_t | tag | ) |
Removes all the constraint from the Object with a matching tag.
| [in] | tag | The tag of the constraints which will be removed |
| void Dali::Handle::RemovePropertyNotification | ( | Dali::PropertyNotification | propertyNotification | ) |
Removes a property notification from this object.
| [in] | propertyNotification | The propertyNotification to be removed |
Removes all property notifications from this object.
| void Dali::Handle::SetProperty | ( | Property::Index | index, |
| const Property::Value & | propertyValue | ||
| ) |
Sets the value of an existing property.
Property should be write-able. Setting a read-only property is a no-op.
| [in] | index | The index of the property |
| [in] | propertyValue | The new value of the property |
| bool Dali::Handle::Supports | ( | Capability | capability | ) | const |
Queries whether an handle supports a given capability.
| [in] | capability | The queried capability |