eo: Define Efl.Event in EO
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 17 Aug 2017 05:52:41 +0000 (14:52 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 23 Aug 2017 02:16:45 +0000 (11:16 +0900)
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

src/lib/eo/Eo.h
src/lib/eo/efl_object.eo

index 16617e9..3757392 100644 (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);
 
index 36174c8..5e7e1c3 100644 (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]]
+}