Macros | Functions
Eo's Event Handling

Macros

#define EO_EVENT_DESCRIPTION(name)   { name, 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 }
 An helper macro to help populating Eo_Event_Description and make the event impossible to freeze. More...
 
#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_CALLBACK_STOP   EINA_FALSE
 Stop calling callbacks for the even of which the callback was called for. More...
 
#define EO_CALLBACK_CONTINUE   EINA_TRUE
 Continue calling callbacks for the even of which the callback was called for. More...
 
#define EO_CALLBACKS_ARRAY_DEFINE(Name, ...)
 Helper for creating global callback arrays. More...
 
#define eo_event_callback_add(desc, cb, data)
 Add a callback for an event. More...
 
#define eo_event_callback_array_add(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

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

An helper macro to help populating Eo_Event_Description.

Parameters
nameThe name of the event.
See also
Eo_Event_Description
#define EO_EVENT_DESCRIPTION_HOT (   name)    { name, EINA_TRUE, 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
#define EO_CALLBACK_STOP   EINA_FALSE

Stop calling callbacks for the even of which the callback was called for.

See also
EO_CALLBACK_CONTINUE
#define EO_CALLBACK_CONTINUE   EINA_TRUE

Continue calling callbacks for the even of which the callback was called for.

See also
EO_CALLBACK_STOP
#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:32

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.

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

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, and emotion_signals_example.c.
#define eo_event_callback_array_add (   array,
  data 
)
Value:
eo_event_callback_array_priority_add(array, \
#define EO_CALLBACK_PRIORITY_DEFAULT
Default callback priority level.
Definition: Eo.h:948

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()

Referenced by ecore_con_url_new().

Function Documentation

EAPI const Eo_Event_Description* eo_base_legacy_only_event_description_get ( const char *  _event_name)