forked from enlightenment/efl
eo: move definitions of priority from Eo.h to the object
So it can be references from the later coming definition of callback_forwarder ref D7532 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7542
This commit is contained in:
parent
9c256beb2e
commit
efd0efb316
|
@ -222,15 +222,6 @@ typedef void (*Efl_Del_Intercept) (Eo *obj_id);
|
|||
/** An event callback prototype. */
|
||||
typedef void (*Efl_Event_Cb)(void *data, const Efl_Event *event);
|
||||
|
||||
/**
|
||||
* @brief Callback priority value. Range is -32k - 32k. The lower the number,
|
||||
* the higher the priority.
|
||||
*
|
||||
* See @ref EFL_CALLBACK_PRIORITY_AFTER, @ref EFL_CALLBACK_PRIORITY_BEFORE @ref
|
||||
* EFL_CALLBACK_PRIORITY_DEFAULT
|
||||
*/
|
||||
typedef short Efl_Callback_Priority;
|
||||
|
||||
/**
|
||||
* @struct _Efl_Callback_Array_Item
|
||||
* @brief An item in an array of callback desc/func.
|
||||
|
@ -1986,22 +1977,6 @@ typedef void (*efl_key_data_free_func)(void *);
|
|||
*/
|
||||
EAPI const Efl_Event_Description *efl_object_legacy_only_event_description_get(const char *_event_name);
|
||||
|
||||
/**
|
||||
* @def EFL_CALLBACK_PRIORITY_BEFORE
|
||||
* Slightly more prioritized than default.
|
||||
*/
|
||||
#define EFL_CALLBACK_PRIORITY_BEFORE -100
|
||||
/**
|
||||
* @def EFL_CALLBACK_PRIORITY_DEFAULT
|
||||
* Default callback priority level
|
||||
*/
|
||||
#define EFL_CALLBACK_PRIORITY_DEFAULT 0
|
||||
/**
|
||||
* @def EFL_CALLBACK_PRIORITY_AFTER
|
||||
* Slightly less prioritized than default.
|
||||
*/
|
||||
#define EFL_CALLBACK_PRIORITY_AFTER 100
|
||||
|
||||
/**
|
||||
* Helper for sorting callbacks array. Automatically used by
|
||||
* @ref EFL_CALLBACKS_ARRAY_DEFINE
|
||||
|
|
|
@ -8,6 +8,21 @@ struct Efl.Event_Description {
|
|||
restart: bool; [[$true if when the event is triggered again from a callback it'll start from where it was]]
|
||||
}
|
||||
|
||||
|
||||
type Efl.Callback_Priority : short;
|
||||
[[
|
||||
Callback priority. Range is -32k - 32k. The lower the number, the higher the priority.
|
||||
|
||||
See @Efl.Callback_Priority_Before @Efl.Callback_Priority_Default @Efl.Callback_Priority_After
|
||||
]]
|
||||
|
||||
const Efl.Callback_Priority_Before : Efl.Callback_Priority = -100;
|
||||
[[Slightly more prioritized than default.]]
|
||||
const Efl.Callback_Priority_Default : Efl.Callback_Priority = 0;
|
||||
[[Default priority.]]
|
||||
const Efl.Callback_Priority_After : Efl.Callback_Priority = 100;
|
||||
[[Slightly less prioritized than default.]]
|
||||
|
||||
abstract Efl.Object
|
||||
{
|
||||
[[Abstract Efl object class]]
|
||||
|
|
Loading…
Reference in New Issue