summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_gesture_layer_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_gesture_layer_eo.c')
-rw-r--r--src/lib/elementary/elm_gesture_layer_eo.c208
1 files changed, 208 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_gesture_layer_eo.c b/src/lib/elementary/elm_gesture_layer_eo.c
new file mode 100644
index 0000000..9cdae6c
--- /dev/null
+++ b/src/lib/elementary/elm_gesture_layer_eo.c
@@ -0,0 +1,208 @@
1
2void _elm_gesture_layer_zoom_step_set(Eo *obj, Elm_Gesture_Layer_Data *pd, double step);
3
4
5static Eina_Error
6__eolian_elm_gesture_layer_zoom_step_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; double cval;
9 if (!eina_value_double_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_obj_gesture_layer_zoom_step_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_zoom_step_set, EFL_FUNC_CALL(step), double step);
21
22double _elm_gesture_layer_zoom_step_get(const Eo *obj, Elm_Gesture_Layer_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_gesture_layer_zoom_step_get_reflect(Eo *obj)
27{
28 double val = elm_obj_gesture_layer_zoom_step_get(obj);
29 return eina_value_double_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_gesture_layer_zoom_step_get, double, 0);
33
34void _elm_gesture_layer_tap_finger_size_set(Eo *obj, Elm_Gesture_Layer_Data *pd, int sz);
35
36
37static Eina_Error
38__eolian_elm_gesture_layer_tap_finger_size_set_reflect(Eo *obj, Eina_Value val)
39{
40 Eina_Error r = 0; int cval;
41 if (!eina_value_int_convert(&val, &cval))
42 {
43 r = EINA_ERROR_VALUE_FAILED;
44 goto end;
45 }
46 elm_obj_gesture_layer_tap_finger_size_set(obj, cval);
47 end:
48 eina_value_flush(&val);
49 return r;
50}
51
52EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_tap_finger_size_set, EFL_FUNC_CALL(sz), int sz);
53
54int _elm_gesture_layer_tap_finger_size_get(const Eo *obj, Elm_Gesture_Layer_Data *pd);
55
56
57static Eina_Value
58__eolian_elm_gesture_layer_tap_finger_size_get_reflect(Eo *obj)
59{
60 int val = elm_obj_gesture_layer_tap_finger_size_get(obj);
61 return eina_value_int_init(val);
62}
63
64EOAPI EFL_FUNC_BODY_CONST(elm_obj_gesture_layer_tap_finger_size_get, int, 0);
65
66void _elm_gesture_layer_hold_events_set(Eo *obj, Elm_Gesture_Layer_Data *pd, Eina_Bool hold_events);
67
68
69static Eina_Error
70__eolian_elm_gesture_layer_hold_events_set_reflect(Eo *obj, Eina_Value val)
71{
72 Eina_Error r = 0; Eina_Bool cval;
73 if (!eina_value_bool_convert(&val, &cval))
74 {
75 r = EINA_ERROR_VALUE_FAILED;
76 goto end;
77 }
78 elm_obj_gesture_layer_hold_events_set(obj, cval);
79 end:
80 eina_value_flush(&val);
81 return r;
82}
83
84EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_hold_events_set, EFL_FUNC_CALL(hold_events), Eina_Bool hold_events);
85
86Eina_Bool _elm_gesture_layer_hold_events_get(const Eo *obj, Elm_Gesture_Layer_Data *pd);
87
88
89static Eina_Value
90__eolian_elm_gesture_layer_hold_events_get_reflect(Eo *obj)
91{
92 Eina_Bool val = elm_obj_gesture_layer_hold_events_get(obj);
93 return eina_value_bool_init(val);
94}
95
96EOAPI EFL_FUNC_BODY_CONST(elm_obj_gesture_layer_hold_events_get, Eina_Bool, 0);
97
98void _elm_gesture_layer_rotate_step_set(Eo *obj, Elm_Gesture_Layer_Data *pd, double step);
99
100
101static Eina_Error
102__eolian_elm_gesture_layer_rotate_step_set_reflect(Eo *obj, Eina_Value val)
103{
104 Eina_Error r = 0; double cval;
105 if (!eina_value_double_convert(&val, &cval))
106 {
107 r = EINA_ERROR_VALUE_FAILED;
108 goto end;
109 }
110 elm_obj_gesture_layer_rotate_step_set(obj, cval);
111 end:
112 eina_value_flush(&val);
113 return r;
114}
115
116EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_rotate_step_set, EFL_FUNC_CALL(step), double step);
117
118double _elm_gesture_layer_rotate_step_get(const Eo *obj, Elm_Gesture_Layer_Data *pd);
119
120
121static Eina_Value
122__eolian_elm_gesture_layer_rotate_step_get_reflect(Eo *obj)
123{
124 double val = elm_obj_gesture_layer_rotate_step_get(obj);
125 return eina_value_double_init(val);
126}
127
128EOAPI EFL_FUNC_BODY_CONST(elm_obj_gesture_layer_rotate_step_get, double, 0);
129
130void _elm_gesture_layer_cb_set(Eo *obj, Elm_Gesture_Layer_Data *pd, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
131
132EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_cb_set, EFL_FUNC_CALL(idx, cb_type, cb, data), Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
133
134Eina_Bool _elm_gesture_layer_attach(Eo *obj, Elm_Gesture_Layer_Data *pd, Efl_Canvas_Object *target);
135
136EOAPI EFL_FUNC_BODYV(elm_obj_gesture_layer_attach, Eina_Bool, 0, EFL_FUNC_CALL(target), Efl_Canvas_Object *target);
137
138void _elm_gesture_layer_cb_del(Eo *obj, Elm_Gesture_Layer_Data *pd, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
139
140EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_cb_del, EFL_FUNC_CALL(idx, cb_type, cb, data), Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
141
142void _elm_gesture_layer_cb_add(Eo *obj, Elm_Gesture_Layer_Data *pd, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
143
144EOAPI EFL_VOID_FUNC_BODYV(elm_obj_gesture_layer_cb_add, EFL_FUNC_CALL(idx, cb_type, cb, data), Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
145
146Efl_Object *_elm_gesture_layer_efl_object_constructor(Eo *obj, Elm_Gesture_Layer_Data *pd);
147
148
149void _elm_gesture_layer_efl_ui_widget_disabled_set(Eo *obj, Elm_Gesture_Layer_Data *pd, Eina_Bool disabled);
150
151
152static Eina_Bool
153_elm_gesture_layer_class_initializer(Efl_Class *klass)
154{
155 const Efl_Object_Ops *opsp = NULL;
156
157 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
158
159#ifndef ELM_GESTURE_LAYER_EXTRA_OPS
160#define ELM_GESTURE_LAYER_EXTRA_OPS
161#endif
162
163 EFL_OPS_DEFINE(ops,
164 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_zoom_step_set, _elm_gesture_layer_zoom_step_set),
165 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_zoom_step_get, _elm_gesture_layer_zoom_step_get),
166 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_tap_finger_size_set, _elm_gesture_layer_tap_finger_size_set),
167 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_tap_finger_size_get, _elm_gesture_layer_tap_finger_size_get),
168 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_hold_events_set, _elm_gesture_layer_hold_events_set),
169 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_hold_events_get, _elm_gesture_layer_hold_events_get),
170 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_rotate_step_set, _elm_gesture_layer_rotate_step_set),
171 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_rotate_step_get, _elm_gesture_layer_rotate_step_get),
172 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_cb_set, _elm_gesture_layer_cb_set),
173 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_attach, _elm_gesture_layer_attach),
174 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_cb_del, _elm_gesture_layer_cb_del),
175 EFL_OBJECT_OP_FUNC(elm_obj_gesture_layer_cb_add, _elm_gesture_layer_cb_add),
176 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_gesture_layer_efl_object_constructor),
177 EFL_OBJECT_OP_FUNC(efl_ui_widget_disabled_set, _elm_gesture_layer_efl_ui_widget_disabled_set),
178 ELM_GESTURE_LAYER_EXTRA_OPS
179 );
180 opsp = &ops;
181
182 static const Efl_Object_Property_Reflection refl_table[] = {
183 {"zoom_step", __eolian_elm_gesture_layer_zoom_step_set_reflect, __eolian_elm_gesture_layer_zoom_step_get_reflect},
184 {"tap_finger_size", __eolian_elm_gesture_layer_tap_finger_size_set_reflect, __eolian_elm_gesture_layer_tap_finger_size_get_reflect},
185 {"hold_events", __eolian_elm_gesture_layer_hold_events_set_reflect, __eolian_elm_gesture_layer_hold_events_get_reflect},
186 {"rotate_step", __eolian_elm_gesture_layer_rotate_step_set_reflect, __eolian_elm_gesture_layer_rotate_step_get_reflect},
187 };
188 static const Efl_Object_Property_Reflection_Ops rops = {
189 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
190 };
191 ropsp = &rops;
192
193 return efl_class_functions_set(klass, opsp, ropsp);
194}
195
196static const Efl_Class_Description _elm_gesture_layer_class_desc = {
197 EO_VERSION,
198 "Elm.Gesture_Layer",
199 EFL_CLASS_TYPE_REGULAR,
200 sizeof(Elm_Gesture_Layer_Data),
201 _elm_gesture_layer_class_initializer,
202 _elm_gesture_layer_class_constructor,
203 NULL
204};
205
206EFL_DEFINE_CLASS(elm_gesture_layer_class_get, &_elm_gesture_layer_class_desc, EFL_UI_WIDGET_CLASS, EFL_UI_LEGACY_INTERFACE, NULL);
207
208#include "elm_gesture_layer_eo.legacy.c"