1 EWAPI const Efl_Event_Description _ELM_INDEX_EVENT_CHANGED =
2    EFL_EVENT_DESCRIPTION("changed");
3 EWAPI const Efl_Event_Description _ELM_INDEX_EVENT_DELAY_CHANGED =
4    EFL_EVENT_DESCRIPTION("delay,changed");
5 EWAPI const Efl_Event_Description _ELM_INDEX_EVENT_LEVEL_UP =
6    EFL_EVENT_DESCRIPTION("level,up");
7 EWAPI const Efl_Event_Description _ELM_INDEX_EVENT_LEVEL_DOWN =
8    EFL_EVENT_DESCRIPTION("level,down");
9 
10 void _elm_index_autohide_disabled_set(Eo *obj, Elm_Index_Data *pd, Eina_Bool disabled);
11 
12 
13 static Eina_Error
__eolian_elm_index_autohide_disabled_set_reflect(Eo * obj,Eina_Value val)14 __eolian_elm_index_autohide_disabled_set_reflect(Eo *obj, Eina_Value val)
15 {
16    Eina_Error r = 0;   Eina_Bool cval;
17    if (!eina_value_bool_convert(&val, &cval))
18       {
19          r = EINA_ERROR_VALUE_FAILED;
20          goto end;
21       }
22    elm_obj_index_autohide_disabled_set(obj, cval);
23  end:
24    eina_value_flush(&val);
25    return r;
26 }
27 
28 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_autohide_disabled_set, EFL_FUNC_CALL(disabled), Eina_Bool disabled);
29 
30 Eina_Bool _elm_index_autohide_disabled_get(const Eo *obj, Elm_Index_Data *pd);
31 
32 
33 static Eina_Value
__eolian_elm_index_autohide_disabled_get_reflect(const Eo * obj)34 __eolian_elm_index_autohide_disabled_get_reflect(const Eo *obj)
35 {
36    Eina_Bool val = elm_obj_index_autohide_disabled_get(obj);
37    return eina_value_bool_init(val);
38 }
39 
40 EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_autohide_disabled_get, Eina_Bool, 0);
41 
42 void _elm_index_omit_enabled_set(Eo *obj, Elm_Index_Data *pd, Eina_Bool enabled);
43 
44 
45 static Eina_Error
__eolian_elm_index_omit_enabled_set_reflect(Eo * obj,Eina_Value val)46 __eolian_elm_index_omit_enabled_set_reflect(Eo *obj, Eina_Value val)
47 {
48    Eina_Error r = 0;   Eina_Bool cval;
49    if (!eina_value_bool_convert(&val, &cval))
50       {
51          r = EINA_ERROR_VALUE_FAILED;
52          goto end;
53       }
54    elm_obj_index_omit_enabled_set(obj, cval);
55  end:
56    eina_value_flush(&val);
57    return r;
58 }
59 
60 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_omit_enabled_set, EFL_FUNC_CALL(enabled), Eina_Bool enabled);
61 
62 Eina_Bool _elm_index_omit_enabled_get(const Eo *obj, Elm_Index_Data *pd);
63 
64 
65 static Eina_Value
__eolian_elm_index_omit_enabled_get_reflect(const Eo * obj)66 __eolian_elm_index_omit_enabled_get_reflect(const Eo *obj)
67 {
68    Eina_Bool val = elm_obj_index_omit_enabled_get(obj);
69    return eina_value_bool_init(val);
70 }
71 
72 EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_omit_enabled_get, Eina_Bool, 0);
73 
74 void _elm_index_standard_priority_set(Eo *obj, Elm_Index_Data *pd, int priority);
75 
76 
77 static Eina_Error
__eolian_elm_index_standard_priority_set_reflect(Eo * obj,Eina_Value val)78 __eolian_elm_index_standard_priority_set_reflect(Eo *obj, Eina_Value val)
79 {
80    Eina_Error r = 0;   int cval;
81    if (!eina_value_int_convert(&val, &cval))
82       {
83          r = EINA_ERROR_VALUE_FAILED;
84          goto end;
85       }
86    elm_obj_index_standard_priority_set(obj, cval);
87  end:
88    eina_value_flush(&val);
89    return r;
90 }
91 
92 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_standard_priority_set, EFL_FUNC_CALL(priority), int priority);
93 
94 int _elm_index_standard_priority_get(const Eo *obj, Elm_Index_Data *pd);
95 
96 
97 static Eina_Value
__eolian_elm_index_standard_priority_get_reflect(const Eo * obj)98 __eolian_elm_index_standard_priority_get_reflect(const Eo *obj)
99 {
100    int val = elm_obj_index_standard_priority_get(obj);
101    return eina_value_int_init(val);
102 }
103 
104 EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_standard_priority_get, int, 0);
105 
106 void _elm_index_delay_change_time_set(Eo *obj, Elm_Index_Data *pd, double dtime);
107 
108 
109 static Eina_Error
__eolian_elm_index_delay_change_time_set_reflect(Eo * obj,Eina_Value val)110 __eolian_elm_index_delay_change_time_set_reflect(Eo *obj, Eina_Value val)
111 {
112    Eina_Error r = 0;   double cval;
113    if (!eina_value_double_convert(&val, &cval))
114       {
115          r = EINA_ERROR_VALUE_FAILED;
116          goto end;
117       }
118    elm_obj_index_delay_change_time_set(obj, cval);
119  end:
120    eina_value_flush(&val);
121    return r;
122 }
123 
124 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_delay_change_time_set, EFL_FUNC_CALL(dtime), double dtime);
125 
126 double _elm_index_delay_change_time_get(const Eo *obj, Elm_Index_Data *pd);
127 
128 
129 static Eina_Value
__eolian_elm_index_delay_change_time_get_reflect(const Eo * obj)130 __eolian_elm_index_delay_change_time_get_reflect(const Eo *obj)
131 {
132    double val = elm_obj_index_delay_change_time_get(obj);
133    return eina_value_double_init(val);
134 }
135 
136 EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_delay_change_time_get, double, 0);
137 
138 void _elm_index_indicator_disabled_set(Eo *obj, Elm_Index_Data *pd, Eina_Bool disabled);
139 
140 
141 static Eina_Error
__eolian_elm_index_indicator_disabled_set_reflect(Eo * obj,Eina_Value val)142 __eolian_elm_index_indicator_disabled_set_reflect(Eo *obj, Eina_Value val)
143 {
144    Eina_Error r = 0;   Eina_Bool cval;
145    if (!eina_value_bool_convert(&val, &cval))
146       {
147          r = EINA_ERROR_VALUE_FAILED;
148          goto end;
149       }
150    elm_obj_index_indicator_disabled_set(obj, cval);
151  end:
152    eina_value_flush(&val);
153    return r;
154 }
155 
156 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_indicator_disabled_set, EFL_FUNC_CALL(disabled), Eina_Bool disabled);
157 
158 Eina_Bool _elm_index_indicator_disabled_get(const Eo *obj, Elm_Index_Data *pd);
159 
160 
161 static Eina_Value
__eolian_elm_index_indicator_disabled_get_reflect(const Eo * obj)162 __eolian_elm_index_indicator_disabled_get_reflect(const Eo *obj)
163 {
164    Eina_Bool val = elm_obj_index_indicator_disabled_get(obj);
165    return eina_value_bool_init(val);
166 }
167 
168 EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_indicator_disabled_get, Eina_Bool, 0);
169 
170 void _elm_index_item_level_set(Eo *obj, Elm_Index_Data *pd, int level);
171 
172 
173 static Eina_Error
__eolian_elm_index_item_level_set_reflect(Eo * obj,Eina_Value val)174 __eolian_elm_index_item_level_set_reflect(Eo *obj, Eina_Value val)
175 {
176    Eina_Error r = 0;   int cval;
177    if (!eina_value_int_convert(&val, &cval))
178       {
179          r = EINA_ERROR_VALUE_FAILED;
180          goto end;
181       }
182    elm_obj_index_item_level_set(obj, cval);
183  end:
184    eina_value_flush(&val);
185    return r;
186 }
187 
188 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_item_level_set, EFL_FUNC_CALL(level), int level);
189 
190 int _elm_index_item_level_get(const Eo *obj, Elm_Index_Data *pd);
191 
192 
193 static Eina_Value
__eolian_elm_index_item_level_get_reflect(const Eo * obj)194 __eolian_elm_index_item_level_get_reflect(const Eo *obj)
195 {
196    int val = elm_obj_index_item_level_get(obj);
197    return eina_value_int_init(val);
198 }
199 
200 EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_item_level_get, int, 0);
201 
202 void _elm_index_level_go(Eo *obj, Elm_Index_Data *pd, int level);
203 
204 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_level_go, EFL_FUNC_CALL(level), int level);
205 
206 Elm_Widget_Item *_elm_index_item_prepend(Eo *obj, Elm_Index_Data *pd, const char *letter, Evas_Smart_Cb func, const void *data);
207 
208 EOAPI EFL_FUNC_BODYV(elm_obj_index_item_prepend, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(letter, func, data), const char *letter, Evas_Smart_Cb func, const void *data);
209 
210 void _elm_index_item_clear(Eo *obj, Elm_Index_Data *pd);
211 
212 EOAPI EFL_VOID_FUNC_BODY(elm_obj_index_item_clear);
213 
214 Elm_Widget_Item *_elm_index_item_insert_after(Eo *obj, Elm_Index_Data *pd, Elm_Widget_Item *after, const char *letter, Evas_Smart_Cb func, const void *data);
215 
216 EOAPI EFL_FUNC_BODYV(elm_obj_index_item_insert_after, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(after, letter, func, data), Elm_Widget_Item *after, const char *letter, Evas_Smart_Cb func, const void *data);
217 
218 Elm_Widget_Item *_elm_index_item_find(Eo *obj, Elm_Index_Data *pd, const void *data);
219 
220 EOAPI EFL_FUNC_BODYV(elm_obj_index_item_find, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(data), const void *data);
221 
222 Elm_Widget_Item *_elm_index_item_insert_before(Eo *obj, Elm_Index_Data *pd, Elm_Widget_Item *before, const char *letter, Evas_Smart_Cb func, const void *data);
223 
224 EOAPI EFL_FUNC_BODYV(elm_obj_index_item_insert_before, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(before, letter, func, data), Elm_Widget_Item *before, const char *letter, Evas_Smart_Cb func, const void *data);
225 
226 Elm_Widget_Item *_elm_index_item_append(Eo *obj, Elm_Index_Data *pd, const char *letter, Evas_Smart_Cb func, const void *data);
227 
228 EOAPI EFL_FUNC_BODYV(elm_obj_index_item_append, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(letter, func, data), const char *letter, Evas_Smart_Cb func, const void *data);
229 
230 Elm_Widget_Item *_elm_index_selected_item_get(const Eo *obj, Elm_Index_Data *pd, int level);
231 
232 EOAPI EFL_FUNC_BODYV_CONST(elm_obj_index_selected_item_get, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(level), int level);
233 
234 Elm_Widget_Item *_elm_index_item_sorted_insert(Eo *obj, Elm_Index_Data *pd, const char *letter, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func, Eina_Compare_Cb cmp_data_func);
235 
236 EOAPI EFL_FUNC_BODYV(elm_obj_index_item_sorted_insert, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(letter, func, data, cmp_func, cmp_data_func), const char *letter, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func, Eina_Compare_Cb cmp_data_func);
237 
238 Efl_Object *_elm_index_efl_object_constructor(Eo *obj, Elm_Index_Data *pd);
239 
240 
241 Eina_Error _elm_index_efl_ui_widget_theme_apply(Eo *obj, Elm_Index_Data *pd);
242 
243 
244 void _elm_index_efl_ui_widget_on_access_update(Eo *obj, Elm_Index_Data *pd, Eina_Bool enable);
245 
246 
247 void _elm_index_efl_ui_layout_orientable_orientation_set(Eo *obj, Elm_Index_Data *pd, Efl_Ui_Layout_Orientation dir);
248 
249 
250 Efl_Ui_Layout_Orientation _elm_index_efl_ui_layout_orientable_orientation_get(const Eo *obj, Elm_Index_Data *pd);
251 
252 
253 Eina_List *_elm_index_efl_access_object_access_children_get(const Eo *obj, Elm_Index_Data *pd);
254 
255 
256 static Eina_Bool
_elm_index_class_initializer(Efl_Class * klass)257 _elm_index_class_initializer(Efl_Class *klass)
258 {
259    const Efl_Object_Ops *opsp = NULL;
260 
261    const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
262 
263 #ifndef ELM_INDEX_EXTRA_OPS
264 #define ELM_INDEX_EXTRA_OPS
265 #endif
266 
267    EFL_OPS_DEFINE(ops,
268       EFL_OBJECT_OP_FUNC(elm_obj_index_autohide_disabled_set, _elm_index_autohide_disabled_set),
269       EFL_OBJECT_OP_FUNC(elm_obj_index_autohide_disabled_get, _elm_index_autohide_disabled_get),
270       EFL_OBJECT_OP_FUNC(elm_obj_index_omit_enabled_set, _elm_index_omit_enabled_set),
271       EFL_OBJECT_OP_FUNC(elm_obj_index_omit_enabled_get, _elm_index_omit_enabled_get),
272       EFL_OBJECT_OP_FUNC(elm_obj_index_standard_priority_set, _elm_index_standard_priority_set),
273       EFL_OBJECT_OP_FUNC(elm_obj_index_standard_priority_get, _elm_index_standard_priority_get),
274       EFL_OBJECT_OP_FUNC(elm_obj_index_delay_change_time_set, _elm_index_delay_change_time_set),
275       EFL_OBJECT_OP_FUNC(elm_obj_index_delay_change_time_get, _elm_index_delay_change_time_get),
276       EFL_OBJECT_OP_FUNC(elm_obj_index_indicator_disabled_set, _elm_index_indicator_disabled_set),
277       EFL_OBJECT_OP_FUNC(elm_obj_index_indicator_disabled_get, _elm_index_indicator_disabled_get),
278       EFL_OBJECT_OP_FUNC(elm_obj_index_item_level_set, _elm_index_item_level_set),
279       EFL_OBJECT_OP_FUNC(elm_obj_index_item_level_get, _elm_index_item_level_get),
280       EFL_OBJECT_OP_FUNC(elm_obj_index_level_go, _elm_index_level_go),
281       EFL_OBJECT_OP_FUNC(elm_obj_index_item_prepend, _elm_index_item_prepend),
282       EFL_OBJECT_OP_FUNC(elm_obj_index_item_clear, _elm_index_item_clear),
283       EFL_OBJECT_OP_FUNC(elm_obj_index_item_insert_after, _elm_index_item_insert_after),
284       EFL_OBJECT_OP_FUNC(elm_obj_index_item_find, _elm_index_item_find),
285       EFL_OBJECT_OP_FUNC(elm_obj_index_item_insert_before, _elm_index_item_insert_before),
286       EFL_OBJECT_OP_FUNC(elm_obj_index_item_append, _elm_index_item_append),
287       EFL_OBJECT_OP_FUNC(elm_obj_index_selected_item_get, _elm_index_selected_item_get),
288       EFL_OBJECT_OP_FUNC(elm_obj_index_item_sorted_insert, _elm_index_item_sorted_insert),
289       EFL_OBJECT_OP_FUNC(efl_constructor, _elm_index_efl_object_constructor),
290       EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_index_efl_ui_widget_theme_apply),
291       EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_index_efl_ui_widget_on_access_update),
292       EFL_OBJECT_OP_FUNC(efl_ui_layout_orientation_set, _elm_index_efl_ui_layout_orientable_orientation_set),
293       EFL_OBJECT_OP_FUNC(efl_ui_layout_orientation_get, _elm_index_efl_ui_layout_orientable_orientation_get),
294       EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, _elm_index_efl_access_object_access_children_get),
295       ELM_INDEX_EXTRA_OPS
296    );
297    opsp = &ops;
298 
299    static const Efl_Object_Property_Reflection refl_table[] = {
300       {"autohide_disabled", __eolian_elm_index_autohide_disabled_set_reflect, __eolian_elm_index_autohide_disabled_get_reflect},
301       {"omit_enabled", __eolian_elm_index_omit_enabled_set_reflect, __eolian_elm_index_omit_enabled_get_reflect},
302       {"standard_priority", __eolian_elm_index_standard_priority_set_reflect, __eolian_elm_index_standard_priority_get_reflect},
303       {"delay_change_time", __eolian_elm_index_delay_change_time_set_reflect, __eolian_elm_index_delay_change_time_get_reflect},
304       {"indicator_disabled", __eolian_elm_index_indicator_disabled_set_reflect, __eolian_elm_index_indicator_disabled_get_reflect},
305       {"item_level", __eolian_elm_index_item_level_set_reflect, __eolian_elm_index_item_level_get_reflect},
306    };
307    static const Efl_Object_Property_Reflection_Ops rops = {
308       refl_table, EINA_C_ARRAY_LENGTH(refl_table)
309    };
310    ropsp = &rops;
311 
312    return efl_class_functions_set(klass, opsp, ropsp);
313 }
314 
315 static const Efl_Class_Description _elm_index_class_desc = {
316    EO_VERSION,
317    "Elm.Index",
318    EFL_CLASS_TYPE_REGULAR,
319    sizeof(Elm_Index_Data),
320    _elm_index_class_initializer,
321    _elm_index_class_constructor,
322    NULL
323 };
324 
325 EFL_DEFINE_CLASS(elm_index_class_get, &_elm_index_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_LAYOUT_ORIENTABLE_INTERFACE, EFL_INPUT_CLICKABLE_MIXIN, ELM_LAYOUT_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
326 
327 #include "elm_index_eo.legacy.c"
328