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.
Referenced by ecore_ipc_client_server_get(), ecore_ipc_shutdown(), and ecore_timer_precision_set().
#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_fileselector_folder_only_get(), elm_quicklaunch_fork(), elm_store_target_genlist_set(), elm_win_floating_mode_get(), and evas_textblock_text_utf8_to_markup().
#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(), ecore_timer_loop_add(), and ecore_timer_precision_set().
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 _Efl_Callback_Array_Item::desc, efl_event_callback_call(), EINA_FALSE, eina_freeq_ptr_main_add(), eina_hash_add(), eina_hash_find(), eina_mempool_add(), eina_mempool_calloc(), eina_mempool_del(), eina_mempool_free(), eina_stringshare_add(), eina_stringshare_del(), EINA_TRUE, ERR, _Efl_Callback_Array_Item::func, _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 DBG, _Efl_Callback_Array_Item::desc, EINA_ARRAY_ITER_NEXT, eina_array_push(), eina_array_step_set(), EINA_FALSE, EINA_INARRAY_FOREACH, eina_inarray_push(), eina_inarray_search_sorted(), eina_inarray_sort(), eina_inarray_step_set(), EINA_LIKELY, EINA_LOG_DOM_DBG, EINA_LOG_DOM_ERR, eina_log_domain_register(), eina_log_print(), EINA_SLICE_STR_FMT, EINA_SLICE_STR_PRINT, eina_spinlock_new(), eina_spinlock_release(), eina_spinlock_take(), EINA_TRUE, EINA_UNLIKELY, evil_time_get(), _Eina_Slice::len, _Eina_Inarray::len, _Eina_Slice::mem, and WRN.