summaryrefslogtreecommitdiff
path: root/include/efl.evas.pxd
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-08-16 09:54:59 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2016-08-16 10:11:34 +0300
commitb2af779d7d416df654c690f2de077f5eeb6e72b9 (patch)
tree1ff847124c16fbd1f48603c677ecf43b1e3ebf51 /include/efl.evas.pxd
parent4bd421562d2c2403ef2000ce3d903b991eae7f6e (diff)
Switch enums to use the old system we had previously
This allows us to support Cython 0.23+
Diffstat (limited to '')
-rw-r--r--include/efl.evas.pxd320
1 files changed, 11 insertions, 309 deletions
diff --git a/include/efl.evas.pxd b/include/efl.evas.pxd
index a426a65..fe2998e 100644
--- a/include/efl.evas.pxd
+++ b/include/efl.evas.pxd
@@ -20,6 +20,17 @@ from efl.eina cimport *
20from efl.eo cimport Eo 20from efl.eo cimport Eo
21from efl.c_eo cimport Eo as cEo, Eo_Class 21from efl.c_eo cimport Eo as cEo, Eo_Class
22 22
23from efl.evas.enums cimport Evas_Button_Flags, Evas_BiDi_Direction, \
24 Evas_Callback_Type, Evas_Event_Flags, Evas_Touch_Point_State, \
25 Evas_Font_Hinting_Flags, Evas_Colorspace, \
26 Evas_Object_Table_Homogeneous_Mode, Evas_Aspect_Control, \
27 Evas_Display_Mode, Evas_Load_Error, Evas_Alloc_Error, Evas_Fill_Spread, \
28 Evas_Pixel_Import_Pixel_Format, Evas_Native_Surface_Type, Evas_Render_Op, \
29 Evas_Border_Fill_Mode, Evas_Image_Scale_Hint, \
30 Evas_Image_Animated_Loop_Hint, Evas_Image_Orient, \
31 Evas_Engine_Render_Mode, Evas_Image_Content_Hint, Evas_Device_Class, \
32 Evas_Object_Pointer_Mode, Evas_Text_Style_Type, Evas_Textblock_Text_Type, \
33 Evas_Textblock_Cursor_Type, Evas_Textgrid_Palette, Evas_Textgrid_Font_Style
23 34
24cdef extern from "Evas.h": 35cdef extern from "Evas.h":
25 36
@@ -31,315 +42,6 @@ cdef extern from "Evas.h":
31 ctypedef int Evas_Font_Size 42 ctypedef int Evas_Font_Size
32 ctypedef unsigned long long Evas_Modifier_Mask 43 ctypedef unsigned long long Evas_Modifier_Mask
33 44
34 ####################################################################
35 # #define (this works only for integer define)
36 #
37 cpdef enum:
38 EVAS_LAYER_MIN
39 EVAS_LAYER_MAX
40
41 EVAS_COLOR_SPACE_ARGB
42 EVAS_COLOR_SPACE_AHSV
43
44 EVAS_TEXT_INVALID
45 EVAS_TEXT_SPECIAL
46
47 EVAS_SMART_CLASS_VERSION
48
49 ####################################################################
50 # Enums (automatically exported to python scope)
51 #
52 cpdef enum Evas_Button_Flags:
53 EVAS_BUTTON_NONE
54 EVAS_BUTTON_DOUBLE_CLICK
55 EVAS_BUTTON_TRIPLE_CLICK
56 ctypedef enum Evas_Button_Flags:
57 pass
58
59 cpdef enum Evas_BiDi_Direction:
60 EVAS_BIDI_DIRECTION_NATURAL
61 EVAS_BIDI_DIRECTION_NEUTRAL
62 EVAS_BIDI_DIRECTION_LTR
63 EVAS_BIDI_DIRECTION_RTL
64 EVAS_BIDI_DIRECTION_INHERIT
65 ctypedef enum Evas_BiDi_Direction:
66 pass
67
68 cpdef enum Evas_Callback_Type:
69 EVAS_CALLBACK_MOUSE_IN
70 EVAS_CALLBACK_MOUSE_OUT
71 EVAS_CALLBACK_MOUSE_DOWN
72 EVAS_CALLBACK_MOUSE_UP
73 EVAS_CALLBACK_MOUSE_MOVE
74 EVAS_CALLBACK_MOUSE_WHEEL
75 EVAS_CALLBACK_MULTI_DOWN
76 EVAS_CALLBACK_MULTI_UP
77 EVAS_CALLBACK_MULTI_MOVE
78 EVAS_CALLBACK_FREE
79 EVAS_CALLBACK_KEY_DOWN
80 EVAS_CALLBACK_KEY_UP
81 EVAS_CALLBACK_FOCUS_IN
82 EVAS_CALLBACK_FOCUS_OUT
83 EVAS_CALLBACK_SHOW
84 EVAS_CALLBACK_HIDE
85 EVAS_CALLBACK_MOVE
86 EVAS_CALLBACK_RESIZE
87 EVAS_CALLBACK_RESTACK
88 EVAS_CALLBACK_DEL
89 EVAS_CALLBACK_HOLD
90 EVAS_CALLBACK_CHANGED_SIZE_HINTS
91 EVAS_CALLBACK_IMAGE_PRELOADED
92 EVAS_CALLBACK_CANVAS_FOCUS_IN
93 EVAS_CALLBACK_CANVAS_FOCUS_OUT
94 EVAS_CALLBACK_RENDER_FLUSH_PRE
95 EVAS_CALLBACK_RENDER_FLUSH_POST
96 EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN
97 EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT
98 EVAS_CALLBACK_IMAGE_UNLOADED
99 EVAS_CALLBACK_RENDER_PRE
100 EVAS_CALLBACK_RENDER_POST
101 EVAS_CALLBACK_IMAGE_RESIZE
102 EVAS_CALLBACK_DEVICE_CHANGED
103 EVAS_CALLBACK_AXIS_UPDATE
104 EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE
105 EVAS_CALLBACK_LAST
106 ctypedef enum Evas_Callback_Type:
107 pass
108
109 cpdef enum Evas_Event_Flags:
110 EVAS_EVENT_FLAG_NONE
111 EVAS_EVENT_FLAG_ON_HOLD
112 EVAS_EVENT_FLAG_ON_SCROLL
113 ctypedef enum Evas_Event_Flags:
114 pass
115
116 cpdef enum Evas_Touch_Point_State:
117 EVAS_TOUCH_POINT_DOWN
118 EVAS_TOUCH_POINT_UP
119 EVAS_TOUCH_POINT_MOVE
120 EVAS_TOUCH_POINT_STILL
121 EVAS_TOUCH_POINT_CANCEL
122 ctypedef enum Evas_Touch_Point_State:
123 pass
124
125 cpdef enum Evas_Font_Hinting_Flags:
126 EVAS_FONT_HINTING_NONE
127 EVAS_FONT_HINTING_AUTO
128 EVAS_FONT_HINTING_BYTECODE
129 ctypedef enum Evas_Font_Hinting_Flags:
130 pass
131
132 cpdef enum Evas_Colorspace:
133 EVAS_COLORSPACE_ARGB8888
134 EVAS_COLORSPACE_YCBCR422P601_PL
135 EVAS_COLORSPACE_YCBCR422P709_PL
136 EVAS_COLORSPACE_RGB565_A5P
137 EVAS_COLORSPACE_GRY8
138 EVAS_COLORSPACE_YCBCR422601_PL
139 EVAS_COLORSPACE_YCBCR420NV12601_PL
140 EVAS_COLORSPACE_YCBCR420TM12601_PL
141 ctypedef enum Evas_Colorspace:
142 pass
143
144 cpdef enum Evas_Object_Table_Homogeneous_Mode:
145 EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE
146 EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
147 EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM
148 ctypedef enum Evas_Object_Table_Homogeneous_Mode:
149 pass
150
151 cpdef enum Evas_Aspect_Control:
152 EVAS_ASPECT_CONTROL_NONE
153 EVAS_ASPECT_CONTROL_NEITHER
154 EVAS_ASPECT_CONTROL_HORIZONTAL
155 EVAS_ASPECT_CONTROL_VERTICAL
156 EVAS_ASPECT_CONTROL_BOTH
157 ctypedef enum Evas_Aspect_Control:
158 pass
159
160 cpdef enum Evas_Display_Mode:
161 EVAS_DISPLAY_MODE_NONE
162 EVAS_DISPLAY_MODE_COMPRESS
163 EVAS_DISPLAY_MODE_EXPAND
164 EVAS_DISPLAY_MODE_DONT_CHANGE
165 ctypedef enum Evas_Display_Mode:
166 pass
167
168 cpdef enum Evas_Load_Error:
169 EVAS_LOAD_ERROR_NONE
170 EVAS_LOAD_ERROR_GENERIC
171 EVAS_LOAD_ERROR_DOES_NOT_EXIST
172 EVAS_LOAD_ERROR_PERMISSION_DENIED
173 EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED
174 EVAS_LOAD_ERROR_CORRUPT_FILE
175 EVAS_LOAD_ERROR_UNKNOWN_FORMAT
176 ctypedef enum Evas_Load_Error:
177 pass
178
179 cpdef enum Evas_Alloc_Error:
180 EVAS_ALLOC_ERROR_NONE
181 EVAS_ALLOC_ERROR_FATAL
182 EVAS_ALLOC_ERROR_RECOVERED
183 ctypedef enum Evas_Alloc_Error:
184 pass
185
186 cpdef enum Evas_Fill_Spread:
187 EVAS_TEXTURE_REFLECT
188 EVAS_TEXTURE_REPEAT
189 EVAS_TEXTURE_RESTRICT
190 EVAS_TEXTURE_RESTRICT_REFLECT
191 EVAS_TEXTURE_RESTRICT_REPEAT
192 EVAS_TEXTURE_PAD
193 ctypedef enum Evas_Fill_Spread:
194 pass
195
196 cpdef enum Evas_Pixel_Import_Pixel_Format:
197 EVAS_PIXEL_FORMAT_NONE
198 EVAS_PIXEL_FORMAT_ARGB32
199 EVAS_PIXEL_FORMAT_YUV420P_601
200 ctypedef enum Evas_Pixel_Import_Pixel_Format:
201 pass
202
203 cpdef enum Evas_Native_Surface_Type:
204 EVAS_NATIVE_SURFACE_NONE
205 EVAS_NATIVE_SURFACE_X11
206 EVAS_NATIVE_SURFACE_OPENGL
207 EVAS_NATIVE_SURFACE_WL
208 ctypedef enum Evas_Native_Surface_Type:
209 pass
210
211 cpdef enum Evas_Render_Op:
212 EVAS_RENDER_BLEND
213 EVAS_RENDER_BLEND_REL
214 EVAS_RENDER_COPY
215 EVAS_RENDER_COPY_REL
216 EVAS_RENDER_ADD
217 EVAS_RENDER_ADD_REL
218 EVAS_RENDER_SUB
219 EVAS_RENDER_SUB_REL
220 EVAS_RENDER_TINT
221 EVAS_RENDER_TINT_REL
222 EVAS_RENDER_MASK
223 EVAS_RENDER_MUL
224 ctypedef enum Evas_Render_Op:
225 pass
226
227 cpdef enum Evas_Border_Fill_Mode:
228 EVAS_BORDER_FILL_NONE
229 EVAS_BORDER_FILL_DEFAULT
230 EVAS_BORDER_FILL_SOLID
231 ctypedef enum Evas_Border_Fill_Mode:
232 pass
233
234 cpdef enum Evas_Image_Scale_Hint:
235 EVAS_IMAGE_SCALE_HINT_NONE
236 EVAS_IMAGE_SCALE_HINT_DYNAMIC
237 EVAS_IMAGE_SCALE_HINT_STATIC
238 ctypedef enum Evas_Image_Scale_Hint:
239 pass
240
241 cpdef enum Evas_Image_Animated_Loop_Hint:
242 EVAS_IMAGE_ANIMATED_HINT_NONE
243 EVAS_IMAGE_ANIMATED_HINT_LOOP
244 EVAS_IMAGE_ANIMATED_HINT_PINGPONG
245 ctypedef enum Evas_Image_Animated_Loop_Hint:
246 pass
247
248 cpdef enum Evas_Image_Orient:
249 EVAS_IMAGE_ORIENT_NONE
250 EVAS_IMAGE_ORIENT_0
251 EVAS_IMAGE_ORIENT_90
252 EVAS_IMAGE_ORIENT_180
253 EVAS_IMAGE_ORIENT_270
254 EVAS_IMAGE_FLIP_HORIZONTAL
255 EVAS_IMAGE_FLIP_VERTICAL
256 EVAS_IMAGE_FLIP_TRANSPOSE
257 EVAS_IMAGE_FLIP_TRANSVERSE
258 ctypedef enum Evas_Image_Orient:
259 pass
260
261 cpdef enum Evas_Engine_Render_Mode:
262 EVAS_RENDER_MODE_BLOCKING
263 EVAS_RENDER_MODE_NONBLOCKING
264 ctypedef enum Evas_Engine_Render_Mode:
265 pass
266
267 cpdef enum Evas_Image_Content_Hint:
268 EVAS_IMAGE_CONTENT_HINT_NONE
269 EVAS_IMAGE_CONTENT_HINT_DYNAMIC
270 EVAS_IMAGE_CONTENT_HINT_STATIC
271 ctypedef enum Evas_Image_Content_Hint:
272 pass
273
274 cpdef enum Evas_Device_Class:
275 EVAS_DEVICE_CLASS_NONE
276 EVAS_DEVICE_CLASS_SEAT
277 EVAS_DEVICE_CLASS_KEYBOARD
278 EVAS_DEVICE_CLASS_MOUSE
279 EVAS_DEVICE_CLASS_TOUCH
280 EVAS_DEVICE_CLASS_PEN
281 EVAS_DEVICE_CLASS_POINTER
282 EVAS_DEVICE_CLASS_GAMEPAD
283 ctypedef enum Evas_Device_Class:
284 pass
285
286 cpdef enum Evas_Object_Pointer_Mode:
287 EVAS_OBJECT_POINTER_MODE_AUTOGRAB
288 EVAS_OBJECT_POINTER_MODE_NOGRAB
289 EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN
290 ctypedef enum Evas_Object_Pointer_Mode:
291 pass
292
293 cpdef enum Evas_Text_Style_Type:
294 EVAS_TEXT_STYLE_PLAIN
295 EVAS_TEXT_STYLE_SHADOW
296 EVAS_TEXT_STYLE_OUTLINE
297 EVAS_TEXT_STYLE_SOFT_OUTLINE
298 EVAS_TEXT_STYLE_GLOW
299 EVAS_TEXT_STYLE_OUTLINE_SHADOW
300 EVAS_TEXT_STYLE_FAR_SHADOW
301 EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW
302 EVAS_TEXT_STYLE_SOFT_SHADOW
303 EVAS_TEXT_STYLE_FAR_SOFT_SHADOW
304 EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT
305 EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM
306 EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT
307 EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT
308 EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT
309 EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP
310 EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT
311 EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT
312 ctypedef enum Evas_Text_Style_Type:
313 pass
314
315 cpdef enum Evas_Textblock_Text_Type:
316 EVAS_TEXTBLOCK_TEXT_RAW
317 EVAS_TEXTBLOCK_TEXT_PLAIN
318 EVAS_TEXTBLOCK_TEXT_MARKUP
319 ctypedef enum Evas_Textblock_Text_Type:
320 pass
321
322 cpdef enum Evas_Textblock_Cursor_Type:
323 EVAS_TEXTBLOCK_CURSOR_UNDER
324 EVAS_TEXTBLOCK_CURSOR_BEFORE
325 ctypedef enum Evas_Textblock_Cursor_Type:
326 pass
327
328 cpdef enum Evas_Textgrid_Palette:
329 EVAS_TEXTGRID_PALETTE_NONE
330 EVAS_TEXTGRID_PALETTE_STANDARD
331 EVAS_TEXTGRID_PALETTE_EXTENDED
332 EVAS_TEXTGRID_PALETTE_LAST
333 ctypedef enum Evas_Textgrid_Palette:
334 pass
335
336 cpdef enum Evas_Textgrid_Font_Style:
337 EVAS_TEXTGRID_FONT_STYLE_NORMAL
338 EVAS_TEXTGRID_FONT_STYLE_BOLD
339 EVAS_TEXTGRID_FONT_STYLE_ITALIC
340 ctypedef enum Evas_Textgrid_Font_Style:
341 pass
342
343 45
344 #################################################################### 46 ####################################################################
345 # Structures 47 # Structures