forked from enlightenment/efl
eo: Define Efl.Event in EO
This can be used in the widgets propagation mechanism later. I don't see any really good reason to not define this struct in EO anyway. Ref T5363
This commit is contained in:
parent
47070c7d14
commit
e8826062eb
|
@ -221,16 +221,6 @@ typedef Eo Efl_Future;
|
|||
#include "efl_interface.eo.h"
|
||||
#define EO_CLASS EFL_OBJECT_CLASS
|
||||
|
||||
/**
|
||||
* @struct _Efl_Event
|
||||
* A parameter passed in event callbacks holding extra event parameters.
|
||||
*/
|
||||
typedef struct _Efl_Event {
|
||||
Efl_Object *object; /**< The object the event was called on. */
|
||||
const Efl_Event_Description *desc; /**< The event description. */
|
||||
void *info; /**< Extra event information passed by the event caller. */
|
||||
} Efl_Event;
|
||||
|
||||
/** An event callback prototype. */
|
||||
typedef void (*Efl_Event_Cb)(void *data, const Efl_Event *event);
|
||||
|
||||
|
|
|
@ -273,3 +273,13 @@ abstract Efl.Object ()
|
|||
del @hot; [[Object is being deleted.]]
|
||||
}
|
||||
}
|
||||
|
||||
struct Efl.Event {
|
||||
[[A parameter passed in event callbacks holding extra event parameters.
|
||||
|
||||
This is the full event information passed to callbacks in C.
|
||||
]]
|
||||
object: Efl.Object; [[The object the callback was called on.]]
|
||||
desc: const(ptr(Efl.Event.Description)); [[The event description.]]
|
||||
info: void_ptr; [[Extra event information passed by the event caller]]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue