summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-04 22:02:09 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-04 22:02:09 +0100
commit3ebc6f21e9f206a079f874bc8183f23d84c03c35 (patch)
treec787936ced1fa134153dae56ce6d8b992ba5d852 /include
parent419405e456c3b774ea726d199dbef07ac734a11b (diff)
New style enums for edje
Diffstat (limited to 'include')
-rw-r--r--include/efl.edje.pxd140
1 files changed, 135 insertions, 5 deletions
diff --git a/include/efl.edje.pxd b/include/efl.edje.pxd
index b18ff4a..ba1309f 100644
--- a/include/efl.edje.pxd
+++ b/include/efl.edje.pxd
@@ -21,42 +21,172 @@ from efl.evas cimport Object, Evas_Object, Evas, Evas_Font_Size, Evas_Coord
21 21
22cdef extern from "Edje.h": 22cdef extern from "Edje.h":
23 #################################################################### 23 ####################################################################
24 # Enumerations 24 # Define (these are not accessible from python atm)
25 # 25 #
26 cdef int EDJE_EXTERNAL_INT_UNSET
27 cdef double EDJE_EXTERNAL_DOUBLE_UNSET
28 cdef unsigned int EDJE_EXTERNAL_TYPE_ABI_VERSION
29
30 ####################################################################
31 # Enums
32 #
33 cpdef enum Edje_Message_Type:
34 EDJE_MESSAGE_NONE
35 EDJE_MESSAGE_SIGNAL
36 EDJE_MESSAGE_STRING
37 EDJE_MESSAGE_INT
38 EDJE_MESSAGE_FLOAT
39 EDJE_MESSAGE_STRING_SET
40 EDJE_MESSAGE_INT_SET
41 EDJE_MESSAGE_FLOAT_SET
42 EDJE_MESSAGE_STRING_INT
43 EDJE_MESSAGE_STRING_FLOAT
44 EDJE_MESSAGE_STRING_INT_SET
45 EDJE_MESSAGE_STRING_FLOAT_SET
26 ctypedef enum Edje_Message_Type: 46 ctypedef enum Edje_Message_Type:
27 pass 47 pass
28 48
49 cpdef enum Edje_Aspect_Control:
50 EDJE_ASPECT_CONTROL_NONE
51 EDJE_ASPECT_CONTROL_NEITHER
52 EDJE_ASPECT_CONTROL_HORIZONTAL
53 EDJE_ASPECT_CONTROL_VERTICAL
54 EDJE_ASPECT_CONTROL_BOTH
29 ctypedef enum Edje_Aspect_Control: 55 ctypedef enum Edje_Aspect_Control:
30 pass 56 pass
31 57
58 cpdef enum Edje_Drag_Dir:
59 EDJE_DRAG_DIR_NONE
60 EDJE_DRAG_DIR_X
61 EDJE_DRAG_DIR_Y
62 EDJE_DRAG_DIR_XY
32 ctypedef enum Edje_Drag_Dir: 63 ctypedef enum Edje_Drag_Dir:
33 pass 64 pass
34 65
66 cpdef enum Edje_Load_Error:
67 EDJE_LOAD_ERROR_NONE
68 EDJE_LOAD_ERROR_GENERIC
69 EDJE_LOAD_ERROR_DOES_NOT_EXIST
70 EDJE_LOAD_ERROR_PERMISSION_DENIED
71 EDJE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED
72 EDJE_LOAD_ERROR_CORRUPT_FILE
73 EDJE_LOAD_ERROR_UNKNOWN_FORMAT
74 EDJE_LOAD_ERROR_INCOMPATIBLE_FILE
75 EDJE_LOAD_ERROR_UNKNOWN_COLLECTION
76 EDJE_LOAD_ERROR_RECURSIVE_REFERENCE
35 ctypedef enum Edje_Load_Error: 77 ctypedef enum Edje_Load_Error:
36 pass 78 pass
37 79
80 cpdef enum Edje_Part_Type:
81 EDJE_PART_TYPE_NONE
82 EDJE_PART_TYPE_RECTANGLE
83 EDJE_PART_TYPE_TEXT
84 EDJE_PART_TYPE_IMAGE
85 EDJE_PART_TYPE_SWALLOW
86 EDJE_PART_TYPE_TEXTBLOCK
87 EDJE_PART_TYPE_GRADIENT
88 EDJE_PART_TYPE_GROUP
89 EDJE_PART_TYPE_BOX
90 EDJE_PART_TYPE_TABLE
91 EDJE_PART_TYPE_EXTERNAL
92 EDJE_PART_TYPE_SPACER
93 EDJE_PART_TYPE_MESH_NODE
94 EDJE_PART_TYPE_LIGHT
95 EDJE_PART_TYPE_CAMERA
96 EDJE_PART_TYPE_LAST
38 ctypedef enum Edje_Part_Type: 97 ctypedef enum Edje_Part_Type:
39 pass 98 pass
40 99
100 cpdef enum Edje_Text_Effect:
101 EDJE_TEXT_EFFECT_NONE
102 EDJE_TEXT_EFFECT_PLAIN
103 EDJE_TEXT_EFFECT_OUTLINE
104 EDJE_TEXT_EFFECT_SOFT_OUTLINE
105 EDJE_TEXT_EFFECT_SHADOW
106 EDJE_TEXT_EFFECT_SOFT_SHADOW
107 EDJE_TEXT_EFFECT_OUTLINE_SHADOW
108 EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW
109 EDJE_TEXT_EFFECT_FAR_SHADOW
110 EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW
111 EDJE_TEXT_EFFECT_GLOW
112 EDJE_TEXT_EFFECT_LAST
113 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_RIGHT
114 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM
115 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_LEFT
116 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_LEFT
117 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_LEFT
118 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP
119 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_RIGHT
120 EDJE_TEXT_EFFECT_SHADOW_DIRECTION_RIGHT
41 ctypedef enum Edje_Text_Effect: 121 ctypedef enum Edje_Text_Effect:
42 pass 122 pass
43 123
124 cpdef enum Edje_Action_Type:
125 EDJE_ACTION_TYPE_NONE
126 EDJE_ACTION_TYPE_STATE_SET
127 EDJE_ACTION_TYPE_ACTION_STOP
128 EDJE_ACTION_TYPE_SIGNAL_EMIT
129 EDJE_ACTION_TYPE_DRAG_VAL_SET
130 EDJE_ACTION_TYPE_DRAG_VAL_STEP
131 EDJE_ACTION_TYPE_DRAG_VAL_PAGE
132 EDJE_ACTION_TYPE_SCRIPT
133 EDJE_ACTION_TYPE_FOCUS_SET
134 EDJE_ACTION_TYPE_RESERVED00
135 EDJE_ACTION_TYPE_FOCUS_OBJECT
136 EDJE_ACTION_TYPE_PARAM_COPY
137 EDJE_ACTION_TYPE_PARAM_SET
138 EDJE_ACTION_TYPE_SOUND_SAMPLE
139 EDJE_ACTION_TYPE_SOUND_TONE
140 EDJE_ACTION_TYPE_PHYSICS_IMPULSE
141 EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE
142 EDJE_ACTION_TYPE_PHYSICS_FORCE
143 EDJE_ACTION_TYPE_PHYSICS_TORQUE
144 EDJE_ACTION_TYPE_PHYSICS_FORCES_CLEAR
145 EDJE_ACTION_TYPE_PHYSICS_VEL_SET
146 EDJE_ACTION_TYPE_PHYSICS_ANG_VEL_SET
147 EDJE_ACTION_TYPE_PHYSICS_STOP
148 EDJE_ACTION_TYPE_PHYSICS_ROT_SET
149 EDJE_ACTION_TYPE_VIBRATION_SAMPLE
150 EDJE_ACTION_TYPE_LAST
44 ctypedef enum Edje_Action_Type: 151 ctypedef enum Edje_Action_Type:
45 pass 152 pass
46 153
154 cpdef enum Edje_Tween_Mode:
155 EDJE_TWEEN_MODE_NONE
156 EDJE_TWEEN_MODE_LINEAR
157 EDJE_TWEEN_MODE_SINUSOIDAL
158 EDJE_TWEEN_MODE_ACCELERATE
159 EDJE_TWEEN_MODE_DECELERATE
160 EDJE_TWEEN_MODE_ACCELERATE_FACTOR
161 EDJE_TWEEN_MODE_DECELERATE_FACTOR
162 EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR
163 EDJE_TWEEN_MODE_DIVISOR_INTERP
164 EDJE_TWEEN_MODE_BOUNCE
165 EDJE_TWEEN_MODE_SPRING
166 EDJE_TWEEN_MODE_CUBIC_BEZIER
167 EDJE_TWEEN_MODE_LAST
168 EDJE_TWEEN_MODE_MASK
169 EDJE_TWEEN_MODE_OPT_FROM_CURRENT
47 ctypedef enum Edje_Tween_Mode: 170 ctypedef enum Edje_Tween_Mode:
48 pass 171 pass
49 172
173 cpdef enum Edje_External_Param_Type:
174 EDJE_EXTERNAL_PARAM_TYPE_INT
175 EDJE_EXTERNAL_PARAM_TYPE_DOUBLE
176 EDJE_EXTERNAL_PARAM_TYPE_STRING
177 EDJE_EXTERNAL_PARAM_TYPE_BOOL
178 EDJE_EXTERNAL_PARAM_TYPE_CHOICE
179 EDJE_EXTERNAL_PARAM_TYPE_MAX
50 ctypedef enum Edje_External_Param_Type: 180 ctypedef enum Edje_External_Param_Type:
51 pass 181 pass
52 182
183 cpdef enum Edje_Input_Hints:
184 EDJE_INPUT_HINT_NONE
185 EDJE_INPUT_HINT_AUTO_COMPLETE
186 EDJE_INPUT_HINT_SENSITIVE_DATA
53 ctypedef enum Edje_Input_Hints: 187 ctypedef enum Edje_Input_Hints:
54 pass 188 pass
55 189
56 cdef int EDJE_EXTERNAL_INT_UNSET
57 cdef double EDJE_EXTERNAL_DOUBLE_UNSET
58 cdef unsigned int EDJE_EXTERNAL_TYPE_ABI_VERSION
59
60 #################################################################### 190 ####################################################################
61 # Structures 191 # Structures
62 # 192 #