summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_diskselector_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_diskselector_eo.c')
-rw-r--r--src/lib/elementary/elm_diskselector_eo.c227
1 files changed, 227 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_diskselector_eo.c b/src/lib/elementary/elm_diskselector_eo.c
new file mode 100644
index 0000000..a016e72
--- /dev/null
+++ b/src/lib/elementary/elm_diskselector_eo.c
@@ -0,0 +1,227 @@
1
2void _elm_diskselector_side_text_max_length_set(Eo *obj, Elm_Diskselector_Data *pd, int len);
3
4
5static Eina_Error
6__eolian_elm_diskselector_side_text_max_length_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; int cval;
9 if (!eina_value_int_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_obj_diskselector_side_text_max_length_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_diskselector_side_text_max_length_set, EFL_FUNC_CALL(len), int len);
21
22int _elm_diskselector_side_text_max_length_get(const Eo *obj, Elm_Diskselector_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_diskselector_side_text_max_length_get_reflect(Eo *obj)
27{
28 int val = elm_obj_diskselector_side_text_max_length_get(obj);
29 return eina_value_int_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_side_text_max_length_get, int, 0);
33
34void _elm_diskselector_round_enabled_set(Eo *obj, Elm_Diskselector_Data *pd, Eina_Bool enabled);
35
36
37static Eina_Error
38__eolian_elm_diskselector_round_enabled_set_reflect(Eo *obj, Eina_Value val)
39{
40 Eina_Error r = 0; Eina_Bool cval;
41 if (!eina_value_bool_convert(&val, &cval))
42 {
43 r = EINA_ERROR_VALUE_FAILED;
44 goto end;
45 }
46 elm_obj_diskselector_round_enabled_set(obj, cval);
47 end:
48 eina_value_flush(&val);
49 return r;
50}
51
52EOAPI EFL_VOID_FUNC_BODYV(elm_obj_diskselector_round_enabled_set, EFL_FUNC_CALL(enabled), Eina_Bool enabled);
53
54Eina_Bool _elm_diskselector_round_enabled_get(const Eo *obj, Elm_Diskselector_Data *pd);
55
56
57static Eina_Value
58__eolian_elm_diskselector_round_enabled_get_reflect(Eo *obj)
59{
60 Eina_Bool val = elm_obj_diskselector_round_enabled_get(obj);
61 return eina_value_bool_init(val);
62}
63
64EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_round_enabled_get, Eina_Bool, 0);
65
66void _elm_diskselector_display_item_num_set(Eo *obj, Elm_Diskselector_Data *pd, int num);
67
68
69static Eina_Error
70__eolian_elm_diskselector_display_item_num_set_reflect(Eo *obj, Eina_Value val)
71{
72 Eina_Error r = 0; int cval;
73 if (!eina_value_int_convert(&val, &cval))
74 {
75 r = EINA_ERROR_VALUE_FAILED;
76 goto end;
77 }
78 elm_obj_diskselector_display_item_num_set(obj, cval);
79 end:
80 eina_value_flush(&val);
81 return r;
82}
83
84EOAPI EFL_VOID_FUNC_BODYV(elm_obj_diskselector_display_item_num_set, EFL_FUNC_CALL(num), int num);
85
86int _elm_diskselector_display_item_num_get(const Eo *obj, Elm_Diskselector_Data *pd);
87
88
89static Eina_Value
90__eolian_elm_diskselector_display_item_num_get_reflect(Eo *obj)
91{
92 int val = elm_obj_diskselector_display_item_num_get(obj);
93 return eina_value_int_init(val);
94}
95
96EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_display_item_num_get, int, 0);
97
98Elm_Widget_Item *_elm_diskselector_first_item_get(const Eo *obj, Elm_Diskselector_Data *pd);
99
100EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_first_item_get, Elm_Widget_Item *, NULL);
101
102const Eina_List *_elm_diskselector_items_get(const Eo *obj, Elm_Diskselector_Data *pd);
103
104EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_items_get, const Eina_List *, NULL);
105
106Elm_Widget_Item *_elm_diskselector_last_item_get(const Eo *obj, Elm_Diskselector_Data *pd);
107
108EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_last_item_get, Elm_Widget_Item *, NULL);
109
110Elm_Widget_Item *_elm_diskselector_selected_item_get(const Eo *obj, Elm_Diskselector_Data *pd);
111
112EOAPI EFL_FUNC_BODY_CONST(elm_obj_diskselector_selected_item_get, Elm_Widget_Item *, NULL);
113
114Elm_Widget_Item *_elm_diskselector_item_append(Eo *obj, Elm_Diskselector_Data *pd, const char *label, Efl_Canvas_Object *icon, Evas_Smart_Cb func, const void *data);
115
116EOAPI EFL_FUNC_BODYV(elm_obj_diskselector_item_append, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(label, icon, func, data), const char *label, Efl_Canvas_Object *icon, Evas_Smart_Cb func, const void *data);
117
118void _elm_diskselector_clear(Eo *obj, Elm_Diskselector_Data *pd);
119
120EOAPI EFL_VOID_FUNC_BODY(elm_obj_diskselector_clear);
121
122Efl_Object *_elm_diskselector_efl_object_constructor(Eo *obj, Elm_Diskselector_Data *pd);
123
124
125void _elm_diskselector_efl_gfx_entity_position_set(Eo *obj, Elm_Diskselector_Data *pd, Eina_Position2D pos);
126
127
128void _elm_diskselector_efl_gfx_entity_size_set(Eo *obj, Elm_Diskselector_Data *pd, Eina_Size2D size);
129
130
131void _elm_diskselector_efl_canvas_group_group_member_add(Eo *obj, Elm_Diskselector_Data *pd, Efl_Canvas_Object *sub_obj);
132
133
134void _elm_diskselector_efl_ui_widget_on_access_update(Eo *obj, Elm_Diskselector_Data *pd, Eina_Bool enable);
135
136
137Eina_Error _elm_diskselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Diskselector_Data *pd);
138
139
140Eina_Bool _elm_diskselector_efl_ui_focus_object_on_focus_update(Eo *obj, Elm_Diskselector_Data *pd);
141
142
143void _elm_diskselector_efl_ui_l10n_translation_update(Eo *obj, Elm_Diskselector_Data *pd);
144
145
146Eina_Bool _elm_diskselector_efl_ui_widget_widget_sub_object_del(Eo *obj, Elm_Diskselector_Data *pd, Efl_Canvas_Object *sub_obj);
147
148
149Eina_Bool _elm_diskselector_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Diskselector_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
150
151
152void _elm_diskselector_elm_interface_scrollable_policy_set(Eo *obj, Elm_Diskselector_Data *pd, Elm_Scroller_Policy hbar, Elm_Scroller_Policy vbar);
153
154
155void _elm_diskselector_elm_interface_scrollable_policy_get(const Eo *obj, Elm_Diskselector_Data *pd, Elm_Scroller_Policy *hbar, Elm_Scroller_Policy *vbar);
156
157
158const Efl_Access_Action_Data *_elm_diskselector_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Diskselector_Data *pd);
159
160
161static Eina_Bool
162_elm_diskselector_class_initializer(Efl_Class *klass)
163{
164 const Efl_Object_Ops *opsp = NULL;
165
166 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
167
168#ifndef ELM_DISKSELECTOR_EXTRA_OPS
169#define ELM_DISKSELECTOR_EXTRA_OPS
170#endif
171
172 EFL_OPS_DEFINE(ops,
173 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_side_text_max_length_set, _elm_diskselector_side_text_max_length_set),
174 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_side_text_max_length_get, _elm_diskselector_side_text_max_length_get),
175 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_round_enabled_set, _elm_diskselector_round_enabled_set),
176 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_round_enabled_get, _elm_diskselector_round_enabled_get),
177 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_display_item_num_set, _elm_diskselector_display_item_num_set),
178 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_display_item_num_get, _elm_diskselector_display_item_num_get),
179 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_first_item_get, _elm_diskselector_first_item_get),
180 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_items_get, _elm_diskselector_items_get),
181 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_last_item_get, _elm_diskselector_last_item_get),
182 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_selected_item_get, _elm_diskselector_selected_item_get),
183 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_item_append, _elm_diskselector_item_append),
184 EFL_OBJECT_OP_FUNC(elm_obj_diskselector_clear, _elm_diskselector_clear),
185 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_diskselector_efl_object_constructor),
186 EFL_OBJECT_OP_FUNC(efl_gfx_entity_position_set, _elm_diskselector_efl_gfx_entity_position_set),
187 EFL_OBJECT_OP_FUNC(efl_gfx_entity_size_set, _elm_diskselector_efl_gfx_entity_size_set),
188 EFL_OBJECT_OP_FUNC(efl_canvas_group_member_add, _elm_diskselector_efl_canvas_group_group_member_add),
189 EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_diskselector_efl_ui_widget_on_access_update),
190 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_diskselector_efl_ui_widget_theme_apply),
191 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_on_focus_update, _elm_diskselector_efl_ui_focus_object_on_focus_update),
192 EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_diskselector_efl_ui_l10n_translation_update),
193 EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_diskselector_efl_ui_widget_widget_sub_object_del),
194 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_diskselector_efl_ui_widget_widget_input_event_handler),
195 EFL_OBJECT_OP_FUNC(elm_interface_scrollable_policy_set, _elm_diskselector_elm_interface_scrollable_policy_set),
196 EFL_OBJECT_OP_FUNC(elm_interface_scrollable_policy_get, _elm_diskselector_elm_interface_scrollable_policy_get),
197 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_diskselector_efl_access_widget_action_elm_actions_get),
198 ELM_DISKSELECTOR_EXTRA_OPS
199 );
200 opsp = &ops;
201
202 static const Efl_Object_Property_Reflection refl_table[] = {
203 {"side_text_max_length", __eolian_elm_diskselector_side_text_max_length_set_reflect, __eolian_elm_diskselector_side_text_max_length_get_reflect},
204 {"round_enabled", __eolian_elm_diskselector_round_enabled_set_reflect, __eolian_elm_diskselector_round_enabled_get_reflect},
205 {"display_item_num", __eolian_elm_diskselector_display_item_num_set_reflect, __eolian_elm_diskselector_display_item_num_get_reflect},
206 };
207 static const Efl_Object_Property_Reflection_Ops rops = {
208 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
209 };
210 ropsp = &rops;
211
212 return efl_class_functions_set(klass, opsp, ropsp);
213}
214
215static const Efl_Class_Description _elm_diskselector_class_desc = {
216 EO_VERSION,
217 "Elm.Diskselector",
218 EFL_CLASS_TYPE_REGULAR,
219 sizeof(Elm_Diskselector_Data),
220 _elm_diskselector_class_initializer,
221 _elm_diskselector_class_constructor,
222 NULL
223};
224
225EFL_DEFINE_CLASS(elm_diskselector_class_get, &_elm_diskselector_class_desc, EFL_UI_WIDGET_CLASS, ELM_INTERFACE_SCROLLABLE_MIXIN, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_CLICKABLE_INTERFACE, EFL_UI_SCROLLABLE_INTERFACE, EFL_UI_SELECTABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
226
227#include "elm_diskselector_eo.legacy.c"