summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_hoversel_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_hoversel_eo.c')
-rw-r--r--src/lib/elementary/elm_hoversel_eo.c198
1 files changed, 198 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_hoversel_eo.c b/src/lib/elementary/elm_hoversel_eo.c
new file mode 100644
index 0000000..d5eada9
--- /dev/null
+++ b/src/lib/elementary/elm_hoversel_eo.c
@@ -0,0 +1,198 @@
1EWAPI const Efl_Event_Description _ELM_HOVERSEL_EVENT_DISMISSED =
2 EFL_EVENT_DESCRIPTION("dismissed");
3EWAPI const Efl_Event_Description _ELM_HOVERSEL_EVENT_EXPANDED =
4 EFL_EVENT_DESCRIPTION("expanded");
5EWAPI const Efl_Event_Description _ELM_HOVERSEL_EVENT_ITEM_FOCUSED =
6 EFL_EVENT_DESCRIPTION("item,focused");
7EWAPI const Efl_Event_Description _ELM_HOVERSEL_EVENT_ITEM_UNFOCUSED =
8 EFL_EVENT_DESCRIPTION("item,unfocused");
9
10void _elm_hoversel_horizontal_set(Eo *obj, Elm_Hoversel_Data *pd, Eina_Bool horizontal);
11
12
13static Eina_Error
14__eolian_elm_hoversel_horizontal_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_hoversel_horizontal_set(obj, cval);
23 end:
24 eina_value_flush(&val);
25 return r;
26}
27
28EOAPI EFL_VOID_FUNC_BODYV(elm_obj_hoversel_horizontal_set, EFL_FUNC_CALL(horizontal), Eina_Bool horizontal);
29
30Eina_Bool _elm_hoversel_horizontal_get(const Eo *obj, Elm_Hoversel_Data *pd);
31
32
33static Eina_Value
34__eolian_elm_hoversel_horizontal_get_reflect(Eo *obj)
35{
36 Eina_Bool val = elm_obj_hoversel_horizontal_get(obj);
37 return eina_value_bool_init(val);
38}
39
40EOAPI EFL_FUNC_BODY_CONST(elm_obj_hoversel_horizontal_get, Eina_Bool, 0);
41
42void _elm_hoversel_hover_parent_set(Eo *obj, Elm_Hoversel_Data *pd, Efl_Canvas_Object *parent);
43
44EOAPI EFL_VOID_FUNC_BODYV(elm_obj_hoversel_hover_parent_set, EFL_FUNC_CALL(parent), Efl_Canvas_Object *parent);
45
46Efl_Canvas_Object *_elm_hoversel_hover_parent_get(const Eo *obj, Elm_Hoversel_Data *pd);
47
48EOAPI EFL_FUNC_BODY_CONST(elm_obj_hoversel_hover_parent_get, Efl_Canvas_Object *, NULL);
49
50Eina_Bool _elm_hoversel_expanded_get(const Eo *obj, Elm_Hoversel_Data *pd);
51
52EOAPI EFL_FUNC_BODY_CONST(elm_obj_hoversel_expanded_get, Eina_Bool, 0);
53
54const Eina_List *_elm_hoversel_items_get(const Eo *obj, Elm_Hoversel_Data *pd);
55
56EOAPI EFL_FUNC_BODY_CONST(elm_obj_hoversel_items_get, const Eina_List *, NULL);
57
58void _elm_hoversel_auto_update_set(Eo *obj, Elm_Hoversel_Data *pd, Eina_Bool auto_update);
59
60
61static Eina_Error
62__eolian_elm_hoversel_auto_update_set_reflect(Eo *obj, Eina_Value val)
63{
64 Eina_Error r = 0; Eina_Bool cval;
65 if (!eina_value_bool_convert(&val, &cval))
66 {
67 r = EINA_ERROR_VALUE_FAILED;
68 goto end;
69 }
70 elm_obj_hoversel_auto_update_set(obj, cval);
71 end:
72 eina_value_flush(&val);
73 return r;
74}
75
76EOAPI EFL_VOID_FUNC_BODYV(elm_obj_hoversel_auto_update_set, EFL_FUNC_CALL(auto_update), Eina_Bool auto_update);
77
78Eina_Bool _elm_hoversel_auto_update_get(const Eo *obj, Elm_Hoversel_Data *pd);
79
80
81static Eina_Value
82__eolian_elm_hoversel_auto_update_get_reflect(Eo *obj)
83{
84 Eina_Bool val = elm_obj_hoversel_auto_update_get(obj);
85 return eina_value_bool_init(val);
86}
87
88EOAPI EFL_FUNC_BODY_CONST(elm_obj_hoversel_auto_update_get, Eina_Bool, 0);
89
90void _elm_hoversel_hover_begin(Eo *obj, Elm_Hoversel_Data *pd);
91
92EOAPI EFL_VOID_FUNC_BODY(elm_obj_hoversel_hover_begin);
93
94void _elm_hoversel_clear(Eo *obj, Elm_Hoversel_Data *pd);
95
96EOAPI EFL_VOID_FUNC_BODY(elm_obj_hoversel_clear);
97
98void _elm_hoversel_hover_end(Eo *obj, Elm_Hoversel_Data *pd);
99
100EOAPI EFL_VOID_FUNC_BODY(elm_obj_hoversel_hover_end);
101
102Elm_Widget_Item *_elm_hoversel_item_add(Eo *obj, Elm_Hoversel_Data *pd, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data);
103
104EOAPI EFL_FUNC_BODYV(elm_obj_hoversel_item_add, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(label, icon_file, icon_type, func, data), const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data);
105
106Efl_Object *_elm_hoversel_efl_object_constructor(Eo *obj, Elm_Hoversel_Data *pd);
107
108
109void _elm_hoversel_efl_object_destructor(Eo *obj, Elm_Hoversel_Data *pd);
110
111
112void _elm_hoversel_efl_gfx_entity_visible_set(Eo *obj, Elm_Hoversel_Data *pd, Eina_Bool v);
113
114
115void _elm_hoversel_efl_ui_widget_widget_parent_set(Eo *obj, Elm_Hoversel_Data *pd, Efl_Ui_Widget *parent);
116
117
118Eina_Error _elm_hoversel_efl_ui_widget_theme_apply(Eo *obj, Elm_Hoversel_Data *pd);
119
120
121void _elm_hoversel_efl_ui_l10n_translation_update(Eo *obj, Elm_Hoversel_Data *pd);
122
123
124Eina_Bool _elm_hoversel_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Hoversel_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
125
126
127Eina_Bool _elm_hoversel_efl_ui_autorepeat_autorepeat_supported_get(const Eo *obj, Elm_Hoversel_Data *pd);
128
129
130const Efl_Access_Action_Data *_elm_hoversel_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Hoversel_Data *pd);
131
132
133Eina_List *_elm_hoversel_efl_access_object_access_children_get(const Eo *obj, Elm_Hoversel_Data *pd);
134
135
136static Eina_Bool
137_elm_hoversel_class_initializer(Efl_Class *klass)
138{
139 const Efl_Object_Ops *opsp = NULL;
140
141 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
142
143#ifndef ELM_HOVERSEL_EXTRA_OPS
144#define ELM_HOVERSEL_EXTRA_OPS
145#endif
146
147 EFL_OPS_DEFINE(ops,
148 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_horizontal_set, _elm_hoversel_horizontal_set),
149 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_horizontal_get, _elm_hoversel_horizontal_get),
150 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_hover_parent_set, _elm_hoversel_hover_parent_set),
151 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_hover_parent_get, _elm_hoversel_hover_parent_get),
152 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_expanded_get, _elm_hoversel_expanded_get),
153 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_items_get, _elm_hoversel_items_get),
154 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_auto_update_set, _elm_hoversel_auto_update_set),
155 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_auto_update_get, _elm_hoversel_auto_update_get),
156 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_hover_begin, _elm_hoversel_hover_begin),
157 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_clear, _elm_hoversel_clear),
158 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_hover_end, _elm_hoversel_hover_end),
159 EFL_OBJECT_OP_FUNC(elm_obj_hoversel_item_add, _elm_hoversel_item_add),
160 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_hoversel_efl_object_constructor),
161 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_hoversel_efl_object_destructor),
162 EFL_OBJECT_OP_FUNC(efl_gfx_entity_visible_set, _elm_hoversel_efl_gfx_entity_visible_set),
163 EFL_OBJECT_OP_FUNC(efl_ui_widget_parent_set, _elm_hoversel_efl_ui_widget_widget_parent_set),
164 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_hoversel_efl_ui_widget_theme_apply),
165 EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_hoversel_efl_ui_l10n_translation_update),
166 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_hoversel_efl_ui_widget_widget_input_event_handler),
167 EFL_OBJECT_OP_FUNC(efl_ui_autorepeat_supported_get, _elm_hoversel_efl_ui_autorepeat_autorepeat_supported_get),
168 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_hoversel_efl_access_widget_action_elm_actions_get),
169 EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, _elm_hoversel_efl_access_object_access_children_get),
170 ELM_HOVERSEL_EXTRA_OPS
171 );
172 opsp = &ops;
173
174 static const Efl_Object_Property_Reflection refl_table[] = {
175 {"horizontal", __eolian_elm_hoversel_horizontal_set_reflect, __eolian_elm_hoversel_horizontal_get_reflect},
176 {"auto_update", __eolian_elm_hoversel_auto_update_set_reflect, __eolian_elm_hoversel_auto_update_get_reflect},
177 };
178 static const Efl_Object_Property_Reflection_Ops rops = {
179 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
180 };
181 ropsp = &rops;
182
183 return efl_class_functions_set(klass, opsp, ropsp);
184}
185
186static const Efl_Class_Description _elm_hoversel_class_desc = {
187 EO_VERSION,
188 "Elm.Hoversel",
189 EFL_CLASS_TYPE_REGULAR,
190 sizeof(Elm_Hoversel_Data),
191 _elm_hoversel_class_initializer,
192 _elm_hoversel_class_constructor,
193 NULL
194};
195
196EFL_DEFINE_CLASS(elm_hoversel_class_get, &_elm_hoversel_class_desc, EFL_UI_BUTTON_LEGACY_CLASS, EFL_UI_SELECTABLE_INTERFACE, EFL_UI_CLICKABLE_INTERFACE, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
197
198#include "elm_hoversel_eo.legacy.c"