Macros | |
#define | EFL_EVENT_DESCRIPTION(name) { name, EINA_FALSE, EINA_FALSE, EINA_FALSE } |
#define | EFL_EVENT_DESCRIPTION_HOT(name) { name, EINA_TRUE, EINA_FALSE, EINA_FALSE } |
#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) |
#define | efl_event_callback_array_add(obj, array, data) |
#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 | |
const EOAPI Eina_Value_Type * | EINA_VALUE_TYPE_OBJECT |
const EAPI Efl_Event_Description | _EFL_EVENT_CALLBACK_ADD |
const EAPI 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
name | The name of the event. |
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.
name | The name of the event. |
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.
#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.
#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.
#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
|
inlinestatic |
Create a new Eina_Value containing the passed parameter.
obj | The object to use |
References eina_value_new().
|
inlinestatic |
Create a new Eina_Value initialized with the passed parameter.
obj | The object to use |
References EINA_VALUE_EMPTY, 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_type_get().