summaryrefslogtreecommitdiff
path: root/include/efl.c_eo.pxd
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-03-04 11:07:51 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2016-03-04 11:10:11 +0200
commit05c19962dc966f4ca1d64435ad29c7f9d49ef170 (patch)
tree3e35fde81866efbe66dd2d7a995d4a397a7211ff /include/efl.c_eo.pxd
parentfea03a787c706f5d179910e0b06b4c95ed84ff67 (diff)
Follow changes in Eo
- version 4 (eo_add changes coming later) - events
Diffstat (limited to '')
-rw-r--r--include/efl.c_eo.pxd54
1 files changed, 31 insertions, 23 deletions
diff --git a/include/efl.c_eo.pxd b/include/efl.c_eo.pxd
index 11cb094..66207ab 100644
--- a/include/efl.c_eo.pxd
+++ b/include/efl.c_eo.pxd
@@ -62,25 +62,35 @@ cdef extern from "Eo.h":
62 # Structures 62 # Structures
63 # 63 #
64 ctypedef struct Eo 64 ctypedef struct Eo
65 ctypedef Eo Eo_Base
65 66
66 ctypedef struct Eo_Class 67 ctypedef struct Eo_Class
67 68
68 ctypedef struct Eo_Event_Description: 69 ctypedef struct _Eo_Event_Description:
69 const char *name 70 const char *name # name of the event.
70 const char *doc 71 Eina_Bool unfreezable # Eina_True if the event cannot be frozen.
71 Eina_Bool unfreezable 72 Eina_Bool legacy_is # Internal use: if is a legacy event.
73 ctypedef _Eo_Event_Description Eo_Event_Description
74
75 ctypedef struct _Eo_Event:
76 Eo_Base *obj # The object the event was called on. */
77 const Eo_Event_Description *desc # The event description. */
78 void *event_info # Extra event information passed by the event caller. */
79 ctypedef _Eo_Event Eo_Event
80 ctypedef _Eo_Event Eo_Event2
72 81
73 82
74 #################################################################### 83 ####################################################################
75 # Eo Events 84 # Eo Events
76 # 85 #
86
77 cdef const Eo_Event_Description *EO_EV_DEL 87 cdef const Eo_Event_Description *EO_EV_DEL
78 88
79 89
80 #################################################################### 90 ####################################################################
81 # Other typedefs 91 # Other typedefs
82 # 92 #
83 ctypedef Eina_Bool (*Eo_Event_Cb)(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info) 93 ctypedef Eina_Bool (*Eo_Event_Cb)(void *data, const Eo_Event2 *event)
84 94
85 ctypedef void (*eo_key_data_free_func)(void *) 95 ctypedef void (*eo_key_data_free_func)(void *)
86 96
@@ -99,32 +109,30 @@ cdef extern from "Eo.h":
99 109
100 void eo_wref_add(Eo **wref) 110 void eo_wref_add(Eo **wref)
101 111
102 void eo_do(Eo *obj, ...)
103 void *eo_do_ret(Eo *obj, ...)
104 const Eo_Class *eo_base_class_get() 112 const Eo_Class *eo_base_class_get()
105 113
106 void eo_key_data_set(const char *key, const void *data) 114 void eo_key_data_set(Eo *obj, const char *key, const void *data)
107 void *eo_key_data_get(const char *key) 115 void *eo_key_data_get(Eo *obj, const char *key)
108 void eo_key_data_del(const char *key) 116 void eo_key_data_del(Eo *obj, const char *key)
109 117
110 const Eo_Class *eo_class_get(const Eo *obj) 118 const Eo_Class *eo_class_get(const Eo *obj)
111 const char *eo_class_name_get(const Eo_Class *klass) 119 const char *eo_class_name_get(const Eo_Class *klass)
112 120
113 void eo_parent_set(Eo *parent) 121 void eo_parent_set(Eo *obj, Eo *parent)
114 Eo *eo_parent_get() 122 Eo *eo_parent_get(const Eo *obj)
115 123
116 void eo_event_callback_forwarder_add(const Eo_Event_Description *desc, Eo *new_obj) 124 void eo_event_callback_forwarder_add(Eo *obj, const Eo_Event_Description *desc, Eo *new_obj)
117 void eo_event_callback_forwarder_del(const Eo_Event_Description *desc, Eo *new_obj) 125 void eo_event_callback_forwarder_del(Eo *obj, const Eo_Event_Description *desc, Eo *new_obj)
118 126
119 void eo_event_freeze() 127 void eo_event_freeze(Eo *obj)
120 void eo_event_thaw() 128 void eo_event_thaw(Eo *obj)
121 int eo_event_freeze_count_get() 129 int eo_event_freeze_count_get(const Eo *obj)
122 130
123 void eo_event_global_freeze() 131 void eo_event_global_freeze(Eo *obj)
124 void eo_event_global_thaw() 132 void eo_event_global_thaw(Eo *obj)
125 int eo_event_global_freeze_count_get() 133 int eo_event_global_freeze_count_get(const Eo *obj)
126 134
127 void eo_event_callback_add(const Eo_Event_Description *desc, Eo_Event_Cb cb, const void *data) 135 void eo_event_callback_add(Eo *obj, const Eo_Event_Description *desc, Eo_Event_Cb cb, const void *data)
128 void eo_event_callback_del(const Eo_Event_Description *desc, Eo_Event_Cb cb, const void *data) 136 void eo_event_callback_del(Eo *obj, const Eo_Event_Description *desc, Eo_Event_Cb cb, const void *data)
129 137
130 Eina_Iterator * eo_children_iterator_new() 138 Eina_Iterator * eo_children_iterator_new(Eo *obj)