Macros | |
#define | EFL_EVENT_DESCRIPTION(name) { name, EINA_FALSE, EINA_FALSE, EINA_FALSE } |
An helper macro to help populating #Efl_Event_Description. More... | |
#define | EFL_EVENT_DESCRIPTION_HOT(name) { name, EINA_TRUE, EINA_FALSE, EINA_FALSE } |
An helper macro to help populating #Efl_Event_Description and make the event impossible to freeze. More... | |
#define | EFL_EVENT_DESCRIPTION_RESTART(name) { name, EINA_FALSE, EINA_FALSE, EINA_TRUE } |
#define | EFL_EVENT_DESCRIPTION_HOT_RESTART(name) { name, EINA_TRUE, EINA_FALSE, EINA_TRUE } |
#define | EFL_CALLBACK_PRIORITY_BEFORE -100 |
Slightly more prioritized than default. | |
#define | EFL_CALLBACK_PRIORITY_DEFAULT 0 |
Default callback priority level. | |
#define | EFL_CALLBACK_PRIORITY_AFTER 100 |
Slightly less prioritized than default. | |
#define | EFL_CALLBACKS_ARRAY_DEFINE(Name, ...) |
Helper for creating global callback arrays. More... | |
#define | efl_event_callback_add(obj, desc, cb, data) |
Add a callback for an event. More... | |
#define | efl_event_callback_array_add(obj, array, data) |
Add an array of callbacks for an event. More... | |
Functions | |
EAPI const Efl_Event_Description * | efl_object_legacy_only_event_description_get (const char *_event_name) |
Don't use. More... | |
EAPI int | efl_callbacks_cmp (const Efl_Callback_Array_Item *a, const Efl_Callback_Array_Item *b) |
Helper for sorting callbacks array. More... | |
static void | efl_replace (Eo **storage, Eo *new_obj) |
#define EFL_EVENT_DESCRIPTION | ( | name | ) | { name, EINA_FALSE, EINA_FALSE, EINA_FALSE } |
An helper macro to help populating #Efl_Event_Description.
name | The name of the event. |
#define EFL_EVENT_DESCRIPTION_HOT | ( | name | ) | { name, EINA_TRUE, EINA_FALSE, EINA_FALSE } |
An helper macro to help populating #Efl_Event_Description and make the event impossible to freeze.
name | The name of the event. |
#define EFL_CALLBACKS_ARRAY_DEFINE | ( | Name, | |
... | |||
) |
Helper for creating global callback arrays.
The problem is on windows where you can't declare a static array with external symbols in it, because the addresses are only known at runtime. This also open up the possibility to automatically sort them for better performance.
#define efl_event_callback_add | ( | obj, | |
desc, | |||
cb, | |||
data | |||
) |
Add a callback for an event.
[in] | desc | The description of the event to listen to. |
[in] | cb | the callback to call. |
[in] | data | additional data to pass to the callback. |
callbacks of the same priority are called in reverse order of creation.
Referenced by elm_quicklaunch_fork(), and elm_store_target_genlist_set().
#define efl_event_callback_array_add | ( | obj, | |
array, | |||
data | |||
) |
Add an array of callbacks for an event.
[in] | array | an #Efl_Callback_Array_Item of events to listen to. |
[in] | data | additional data to pass to the callback. |
Callbacks of the same priority are called in reverse order of creation. The array should have been created by EFL_CALLBACKS_ARRAY_DEFINE. If that wasn't the case, be careful of portability issue and make sure that it is properly sorted with efl_callbacks_cmp.
Referenced by ecore_timer_add(), and ecore_timer_loop_add().
EAPI const Efl_Event_Description* efl_object_legacy_only_event_description_get | ( | const char * | _event_name | ) |
Don't use.
The values of the returned event structure are also internal, don't assume anything about them.
References eina_hash_add(), eina_hash_find(), eina_stringshare_add(), eina_stringshare_del(), EINA_TRUE, _Efl_Event_Description::legacy_is, and _Efl_Event_Description::name.
Referenced by evas_object_smart_callback_call(), evas_object_smart_callback_del(), evas_object_smart_callback_del_full(), and evas_object_smart_callback_priority_add().
EAPI int efl_callbacks_cmp | ( | const Efl_Callback_Array_Item * | a, |
const Efl_Callback_Array_Item * | b | ||
) |
Helper for sorting callbacks array.
Automatically used by EFL_CALLBACKS_ARRAY_DEFINE
References _Efl_Callback_Array_Item::desc.