summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_menu_item_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_menu_item_eo.c')
-rw-r--r--src/lib/elementary/elm_menu_item_eo.c205
1 files changed, 205 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_menu_item_eo.c b/src/lib/elementary/elm_menu_item_eo.c
new file mode 100644
index 0000000..40d2fd8
--- /dev/null
+++ b/src/lib/elementary/elm_menu_item_eo.c
@@ -0,0 +1,205 @@
1
2void _elm_menu_item_icon_name_set(Eo *obj, Elm_Menu_Item_Data *pd, const char *icon);
3
4
5static Eina_Error
6__eolian_elm_menu_item_icon_name_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; const char *cval;
9 if (!eina_value_string_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_obj_menu_item_icon_name_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_menu_item_icon_name_set, EFL_FUNC_CALL(icon), const char *icon);
21
22const char *_elm_menu_item_icon_name_get(const Eo *obj, Elm_Menu_Item_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_menu_item_icon_name_get_reflect(Eo *obj)
27{
28 const char *val = elm_obj_menu_item_icon_name_get(obj);
29 return eina_value_string_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_icon_name_get, const char *, NULL);
33
34Elm_Widget_Item *_elm_menu_item_prev_get(const Eo *obj, Elm_Menu_Item_Data *pd);
35
36EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_prev_get, Elm_Widget_Item *, NULL);
37
38Elm_Widget_Item *_elm_menu_item_next_get(const Eo *obj, Elm_Menu_Item_Data *pd);
39
40EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_next_get, Elm_Widget_Item *, NULL);
41
42void _elm_menu_item_selected_set(Eo *obj, Elm_Menu_Item_Data *pd, Eina_Bool selected);
43
44
45static Eina_Error
46__eolian_elm_menu_item_selected_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_menu_item_selected_set(obj, cval);
55 end:
56 eina_value_flush(&val);
57 return r;
58}
59
60EOAPI EFL_VOID_FUNC_BODYV(elm_obj_menu_item_selected_set, EFL_FUNC_CALL(selected), Eina_Bool selected);
61
62Eina_Bool _elm_menu_item_selected_get(const Eo *obj, Elm_Menu_Item_Data *pd);
63
64
65static Eina_Value
66__eolian_elm_menu_item_selected_get_reflect(Eo *obj)
67{
68 Eina_Bool val = elm_obj_menu_item_selected_get(obj);
69 return eina_value_bool_init(val);
70}
71
72EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_selected_get, Eina_Bool, 0);
73
74unsigned int _elm_menu_item_index_get(const Eo *obj, Elm_Menu_Item_Data *pd);
75
76EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_index_get, unsigned int, 0);
77
78void _elm_menu_item_subitems_clear(Eo *obj, Elm_Menu_Item_Data *pd);
79
80EOAPI EFL_VOID_FUNC_BODY(elm_obj_menu_item_subitems_clear);
81
82const Eina_List *_elm_menu_item_subitems_get(const Eo *obj, Elm_Menu_Item_Data *pd);
83
84EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_subitems_get, const Eina_List *, NULL);
85
86Eina_Bool _elm_menu_item_is_separator(const Eo *obj, Elm_Menu_Item_Data *pd);
87
88EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_is_separator, Eina_Bool, 0);
89
90Efl_Canvas_Object *_elm_menu_item_object_get(const Eo *obj, Elm_Menu_Item_Data *pd);
91
92EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_item_object_get, Efl_Canvas_Object *, NULL);
93
94Efl_Object *_elm_menu_item_efl_object_constructor(Eo *obj, Elm_Menu_Item_Data *pd);
95
96
97void _elm_menu_item_efl_object_destructor(Eo *obj, Elm_Menu_Item_Data *pd);
98
99
100Efl_Object *_elm_menu_item_efl_object_parent_get(const Eo *obj, Elm_Menu_Item_Data *pd);
101
102
103void _elm_menu_item_elm_widget_item_disable(Eo *obj, Elm_Menu_Item_Data *pd);
104
105
106void _elm_menu_item_elm_widget_item_signal_emit(Eo *obj, Elm_Menu_Item_Data *pd, const char *emission, const char *source);
107
108
109void _elm_menu_item_elm_widget_item_part_text_set(Eo *obj, Elm_Menu_Item_Data *pd, const char *part, const char *label);
110
111
112const char *_elm_menu_item_elm_widget_item_part_text_get(const Eo *obj, Elm_Menu_Item_Data *pd, const char *part);
113
114
115void _elm_menu_item_elm_widget_item_part_content_set(Eo *obj, Elm_Menu_Item_Data *pd, const char *part, Efl_Canvas_Object *content);
116
117
118Efl_Canvas_Object *_elm_menu_item_elm_widget_item_part_content_get(const Eo *obj, Elm_Menu_Item_Data *pd, const char *part);
119
120
121Eina_List *_elm_menu_item_efl_access_object_access_children_get(const Eo *obj, Elm_Menu_Item_Data *pd);
122
123
124Efl_Access_Role _elm_menu_item_efl_access_object_role_get(const Eo *obj, Elm_Menu_Item_Data *pd);
125
126
127const char *_elm_menu_item_efl_access_object_i18n_name_get(const Eo *obj, Elm_Menu_Item_Data *pd);
128
129
130Efl_Access_State_Set _elm_menu_item_efl_access_object_state_set_get(const Eo *obj, Elm_Menu_Item_Data *pd);
131
132
133int _elm_menu_item_efl_access_selection_selected_children_count_get(const Eo *obj, Elm_Menu_Item_Data *pd);
134
135
136Efl_Object *_elm_menu_item_efl_access_selection_selected_child_get(const Eo *obj, Elm_Menu_Item_Data *pd, int selected_child_index);
137
138
139static Eina_Bool
140_elm_menu_item_class_initializer(Efl_Class *klass)
141{
142 const Efl_Object_Ops *opsp = NULL;
143
144 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
145
146#ifndef ELM_MENU_ITEM_EXTRA_OPS
147#define ELM_MENU_ITEM_EXTRA_OPS
148#endif
149
150 EFL_OPS_DEFINE(ops,
151 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_icon_name_set, _elm_menu_item_icon_name_set),
152 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_icon_name_get, _elm_menu_item_icon_name_get),
153 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_prev_get, _elm_menu_item_prev_get),
154 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_next_get, _elm_menu_item_next_get),
155 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_selected_set, _elm_menu_item_selected_set),
156 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_selected_get, _elm_menu_item_selected_get),
157 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_index_get, _elm_menu_item_index_get),
158 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_subitems_clear, _elm_menu_item_subitems_clear),
159 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_subitems_get, _elm_menu_item_subitems_get),
160 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_is_separator, _elm_menu_item_is_separator),
161 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_object_get, _elm_menu_item_object_get),
162 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_menu_item_efl_object_constructor),
163 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_menu_item_efl_object_destructor),
164 EFL_OBJECT_OP_FUNC(efl_parent_get, _elm_menu_item_efl_object_parent_get),
165 EFL_OBJECT_OP_FUNC(elm_wdg_item_disable, _elm_menu_item_elm_widget_item_disable),
166 EFL_OBJECT_OP_FUNC(elm_wdg_item_signal_emit, _elm_menu_item_elm_widget_item_signal_emit),
167 EFL_OBJECT_OP_FUNC(elm_wdg_item_part_text_set, _elm_menu_item_elm_widget_item_part_text_set),
168 EFL_OBJECT_OP_FUNC(elm_wdg_item_part_text_get, _elm_menu_item_elm_widget_item_part_text_get),
169 EFL_OBJECT_OP_FUNC(elm_wdg_item_part_content_set, _elm_menu_item_elm_widget_item_part_content_set),
170 EFL_OBJECT_OP_FUNC(elm_wdg_item_part_content_get, _elm_menu_item_elm_widget_item_part_content_get),
171 EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, _elm_menu_item_efl_access_object_access_children_get),
172 EFL_OBJECT_OP_FUNC(efl_access_object_role_get, _elm_menu_item_efl_access_object_role_get),
173 EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, _elm_menu_item_efl_access_object_i18n_name_get),
174 EFL_OBJECT_OP_FUNC(efl_access_object_state_set_get, _elm_menu_item_efl_access_object_state_set_get),
175 EFL_OBJECT_OP_FUNC(efl_access_selection_selected_children_count_get, _elm_menu_item_efl_access_selection_selected_children_count_get),
176 EFL_OBJECT_OP_FUNC(efl_access_selection_selected_child_get, _elm_menu_item_efl_access_selection_selected_child_get),
177 ELM_MENU_ITEM_EXTRA_OPS
178 );
179 opsp = &ops;
180
181 static const Efl_Object_Property_Reflection refl_table[] = {
182 {"icon_name", __eolian_elm_menu_item_icon_name_set_reflect, __eolian_elm_menu_item_icon_name_get_reflect},
183 {"selected", __eolian_elm_menu_item_selected_set_reflect, __eolian_elm_menu_item_selected_get_reflect},
184 };
185 static const Efl_Object_Property_Reflection_Ops rops = {
186 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
187 };
188 ropsp = &rops;
189
190 return efl_class_functions_set(klass, opsp, ropsp);
191}
192
193static const Efl_Class_Description _elm_menu_item_class_desc = {
194 EO_VERSION,
195 "Elm.Menu.Item",
196 EFL_CLASS_TYPE_REGULAR,
197 sizeof(Elm_Menu_Item_Data),
198 _elm_menu_item_class_initializer,
199 NULL,
200 NULL
201};
202
203EFL_DEFINE_CLASS(elm_menu_item_class_get, &_elm_menu_item_class_desc, ELM_WIDGET_ITEM_CLASS, EFL_ACCESS_SELECTION_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
204
205#include "elm_menu_item_eo.legacy.c"