summaryrefslogtreecommitdiff
path: root/eorepo/eodefault.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'eorepo/eodefault.pxd')
-rw-r--r--eorepo/eodefault.pxd84
1 files changed, 84 insertions, 0 deletions
diff --git a/eorepo/eodefault.pxd b/eorepo/eodefault.pxd
new file mode 100644
index 0000000..2f3aadc
--- /dev/null
+++ b/eorepo/eodefault.pxd
@@ -0,0 +1,84 @@
1
2cdef extern from *:
3 ctypedef char* const_char_ptr "const char*"
4
5cdef extern from "Eina.h":
6 ctypedef unsigned char Eina_Bool
7 Eina_Bool EINA_FALSE
8 Eina_Bool EINA_TRUE
9
10cdef extern from "Eo.h":
11
12 ####################################################################
13 # Basic Types
14 #
15
16 ctypedef int Evas_Coord
17 ctypedef int Evas_Angle
18 ctypedef int Evas_Font_Size
19 ctypedef int Eo_Op
20 ctypedef short Eo_Callback_Priority
21
22 ctypedef struct Eo
23 ctypedef struct Eo_Class
24
25 ctypedef struct Eo_Event_Description:
26 char *name
27 char *type
28 char *doc
29
30 Eo_Op EO_BASE_BASE_ID
31
32 Eo_Event_Description * EO_EV_CALLBACK_ADD
33 Eo_Event_Description * EO_EV_CALLBACK_DEL
34 Eo_Event_Description * EO_EV_FREE
35 Eo_Event_Description * EO_EV_DEL
36
37 ctypedef enum:
38 EO_BASE_SUB_ID_DATA_GET
39 EO_BASE_SUB_ID_DATA_DEL
40
41 ctypedef void (*Eo_Event_Cb)(void *data, Eo *obj,
42 Eo_Event_Description *desc,
43 void *event_info)
44 ctypedef void (*eo_base_data_free_func)(void *p)
45
46 cdef short EO_CALLBACK_PRIORITY_BEFORE
47 cdef short EO_CALLBACK_PRIORITY_DEFAULT
48 cdef short EO_CALLBACK_PRIORITY_AFTER
49
50 Eina_Bool eo_init()
51 Eo_Class *eo_base_class_get()
52
53 Eo* eo_add(Eo_Class *klass, Eo *parent)
54 Eo* eo_add_custom(Eo_Class *klass, Eo *parent, ...)
55
56 Eo* eo_ref(Eo *obj)
57 void eo_unref(Eo *obj)
58 int eo_ref_get(Eo *obj)
59 void eo_del(Eo *obj)
60
61 Eo *eo_parent_get(Eo *obj)
62
63 Eo_Class *eo_class_get(Eo *obj)
64 char *eo_class_name_get(Eo_Class *klass)
65
66 void *eo_data_get(Eo *obj, Eo_Class *klass)
67
68
69 Eina_Bool eo_do(Eo *obj, ...)
70 Eina_Bool eo_class_do(Eo_Class *klass, ...)
71
72
73cdef class EoDefault:
74 cdef Eo *eo
75 cdef object name
76 cdef int print_func_name(self, f_name)
77 cdef int _eo_instance_set(self, Eo *eo)
78 cpdef _eo_instance_set2(self, unsigned long long klass, EoDefault parent)
79
80cdef Eo* _eo_instance_get(EoDefault pyobj)
81cdef Eina_Bool _object_callback(void *data, Eo *o, Eo_Event_Description *desc, void *event_info)
82
83
84