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:
Jean-Philippe Andre 2017-08-17 14:52:41 +09:00
parent 47070c7d14
commit e8826062eb
2 changed files with 10 additions and 10 deletions

View File

@ -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);

View File

@ -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]]
}