summaryrefslogtreecommitdiff
path: root/src/lib/eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-17 14:52:41 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 11:16:45 +0900
commite8826062ebde4f17b438bd612b740feda4093574 (patch)
treea90b5d0dce8f5cced9f112174ce4454835b17eef /src/lib/eo
parent47070c7d14bbcf1f3f2411c655a33aa7a3312cb5 (diff)
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
Diffstat (limited to 'src/lib/eo')
-rw-r--r--src/lib/eo/Eo.h10
-rw-r--r--src/lib/eo/efl_object.eo10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 16617e9dfd..3757392ed2 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -221,16 +221,6 @@ typedef Eo Efl_Future;
221#include "efl_interface.eo.h" 221#include "efl_interface.eo.h"
222#define EO_CLASS EFL_OBJECT_CLASS 222#define EO_CLASS EFL_OBJECT_CLASS
223 223
224/**
225 * @struct _Efl_Event
226 * A parameter passed in event callbacks holding extra event parameters.
227 */
228typedef struct _Efl_Event {
229 Efl_Object *object; /**< The object the event was called on. */
230 const Efl_Event_Description *desc; /**< The event description. */
231 void *info; /**< Extra event information passed by the event caller. */
232} Efl_Event;
233
234/** An event callback prototype. */ 224/** An event callback prototype. */
235typedef void (*Efl_Event_Cb)(void *data, const Efl_Event *event); 225typedef void (*Efl_Event_Cb)(void *data, const Efl_Event *event);
236 226
diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo
index 36174c8d2f..5e7e1c31ca 100644
--- a/src/lib/eo/efl_object.eo
+++ b/src/lib/eo/efl_object.eo
@@ -273,3 +273,13 @@ abstract Efl.Object ()
273 del @hot; [[Object is being deleted.]] 273 del @hot; [[Object is being deleted.]]
274 } 274 }
275} 275}
276
277struct Efl.Event {
278 [[A parameter passed in event callbacks holding extra event parameters.
279
280 This is the full event information passed to callbacks in C.
281 ]]
282 object: Efl.Object; [[The object the callback was called on.]]
283 desc: const(ptr(Efl.Event.Description)); [[The event description.]]
284 info: void_ptr; [[Extra event information passed by the event caller]]
285}