Macros | Functions
Eo's Event Handling

Macros

#define EO_EVENT_DESCRIPTION(name)   { name, EINA_FALSE, EINA_FALSE, EINA_FALSE }
 An helper macro to help populating #Eo_Event_Description. More...
 
#define EO_EVENT_DESCRIPTION_HOT(name)   { name, EINA_TRUE, EINA_FALSE, EINA_FALSE }
 An helper macro to help populating #Eo_Event_Description and make the event impossible to freeze. More...
 
#define EO_EVENT_DESCRIPTION_RESTART(name)   { name, EINA_FALSE, EINA_FALSE, EINA_TRUE }
 
#define EO_EVENT_DESCRIPTION_HOT_RESTART(name)   { name, EINA_TRUE, EINA_FALSE, EINA_TRUE }
 
#define EO_CALLBACK_PRIORITY_BEFORE   -100
 Slightly more prioritized than default.
 
#define EO_CALLBACK_PRIORITY_DEFAULT   0
 Default callback priority level.
 
#define EO_CALLBACK_PRIORITY_AFTER   100
 Slightly less prioritized than default.
 
#define EO_CALLBACKS_ARRAY_DEFINE(Name, ...)
 Helper for creating global callback arrays. More...
 
#define eo_event_callback_add(obj, desc, cb, data)
 Add a callback for an event. More...
 
#define eo_event_callback_array_add(obj, array, data)
 Add a callback array for an event. More...
 

Functions

EAPI const Eo_Event_Descriptioneo_base_legacy_only_event_description_get (const char *_event_name)
 Don't use. More...
 

Detailed Description

Macro Definition Documentation

◆ EO_EVENT_DESCRIPTION

#define EO_EVENT_DESCRIPTION (   name)    { name, EINA_FALSE, EINA_FALSE, EINA_FALSE }

An helper macro to help populating #Eo_Event_Description.

Parameters
nameThe name of the event.
See also
Eo_Event_Description

◆ EO_EVENT_DESCRIPTION_HOT

#define EO_EVENT_DESCRIPTION_HOT (   name)    { name, EINA_TRUE, EINA_FALSE, EINA_FALSE }

An helper macro to help populating #Eo_Event_Description and make the event impossible to freeze.

Parameters
nameThe name of the event.
See also
Eo_Event_Description
EO_EVENT_DESCRIPTION

◆ EO_CALLBACKS_ARRAY_DEFINE

#define EO_CALLBACKS_ARRAY_DEFINE (   Name,
  ... 
)
Value:
Name(void) \
{ \
static Eo_Callback_Array_Item internal[sizeof ((Eo_Callback_Array_Item[]) { __VA_ARGS__ }) / \
1] = { { 0, 0 } }; \
if (internal[0].desc == NULL) \
{ \
memcpy(internal, \
((Eo_Callback_Array_Item[]) { __VA_ARGS__, { NULL, NULL } }), \
sizeof ((Eo_Callback_Array_Item[]) { __VA_ARGS__ })); \
} \
return internal; \
}
An item in an array of callback desc/func.
Definition: eo_base.eo.h:52

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.

Examples:
emotion_signals_example.c.

Referenced by ecore_timer_precision_set().

◆ eo_event_callback_add

#define eo_event_callback_add (   obj,
  desc,
  cb,
  data 
)
Value:
eo_event_callback_priority_add(obj, desc, \
#define EO_CALLBACK_PRIORITY_DEFAULT
Default callback priority level.
Definition: Eo.h:1071

Add a callback for an event.

Parameters
[in]descThe description of the event to listen to.
[in]cbthe callback to call.
[in]dataadditional data to pass to the callback.

callbacks of the same priority are called in reverse order of creation.

See also
eo_event_callback_priority_add()
Examples:
emotion_basic_example.c.

Referenced by elm_fileselector_folder_only_get(), elm_quicklaunch_fork(), elm_store_target_genlist_set(), elm_win_floating_mode_get(), eo_base_legacy_only_event_description_get(), evas_device_add(), and evas_textblock_text_utf8_to_markup().

◆ eo_event_callback_array_add

#define eo_event_callback_array_add (   obj,
  array,
  data 
)
Value:
eo_event_callback_array_priority_add(obj, array, \
#define EO_CALLBACK_PRIORITY_DEFAULT
Default callback priority level.
Definition: Eo.h:1071

Add a callback array for an event.

Parameters
[in]arrayan Eo_Callback_Array_Item of events to listen to.
[in]dataadditional data to pass to the callback.

callbacks of the same priority are called in reverse order of creation.

See also
eo_event_callback_array_priority_add()
Examples:
emotion_signals_example.c.

Referenced by ecore_timer_add(), and ecore_timer_loop_add().

Function Documentation

◆ eo_base_legacy_only_event_description_get()

EAPI const Eo_Event_Description* eo_base_legacy_only_event_description_get ( const char *  _event_name)