summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_popup_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_popup_eo.c')
-rw-r--r--src/lib/elementary/elm_popup_eo.c243
1 files changed, 243 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_popup_eo.c b/src/lib/elementary/elm_popup_eo.c
new file mode 100644
index 0000000..6f2b478
--- /dev/null
+++ b/src/lib/elementary/elm_popup_eo.c
@@ -0,0 +1,243 @@
1EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_BLOCK_CLICKED =
2 EFL_EVENT_DESCRIPTION("block,clicked");
3EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_TIMEOUT =
4 EFL_EVENT_DESCRIPTION("timeout");
5EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_ITEM_FOCUSED =
6 EFL_EVENT_DESCRIPTION("item,focused");
7EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_ITEM_UNFOCUSED =
8 EFL_EVENT_DESCRIPTION("item,unfocused");
9EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_DISMISSED =
10 EFL_EVENT_DESCRIPTION("dismissed");
11
12void _elm_popup_align_set(Eo *obj, Elm_Popup_Data *pd, double horizontal, double vertical);
13
14EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_align_set, EFL_FUNC_CALL(horizontal, vertical), double horizontal, double vertical);
15
16void _elm_popup_align_get(const Eo *obj, Elm_Popup_Data *pd, double *horizontal, double *vertical);
17
18EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_popup_align_get, EFL_FUNC_CALL(horizontal, vertical), double *horizontal, double *vertical);
19
20void _elm_popup_allow_events_set(Eo *obj, Elm_Popup_Data *pd, Eina_Bool allow);
21
22
23static Eina_Error
24__eolian_elm_popup_allow_events_set_reflect(Eo *obj, Eina_Value val)
25{
26 Eina_Error r = 0; Eina_Bool cval;
27 if (!eina_value_bool_convert(&val, &cval))
28 {
29 r = EINA_ERROR_VALUE_FAILED;
30 goto end;
31 }
32 elm_obj_popup_allow_events_set(obj, cval);
33 end:
34 eina_value_flush(&val);
35 return r;
36}
37
38EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_allow_events_set, EFL_FUNC_CALL(allow), Eina_Bool allow);
39
40Eina_Bool _elm_popup_allow_events_get(const Eo *obj, Elm_Popup_Data *pd);
41
42
43static Eina_Value
44__eolian_elm_popup_allow_events_get_reflect(Eo *obj)
45{
46 Eina_Bool val = elm_obj_popup_allow_events_get(obj);
47 return eina_value_bool_init(val);
48}
49
50EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_allow_events_get, Eina_Bool, 0);
51
52void _elm_popup_content_text_wrap_type_set(Eo *obj, Elm_Popup_Data *pd, Elm_Wrap_Type wrap);
53
54EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_content_text_wrap_type_set, EFL_FUNC_CALL(wrap), Elm_Wrap_Type wrap);
55
56Elm_Wrap_Type _elm_popup_content_text_wrap_type_get(const Eo *obj, Elm_Popup_Data *pd);
57
58EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_content_text_wrap_type_get, Elm_Wrap_Type, 0);
59
60void _elm_popup_orient_set(Eo *obj, Elm_Popup_Data *pd, Elm_Popup_Orient orient);
61
62EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_orient_set, EFL_FUNC_CALL(orient), Elm_Popup_Orient orient);
63
64Elm_Popup_Orient _elm_popup_orient_get(const Eo *obj, Elm_Popup_Data *pd);
65
66EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_orient_get, Elm_Popup_Orient, 0);
67
68void _elm_popup_timeout_set(Eo *obj, Elm_Popup_Data *pd, double timeout);
69
70
71static Eina_Error
72__eolian_elm_popup_timeout_set_reflect(Eo *obj, Eina_Value val)
73{
74 Eina_Error r = 0; double cval;
75 if (!eina_value_double_convert(&val, &cval))
76 {
77 r = EINA_ERROR_VALUE_FAILED;
78 goto end;
79 }
80 elm_obj_popup_timeout_set(obj, cval);
81 end:
82 eina_value_flush(&val);
83 return r;
84}
85
86EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_timeout_set, EFL_FUNC_CALL(timeout), double timeout);
87
88double _elm_popup_timeout_get(const Eo *obj, Elm_Popup_Data *pd);
89
90
91static Eina_Value
92__eolian_elm_popup_timeout_get_reflect(Eo *obj)
93{
94 double val = elm_obj_popup_timeout_get(obj);
95 return eina_value_double_init(val);
96}
97
98EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_timeout_get, double, 0);
99
100void _elm_popup_scrollable_set(Eo *obj, Elm_Popup_Data *pd, Eina_Bool scroll);
101
102
103static Eina_Error
104__eolian_elm_popup_scrollable_set_reflect(Eo *obj, Eina_Value val)
105{
106 Eina_Error r = 0; Eina_Bool cval;
107 if (!eina_value_bool_convert(&val, &cval))
108 {
109 r = EINA_ERROR_VALUE_FAILED;
110 goto end;
111 }
112 elm_obj_popup_scrollable_set(obj, cval);
113 end:
114 eina_value_flush(&val);
115 return r;
116}
117
118EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_scrollable_set, EFL_FUNC_CALL(scroll), Eina_Bool scroll);
119
120Eina_Bool _elm_popup_scrollable_get(const Eo *obj, Elm_Popup_Data *pd);
121
122
123static Eina_Value
124__eolian_elm_popup_scrollable_get_reflect(Eo *obj)
125{
126 Eina_Bool val = elm_obj_popup_scrollable_get(obj);
127 return eina_value_bool_init(val);
128}
129
130EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_scrollable_get, Eina_Bool, 0);
131
132Elm_Widget_Item *_elm_popup_item_append(Eo *obj, Elm_Popup_Data *pd, const char *label, Efl_Canvas_Object *icon, Evas_Smart_Cb func, const void *data);
133
134EOAPI EFL_FUNC_BODYV(elm_obj_popup_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);
135
136void _elm_popup_dismiss(Eo *obj, Elm_Popup_Data *pd);
137
138EOAPI EFL_VOID_FUNC_BODY(elm_obj_popup_dismiss);
139
140Efl_Object *_elm_popup_efl_object_constructor(Eo *obj, Elm_Popup_Data *pd);
141
142
143Eina_Error _elm_popup_efl_ui_widget_theme_apply(Eo *obj, Elm_Popup_Data *pd);
144
145
146void _elm_popup_efl_ui_widget_on_access_update(Eo *obj, Elm_Popup_Data *pd, Eina_Bool enable);
147
148
149void _elm_popup_efl_ui_widget_widget_parent_set(Eo *obj, Elm_Popup_Data *pd, Efl_Ui_Widget *parent);
150
151
152void _elm_popup_efl_ui_l10n_translation_update(Eo *obj, Elm_Popup_Data *pd);
153
154
155Eina_Bool _elm_popup_efl_ui_widget_widget_sub_object_del(Eo *obj, Elm_Popup_Data *pd, Efl_Canvas_Object *sub_obj);
156
157
158Eina_Bool _elm_popup_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Popup_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
159
160
161void _elm_popup_efl_layout_signal_signal_emit(Eo *obj, Elm_Popup_Data *pd, const char *emission, const char *source);
162
163
164const Efl_Access_Action_Data *_elm_popup_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Popup_Data *pd);
165
166
167Efl_Access_State_Set _elm_popup_efl_access_object_state_set_get(const Eo *obj, Elm_Popup_Data *pd);
168
169
170const char *_elm_popup_efl_access_object_i18n_name_get(const Eo *obj, Elm_Popup_Data *pd);
171
172
173Efl_Object *_elm_popup_efl_part_part_get(const Eo *obj, Elm_Popup_Data *pd, const char *name);
174
175
176static Eina_Bool
177_elm_popup_class_initializer(Efl_Class *klass)
178{
179 const Efl_Object_Ops *opsp = NULL;
180
181 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
182
183#ifndef ELM_POPUP_EXTRA_OPS
184#define ELM_POPUP_EXTRA_OPS
185#endif
186
187 EFL_OPS_DEFINE(ops,
188 EFL_OBJECT_OP_FUNC(elm_obj_popup_align_set, _elm_popup_align_set),
189 EFL_OBJECT_OP_FUNC(elm_obj_popup_align_get, _elm_popup_align_get),
190 EFL_OBJECT_OP_FUNC(elm_obj_popup_allow_events_set, _elm_popup_allow_events_set),
191 EFL_OBJECT_OP_FUNC(elm_obj_popup_allow_events_get, _elm_popup_allow_events_get),
192 EFL_OBJECT_OP_FUNC(elm_obj_popup_content_text_wrap_type_set, _elm_popup_content_text_wrap_type_set),
193 EFL_OBJECT_OP_FUNC(elm_obj_popup_content_text_wrap_type_get, _elm_popup_content_text_wrap_type_get),
194 EFL_OBJECT_OP_FUNC(elm_obj_popup_orient_set, _elm_popup_orient_set),
195 EFL_OBJECT_OP_FUNC(elm_obj_popup_orient_get, _elm_popup_orient_get),
196 EFL_OBJECT_OP_FUNC(elm_obj_popup_timeout_set, _elm_popup_timeout_set),
197 EFL_OBJECT_OP_FUNC(elm_obj_popup_timeout_get, _elm_popup_timeout_get),
198 EFL_OBJECT_OP_FUNC(elm_obj_popup_scrollable_set, _elm_popup_scrollable_set),
199 EFL_OBJECT_OP_FUNC(elm_obj_popup_scrollable_get, _elm_popup_scrollable_get),
200 EFL_OBJECT_OP_FUNC(elm_obj_popup_item_append, _elm_popup_item_append),
201 EFL_OBJECT_OP_FUNC(elm_obj_popup_dismiss, _elm_popup_dismiss),
202 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_popup_efl_object_constructor),
203 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_popup_efl_ui_widget_theme_apply),
204 EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_popup_efl_ui_widget_on_access_update),
205 EFL_OBJECT_OP_FUNC(efl_ui_widget_parent_set, _elm_popup_efl_ui_widget_widget_parent_set),
206 EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_popup_efl_ui_l10n_translation_update),
207 EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_popup_efl_ui_widget_widget_sub_object_del),
208 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_popup_efl_ui_widget_widget_input_event_handler),
209 EFL_OBJECT_OP_FUNC(efl_layout_signal_emit, _elm_popup_efl_layout_signal_signal_emit),
210 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_popup_efl_access_widget_action_elm_actions_get),
211 EFL_OBJECT_OP_FUNC(efl_access_object_state_set_get, _elm_popup_efl_access_object_state_set_get),
212 EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, _elm_popup_efl_access_object_i18n_name_get),
213 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_popup_efl_part_part_get),
214 ELM_POPUP_EXTRA_OPS
215 );
216 opsp = &ops;
217
218 static const Efl_Object_Property_Reflection refl_table[] = {
219 {"allow_events", __eolian_elm_popup_allow_events_set_reflect, __eolian_elm_popup_allow_events_get_reflect},
220 {"timeout", __eolian_elm_popup_timeout_set_reflect, __eolian_elm_popup_timeout_get_reflect},
221 {"scrollable", __eolian_elm_popup_scrollable_set_reflect, __eolian_elm_popup_scrollable_get_reflect},
222 };
223 static const Efl_Object_Property_Reflection_Ops rops = {
224 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
225 };
226 ropsp = &rops;
227
228 return efl_class_functions_set(klass, opsp, ropsp);
229}
230
231static const Efl_Class_Description _elm_popup_class_desc = {
232 EO_VERSION,
233 "Elm.Popup",
234 EFL_CLASS_TYPE_REGULAR,
235 sizeof(Elm_Popup_Data),
236 _elm_popup_class_initializer,
237 _elm_popup_class_constructor,
238 NULL
239};
240
241EFL_DEFINE_CLASS(elm_popup_class_get, &_elm_popup_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
242
243#include "elm_popup_eo.legacy.c"