Tizen Native API
4.0
|
Registers a property for the given type. More...
Public Member Functions | |
PropertyRegistration (TypeRegistration ®istered, const std::string &name, Property::Index index, Property::Type type, TypeInfo::SetPropertyFunction setFunc, TypeInfo::GetPropertyFunction getFunc) | |
This constructor registers the property with the registered type. |
Registers a property for the given type.
Dali::PropertyRegistration::PropertyRegistration | ( | TypeRegistration & | registered, |
const std::string & | name, | ||
Property::Index | index, | ||
Property::Type | type, | ||
TypeInfo::SetPropertyFunction | setFunc, | ||
TypeInfo::GetPropertyFunction | getFunc | ||
) |
This constructor registers the property with the registered type.
This constructor is for event-thread only properties where the value of the property can be retrieved and set via specified functions.
Functions of the following type may be used for setFunc and getFunc respectively:
void SetProperty( BaseObject* object, Property::Index index, const Property::Value& value ); Property::Value GetProperty( BaseObject* object, Property::Index index );
[in] | registered | The TypeRegistration object |
[in] | name | The name of the property |
[in] | index | The property index. Must be a value between PROPERTY_REGISTRATION_START_INDEX and PROPERTY_REGISTRATION_MAX_INDEX inclusive |
[in] | type | The property value type |
[in] | setFunc | The function to call when setting the property. If NULL, then the property becomes read-only |
[in] | getFunc | The function to call to retrieve the current value of the property. MUST be provided |