Tizen Native API
|
This is used to issue a notification upon a condition of the property being met. More...
Public Types | |
enum | NotifyMode |
Enumeration to describe how to check condition. More... | |
Public Member Functions | |
PropertyNotification () | |
Create an uninitialized PropertyNotification; this can be initialized with PropertyNotification::New(). | |
~PropertyNotification () | |
Destructor. | |
PropertyNotification (const PropertyNotification &handle) | |
This copy constructor is required for (smart) pointer semantics. | |
PropertyNotification & | operator= (const PropertyNotification &rhs) |
This assignment operator is required for (smart) pointer semantics. | |
PropertyCondition | GetCondition () |
Get the condition of this notification. | |
const PropertyCondition & | GetCondition () const |
Get the condition of this notification. | |
Dali::Handle | GetTarget () const |
Get the target handle that this notification is observing. | |
Property::Index | GetTargetProperty () const |
Get the target handle's property index that this notification is observing. | |
void | SetNotifyMode (NotifyMode mode) |
Sets the Notification mode. | |
NotifyMode | GetNotifyMode () |
Retrieves the current Notification mode. | |
bool | GetNotifyResult () const |
Gets the result of the last condition check that caused a signal emit, useful when using NotifyOnChanged mode and need to know what it changed to. | |
PropertyNotifySignalType & | NotifySignal () |
Connect to this signal to be notified when the notification has occurred. | |
Static Public Member Functions | |
static PropertyNotification | DownCast (BaseHandle handle) |
Downcast a handle to PropertyNotification handle. |
Detailed Description
This is used to issue a notification upon a condition of the property being met.
For example checking if Actor::POSITION_X > 100.0.
- Since :
- 2.4
- See also:
- Dali::PropertyCondition
Member Enumeration Documentation
Enumeration to describe how to check condition.
- Since :
- 2.4
- Enumerator:
Constructor & Destructor Documentation
Create an uninitialized PropertyNotification; this can be initialized with PropertyNotification::New().
Calling member functions with an uninitialized Dali::Object is not allowed.
- Since :
- 2.4
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
- Since :
- 2.4
Dali::PropertyNotification::PropertyNotification | ( | const PropertyNotification & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Since :
- 2.4
- Parameters:
-
[in] handle A reference to the copied handle
Member Function Documentation
static PropertyNotification Dali::PropertyNotification::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcast a handle to PropertyNotification handle.
If handle points to an PropertyNotification object the downcast produces valid handle. If not the returned handle is left uninitialized.
- Since :
- 2.4
- Parameters:
-
[in] handle to An object
- Returns:
- handle to a PropertyNotification object or an uninitialized handle
Get the condition of this notification.
- Since :
- 2.4
- Returns:
- The condition is returned
const PropertyCondition& Dali::PropertyNotification::GetCondition | ( | ) | const |
Get the condition of this notification.
- Since :
- 2.4
- Returns:
- The condition is returned
Retrieves the current Notification mode.
- Since :
- 2.4
- Returns:
- Notification mode.
bool Dali::PropertyNotification::GetNotifyResult | ( | ) | const |
Gets the result of the last condition check that caused a signal emit, useful when using NotifyOnChanged mode and need to know what it changed to.
- Since :
- 2.4
- Returns:
- whether condition result that triggered last emit was true or false
Get the target handle that this notification is observing.
- Since :
- 2.4
Get the target handle's property index that this notification is observing.
- Since :
- 2.4
- Returns:
- The target property.
Connect to this signal to be notified when the notification has occurred.
- Since :
- 2.4
- Returns:
- A signal object to Connect() with.
PropertyNotification& Dali::PropertyNotification::operator= | ( | const PropertyNotification & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
- Since :
- 2.4
- Parameters:
-
[in] rhs A reference to the copied handle
- Returns:
- A reference to this
void Dali::PropertyNotification::SetNotifyMode | ( | NotifyMode | mode | ) |
Sets the Notification mode.
This determines how the property notification should respond to the result of a condition.
- Since :
- 2.4
- Parameters:
-
[in] mode Notification mode (Default is PropertyNotification::NotifyOnTrue)