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
#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);
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]]
+}