Macros | |
#define | EFL_EVENT_DESCRIPTION(name) { name, EINA_FALSE, EINA_FALSE, EINA_FALSE } |
A helper macro to help populate #Efl_Event_Description. More... | |
#define | EFL_EVENT_DESCRIPTION_HOT(name) { name, EINA_TRUE, EINA_FALSE, EINA_FALSE } |
A helper macro to help populate #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_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... | |
#define | efl_event_callback_forwarder_add(obj, desc, new_obj) efl_event_callback_forwarder_priority_add(obj, desc, EFL_CALLBACK_PRIORITY_DEFAULT, new_obj) |
Add an event callback forwarder for an event and an object. More... | |
#define | EFL_EVENT_CALLBACK_ADD (&(_EFL_EVENT_CALLBACK_ADD)) |
Event triggered when a callback was added to the object. | |
#define | EFL_EVENT_CALLBACK_DEL (&(_EFL_EVENT_CALLBACK_DEL)) |
Event triggered when a callback was removed from the object. | |
Functions | |
EAPI int | efl_callbacks_cmp (const Efl_Callback_Array_Item *a, const Efl_Callback_Array_Item *b) |
Helper for sorting callbacks array. More... | |
static Eina_Bool | efl_replace (Eo **storage, const Eo *new_obj) |
static Eina_Value * | eina_value_object_new (Eo *obj) |
Create a new Eina_Value containing the passed parameter. More... | |
static Eina_Value | eina_value_object_init (Eo *obj) |
Create a new Eina_Value initialized with the passed parameter. More... | |
static Eo * | eina_value_object_get (const Eina_Value *v) |
Get the object contained in an Eina_Value. More... | |
static Eina_Bool | efl_alive_get (const Eo *obj) |
Get if the object is in its main lifetime. More... | |
Variables | |
EOAPI const Eina_Value_Type * | EINA_VALUE_TYPE_OBJECT |
EAPI const Efl_Event_Description | _EFL_EVENT_CALLBACK_ADD |
EAPI const Efl_Event_Description | _EFL_EVENT_CALLBACK_DEL |
#define EFL_EVENT_DESCRIPTION | ( | name | ) | { name, EINA_FALSE, EINA_FALSE, EINA_FALSE } |
A helper macro to help populate #Efl_Event_Description.
A 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 } |
A helper macro to help populate #Efl_Event_Description and make the event impossible to freeze.
A 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.
Problems occur here in windows where you can't declare a static array with external symbols in them. These addresses are only known at runtime. This also allows for automatic sorting for better performance.
Referenced by ecore_event_current_event_get(), ecore_ipc_client_server_get(), ecore_ipc_shutdown(), ecore_timer_precision_set(), elm_quicklaunch_seed(), and evas_free().
#define efl_event_callback_add | ( | obj, | |
desc, | |||
cb, | |||
data | |||
) |
Add a callback for an event.
[in] | desc | An #Efl_Event_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 edje_transition_duration_factor_set(), elm_drag_start(), elm_drop_item_container_add(), elm_drop_target_add(), elm_fileselector_folder_only_get(), elm_object_focus_set(), elm_object_item_del(), elm_policy_set(), 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] | obj | The object. |
[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 this isn't the case, be careful of portability issues and make sure that it is properly sorted with efl_callbacks_cmp.
Referenced by ecore_timer_add(), ecore_timer_loop_add(), ecore_timer_precision_set(), elm_object_item_data_get(), and elm_quicklaunch_fork().
#define efl_event_callback_forwarder_add | ( | obj, | |
desc, | |||
new_obj | |||
) | efl_event_callback_forwarder_priority_add(obj, desc, EFL_CALLBACK_PRIORITY_DEFAULT, new_obj) |
Add an event callback forwarder for an event and an object.
[in] | obj | The object. |
[in] | desc | An #Efl_Event_Description of the event to forward to. |
[in] | new_obj | The object to emit events from |
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 alloca(), _Eina_Array::count, _Eina_Array::data, DBG, _Efl_Callback_Array_Item::desc, eina_array_count(), eina_array_data_get(), eina_array_flush(), EINA_ARRAY_ITER_NEXT, eina_array_push(), eina_array_step_set(), EINA_FALSE, eina_inarray_flush(), EINA_INARRAY_FOREACH, eina_inarray_push(), eina_inarray_search_sorted(), eina_inarray_sort(), eina_inarray_step_set(), EINA_LIKELY, eina_list_append(), EINA_LIST_FOREACH, EINA_LIST_FREE, EINA_LOG_DOM_DBG, EINA_LOG_DOM_ERR, EINA_LOG_DOM_INFO, EINA_LOG_DOM_WARN, eina_log_domain_level_check(), eina_log_domain_register(), EINA_LOG_LEVEL_DBG, EINA_LOG_LEVEL_INFO, eina_log_print(), EINA_MAGIC_NONE, EINA_MAGIC_SET, EINA_SLICE_STR_FMT, EINA_SLICE_STR_PRINT, eina_spinlock_free(), 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.
|
inlinestatic |
Create a new Eina_Value containing the passed parameter.
obj | The object to use |
References eina_value_new(), and eina_value_set().
|
inlinestatic |
Create a new Eina_Value initialized with the passed parameter.
obj | The object to use |
References EINA_VALUE_EMPTY, eina_value_set(), and eina_value_setup().
|
inlinestatic |
Get the object contained in an Eina_Value.
v | The Eina_Value to extract the object from |
References eina_value_pget(), and eina_value_type_get().
Get if the object is in its main lifetime.
obj | the object to check |
Referenced by elm_layout_content_set().