Tizen Native API
|
Functions | |
void | evas_object_event_callback_add (Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data) |
Adds or registers a callback function to a given Evas object event. | |
void | evas_object_event_callback_priority_add (Evas_Object *obj, Evas_Callback_Type type, Evas_Callback_Priority priority, Evas_Object_Event_Cb func, const void *data) |
Adds or registers a callback function to a given Evas object event with a non-default priority set. Except for the priority field, it is exactly the same as evas_object_event_callback_add. | |
void * | evas_object_event_callback_del (Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func) |
Deletes a callback function from an object. | |
void * | evas_object_event_callback_del_full (Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data) |
Deletes or unregisters a callback function registered to a given Evas object event. | |
void | evas_object_pass_events_set (Evas_Object *obj, Eina_Bool pass) |
Sets whether an Evas object is to pass (ignore) events. | |
Eina_Bool | evas_object_pass_events_get (const Evas_Object *obj) |
Checks whether an object is set to pass (ignore) events. | |
void | evas_object_repeat_events_set (Evas_Object *obj, Eina_Bool repeat) |
Sets whether an Evas object is to repeat events. | |
Eina_Bool | evas_object_repeat_events_get (const Evas_Object *obj) |
Checks whether an object is set to repeat events. | |
void | evas_object_propagate_events_set (Evas_Object *obj, Eina_Bool prop) |
Sets whether events on a smart object's member should get propagated up to its parent. | |
Eina_Bool | evas_object_propagate_events_get (const Evas_Object *obj) |
Checks whether an Evas object is set to propagate events. | |
void | evas_object_freeze_events_set (Evas_Object *obj, Eina_Bool freeze) |
Sets whether an Evas object is to freeze (discard) events. | |
Eina_Bool | evas_object_freeze_events_get (const Evas_Object *obj) |
Checks whether an object is set to freeze (discard) events. | |
Typedefs | |
typedef void(* | Evas_Object_Event_Cb )(void *data, Evas *e, Evas_Object *obj, void *event_info) |
Evas object event callback function signature. |
This group provides functions for object events.
typedef void(* Evas_Object_Event_Cb)(void *data, Evas *e, Evas_Object *obj, void *event_info) |
Evas object event callback function signature.
void evas_object_event_callback_add | ( | Evas_Object * | obj, |
Evas_Callback_Type | type, | ||
Evas_Object_Event_Cb | func, | ||
const void * | data | ||
) |
Adds or registers a callback function to a given Evas object event.
This function adds a function callback to an object when the event
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
.NULL
.NULL
.NULL
.[in] | obj | The object to attach a callback to |
[in] | type | The type of event that triggers the callback |
[in] | func | The function to be called when the event is triggered |
[in] | data | The data pointer to be passed to func |
void* evas_object_event_callback_del | ( | Evas_Object * | obj, |
Evas_Callback_Type | type, | ||
Evas_Object_Event_Cb | func | ||
) |
Deletes a callback function from an object.
This function removes the most recently added callback from the object obj which is triggered by the event type type and is calling the function func when triggered. If the removal is successful it also returns the data pointer that is passed to evas_object_event_callback_add() when the callback is added to the object. If not successful NULL
is returned.
extern Evas_Object *object; void *my_data; void up_callback(void *data, Evas *e, Evas_Object *obj, void *event_info); my_data = evas_object_event_callback_del(object, EVAS_CALLBACK_MOUSE_UP, up_callback);
[in] | obj | The object to remove a callback from |
[in] | type | The type of event triggering the callback |
[in] | func | The function to be called when the event is triggered |
void* evas_object_event_callback_del_full | ( | Evas_Object * | obj, |
Evas_Callback_Type | type, | ||
Evas_Object_Event_Cb | func, | ||
const void * | data | ||
) |
Deletes or unregisters a callback function registered to a given Evas object event.
This function removes the most recently added callback from the object obj, which is triggered by the event type type and is calling the function func with data data, when triggered. If the removal is successful it also returns the data pointer that is passed to evas_object_event_callback_add() (that is the same as the parameter) when the callback is added to the object. In case of errors, NULL
is returned.
extern Evas_Object *object; void *my_data; void up_callback(void *data, Evas *e, Evas_Object *obj, void *event_info); my_data = evas_object_event_callback_del_full(object, EVAS_CALLBACK_MOUSE_UP, up_callback, data);
[in] | obj | The object to remove a callback from |
[in] | type | The type of event triggering the callback |
[in] | func | The function to be called when the event is triggered |
[in] | data | The data pointer to be passed to the callback |
void evas_object_event_callback_priority_add | ( | Evas_Object * | obj, |
Evas_Callback_Type | type, | ||
Evas_Callback_Priority | priority, | ||
Evas_Object_Event_Cb | func, | ||
const void * | data | ||
) |
Adds or registers a callback function to a given Evas object event with a non-default priority set. Except for the priority field, it is exactly the same as evas_object_event_callback_add.
[in] | obj | The object to attach a callback to |
[in] | type | The type of event that triggers the callback |
[in] | priority | The priority of the callback Lower values are called first. |
[in] | func | The function to be called when the event is triggered |
[in] | data | The data pointer to be passed to func |
Eina_Bool evas_object_freeze_events_get | ( | const Evas_Object * | obj | ) |
Checks whether an object is set to freeze (discard) events.
[in] | obj | The Evas object to get information from |
void evas_object_freeze_events_set | ( | Evas_Object * | obj, |
Eina_Bool | freeze | ||
) |
Sets whether an Evas object is to freeze (discard) events.
[in] | obj | The Evas object to operate on |
[in] | freeze | Set EINA_TRUE for obj to freeze events, otherwise EINA_FALSE not to freeze events |
Eina_Bool evas_object_pass_events_get | ( | const Evas_Object * | obj | ) |
Checks whether an object is set to pass (ignore) events.
[in] | obj | The Evas object to get information from |
void evas_object_pass_events_set | ( | Evas_Object * | obj, |
Eina_Bool | pass | ||
) |
Sets whether an Evas object is to pass (ignore) events.
[in] | obj | The Evas object to operate on |
[in] | pass | Set EINA_TRUE for obj to pass events, otherwise EINA_FALSE not to pass events |
Eina_Bool evas_object_propagate_events_get | ( | const Evas_Object * | obj | ) |
Checks whether an Evas object is set to propagate events.
[in] | obj | The given Evas object pointer |
void evas_object_propagate_events_set | ( | Evas_Object * | obj, |
Eina_Bool | prop | ||
) |
Sets whether events on a smart object's member should get propagated up to its parent.
This function has no effect if obj is not a member of a smart object.
[in] | obj | The smart object's child to operate on |
[in] | prop | Set EINA_TRUE to propagate events, otherwise EINA_FALSE to not propagate events |
Eina_Bool evas_object_repeat_events_get | ( | const Evas_Object * | obj | ) |
Checks whether an object is set to repeat events.
[in] | obj | The given Evas object pointer |
void evas_object_repeat_events_set | ( | Evas_Object * | obj, |
Eina_Bool | repeat | ||
) |
Sets whether an Evas object is to repeat events.
[in] | obj | The Evas object to operate on |
[in] | repeat | Set EINA_TRUE for obj to repeat events, otherwise set EINA_FALSE |