summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_index_item_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_index_item_eo.c')
-rw-r--r--src/lib/elementary/elm_index_item_eo.c109
1 files changed, 109 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_index_item_eo.c b/src/lib/elementary/elm_index_item_eo.c
new file mode 100644
index 0000000..7ec46c3
--- /dev/null
+++ b/src/lib/elementary/elm_index_item_eo.c
@@ -0,0 +1,109 @@
1
2void _elm_index_item_selected_set(Eo *obj, Elm_Index_Item_Data *pd, Eina_Bool selected);
3
4
5static Eina_Error
6__eolian_elm_index_item_selected_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; Eina_Bool cval;
9 if (!eina_value_bool_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_obj_index_item_selected_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_item_selected_set, EFL_FUNC_CALL(selected), Eina_Bool selected);
21
22void _elm_index_item_priority_set(Eo *obj, Elm_Index_Item_Data *pd, int priority);
23
24
25static Eina_Error
26__eolian_elm_index_item_priority_set_reflect(Eo *obj, Eina_Value val)
27{
28 Eina_Error r = 0; int cval;
29 if (!eina_value_int_convert(&val, &cval))
30 {
31 r = EINA_ERROR_VALUE_FAILED;
32 goto end;
33 }
34 elm_obj_index_item_priority_set(obj, cval);
35 end:
36 eina_value_flush(&val);
37 return r;
38}
39
40EOAPI EFL_VOID_FUNC_BODYV(elm_obj_index_item_priority_set, EFL_FUNC_CALL(priority), int priority);
41
42const char *_elm_index_item_letter_get(const Eo *obj, Elm_Index_Item_Data *pd);
43
44EOAPI EFL_FUNC_BODY_CONST(elm_obj_index_item_letter_get, const char *, NULL);
45
46Efl_Object *_elm_index_item_efl_object_constructor(Eo *obj, Elm_Index_Item_Data *pd);
47
48
49void _elm_index_item_efl_object_destructor(Eo *obj, Elm_Index_Item_Data *pd);
50
51
52Efl_Canvas_Object *_elm_index_item_elm_widget_item_access_register(Eo *obj, Elm_Index_Item_Data *pd);
53
54
55const char *_elm_index_item_efl_access_object_i18n_name_get(const Eo *obj, Elm_Index_Item_Data *pd);
56
57
58const Efl_Access_Action_Data *_elm_index_item_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Index_Item_Data *pd);
59
60
61static Eina_Bool
62_elm_index_item_class_initializer(Efl_Class *klass)
63{
64 const Efl_Object_Ops *opsp = NULL;
65
66 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
67
68#ifndef ELM_INDEX_ITEM_EXTRA_OPS
69#define ELM_INDEX_ITEM_EXTRA_OPS
70#endif
71
72 EFL_OPS_DEFINE(ops,
73 EFL_OBJECT_OP_FUNC(elm_obj_index_item_selected_set, _elm_index_item_selected_set),
74 EFL_OBJECT_OP_FUNC(elm_obj_index_item_priority_set, _elm_index_item_priority_set),
75 EFL_OBJECT_OP_FUNC(elm_obj_index_item_letter_get, _elm_index_item_letter_get),
76 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_index_item_efl_object_constructor),
77 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_index_item_efl_object_destructor),
78 EFL_OBJECT_OP_FUNC(elm_wdg_item_access_register, _elm_index_item_elm_widget_item_access_register),
79 EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, _elm_index_item_efl_access_object_i18n_name_get),
80 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_index_item_efl_access_widget_action_elm_actions_get),
81 ELM_INDEX_ITEM_EXTRA_OPS
82 );
83 opsp = &ops;
84
85 static const Efl_Object_Property_Reflection refl_table[] = {
86 {"selected", __eolian_elm_index_item_selected_set_reflect, NULL},
87 {"priority", __eolian_elm_index_item_priority_set_reflect, NULL},
88 };
89 static const Efl_Object_Property_Reflection_Ops rops = {
90 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
91 };
92 ropsp = &rops;
93
94 return efl_class_functions_set(klass, opsp, ropsp);
95}
96
97static const Efl_Class_Description _elm_index_item_class_desc = {
98 EO_VERSION,
99 "Elm.Index.Item",
100 EFL_CLASS_TYPE_REGULAR,
101 sizeof(Elm_Index_Item_Data),
102 _elm_index_item_class_initializer,
103 NULL,
104 NULL
105};
106
107EFL_DEFINE_CLASS(elm_index_item_class_get, &_elm_index_item_class_desc, ELM_WIDGET_ITEM_CLASS, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
108
109#include "elm_index_item_eo.legacy.c"