1 EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_BLOCK_CLICKED =
2    EFL_EVENT_DESCRIPTION("block,clicked");
3 EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_TIMEOUT =
4    EFL_EVENT_DESCRIPTION("timeout");
5 EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_ITEM_FOCUSED =
6    EFL_EVENT_DESCRIPTION("item,focused");
7 EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_ITEM_UNFOCUSED =
8    EFL_EVENT_DESCRIPTION("item,unfocused");
9 EWAPI const Efl_Event_Description _ELM_POPUP_EVENT_DISMISSED =
10    EFL_EVENT_DESCRIPTION("dismissed");
11 
12 void _elm_popup_align_set(Eo *obj, Elm_Popup_Data *pd, double horizontal, double vertical);
13 
14 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_align_set, EFL_FUNC_CALL(horizontal, vertical), double horizontal, double vertical);
15 
16 void _elm_popup_align_get(const Eo *obj, Elm_Popup_Data *pd, double *horizontal, double *vertical);
17 
18 EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_popup_align_get, EFL_FUNC_CALL(horizontal, vertical), double *horizontal, double *vertical);
19 
20 void _elm_popup_allow_events_set(Eo *obj, Elm_Popup_Data *pd, Eina_Bool allow);
21 
22 
23 static Eina_Error
__eolian_elm_popup_allow_events_set_reflect(Eo * obj,Eina_Value val)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 
38 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_allow_events_set, EFL_FUNC_CALL(allow), Eina_Bool allow);
39 
40 Eina_Bool _elm_popup_allow_events_get(const Eo *obj, Elm_Popup_Data *pd);
41 
42 
43 static Eina_Value
__eolian_elm_popup_allow_events_get_reflect(const Eo * obj)44 __eolian_elm_popup_allow_events_get_reflect(const Eo *obj)
45 {
46    Eina_Bool val = elm_obj_popup_allow_events_get(obj);
47    return eina_value_bool_init(val);
48 }
49 
50 EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_allow_events_get, Eina_Bool, 0);
51 
52 void _elm_popup_content_text_wrap_type_set(Eo *obj, Elm_Popup_Data *pd, Elm_Wrap_Type wrap);
53 
54 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_content_text_wrap_type_set, EFL_FUNC_CALL(wrap), Elm_Wrap_Type wrap);
55 
56 Elm_Wrap_Type _elm_popup_content_text_wrap_type_get(const Eo *obj, Elm_Popup_Data *pd);
57 
58 EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_content_text_wrap_type_get, Elm_Wrap_Type, 0);
59 
60 void _elm_popup_orient_set(Eo *obj, Elm_Popup_Data *pd, Elm_Popup_Orient orient);
61 
62 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_orient_set, EFL_FUNC_CALL(orient), Elm_Popup_Orient orient);
63 
64 Elm_Popup_Orient _elm_popup_orient_get(const Eo *obj, Elm_Popup_Data *pd);
65 
66 EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_orient_get, Elm_Popup_Orient, 0);
67 
68 void _elm_popup_timeout_set(Eo *obj, Elm_Popup_Data *pd, double timeout);
69 
70 
71 static Eina_Error
__eolian_elm_popup_timeout_set_reflect(Eo * obj,Eina_Value val)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 
86 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_timeout_set, EFL_FUNC_CALL(timeout), double timeout);
87 
88 double _elm_popup_timeout_get(const Eo *obj, Elm_Popup_Data *pd);
89 
90 
91 static Eina_Value
__eolian_elm_popup_timeout_get_reflect(const Eo * obj)92 __eolian_elm_popup_timeout_get_reflect(const Eo *obj)
93 {
94    double val = elm_obj_popup_timeout_get(obj);
95    return eina_value_double_init(val);
96 }
97 
98 EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_timeout_get, double, 0);
99 
100 void _elm_popup_scrollable_set(Eo *obj, Elm_Popup_Data *pd, Eina_Bool scroll);
101 
102 
103 static Eina_Error
__eolian_elm_popup_scrollable_set_reflect(Eo * obj,Eina_Value val)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 
118 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_popup_scrollable_set, EFL_FUNC_CALL(scroll), Eina_Bool scroll);
119 
120 Eina_Bool _elm_popup_scrollable_get(const Eo *obj, Elm_Popup_Data *pd);
121 
122 
123 static Eina_Value
__eolian_elm_popup_scrollable_get_reflect(const Eo * obj)124 __eolian_elm_popup_scrollable_get_reflect(const Eo *obj)
125 {
126    Eina_Bool val = elm_obj_popup_scrollable_get(obj);
127    return eina_value_bool_init(val);
128 }
129 
130 EOAPI EFL_FUNC_BODY_CONST(elm_obj_popup_scrollable_get, Eina_Bool, 0);
131 
132 Elm_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 
134 EOAPI 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 
136 void _elm_popup_dismiss(Eo *obj, Elm_Popup_Data *pd);
137 
138 EOAPI EFL_VOID_FUNC_BODY(elm_obj_popup_dismiss);
139 
140 Efl_Object *_elm_popup_efl_object_constructor(Eo *obj, Elm_Popup_Data *pd);
141 
142 
143 Eina_Error _elm_popup_efl_ui_widget_theme_apply(Eo *obj, Elm_Popup_Data *pd);
144 
145 
146 void _elm_popup_efl_ui_widget_on_access_update(Eo *obj, Elm_Popup_Data *pd, Eina_Bool enable);
147 
148 
149 void _elm_popup_efl_ui_l10n_translation_update(Eo *obj, Elm_Popup_Data *pd);
150 
151 
152 Eina_Bool _elm_popup_efl_ui_widget_widget_sub_object_del(Eo *obj, Elm_Popup_Data *pd, Efl_Canvas_Object *sub_obj);
153 
154 
155 Eina_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);
156 
157 
158 void _elm_popup_efl_layout_signal_signal_emit(Eo *obj, Elm_Popup_Data *pd, const char *emission, const char *source);
159 
160 
161 const Efl_Access_Action_Data *_elm_popup_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Popup_Data *pd);
162 
163 
164 Efl_Access_State_Set _elm_popup_efl_access_object_state_set_get(const Eo *obj, Elm_Popup_Data *pd);
165 
166 
167 const char *_elm_popup_efl_access_object_i18n_name_get(const Eo *obj, Elm_Popup_Data *pd);
168 
169 
170 Efl_Object *_elm_popup_efl_part_part_get(const Eo *obj, Elm_Popup_Data *pd, const char *name);
171 
172 
173 static Eina_Bool
_elm_popup_class_initializer(Efl_Class * klass)174 _elm_popup_class_initializer(Efl_Class *klass)
175 {
176    const Efl_Object_Ops *opsp = NULL;
177 
178    const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
179 
180 #ifndef ELM_POPUP_EXTRA_OPS
181 #define ELM_POPUP_EXTRA_OPS
182 #endif
183 
184    EFL_OPS_DEFINE(ops,
185       EFL_OBJECT_OP_FUNC(elm_obj_popup_align_set, _elm_popup_align_set),
186       EFL_OBJECT_OP_FUNC(elm_obj_popup_align_get, _elm_popup_align_get),
187       EFL_OBJECT_OP_FUNC(elm_obj_popup_allow_events_set, _elm_popup_allow_events_set),
188       EFL_OBJECT_OP_FUNC(elm_obj_popup_allow_events_get, _elm_popup_allow_events_get),
189       EFL_OBJECT_OP_FUNC(elm_obj_popup_content_text_wrap_type_set, _elm_popup_content_text_wrap_type_set),
190       EFL_OBJECT_OP_FUNC(elm_obj_popup_content_text_wrap_type_get, _elm_popup_content_text_wrap_type_get),
191       EFL_OBJECT_OP_FUNC(elm_obj_popup_orient_set, _elm_popup_orient_set),
192       EFL_OBJECT_OP_FUNC(elm_obj_popup_orient_get, _elm_popup_orient_get),
193       EFL_OBJECT_OP_FUNC(elm_obj_popup_timeout_set, _elm_popup_timeout_set),
194       EFL_OBJECT_OP_FUNC(elm_obj_popup_timeout_get, _elm_popup_timeout_get),
195       EFL_OBJECT_OP_FUNC(elm_obj_popup_scrollable_set, _elm_popup_scrollable_set),
196       EFL_OBJECT_OP_FUNC(elm_obj_popup_scrollable_get, _elm_popup_scrollable_get),
197       EFL_OBJECT_OP_FUNC(elm_obj_popup_item_append, _elm_popup_item_append),
198       EFL_OBJECT_OP_FUNC(elm_obj_popup_dismiss, _elm_popup_dismiss),
199       EFL_OBJECT_OP_FUNC(efl_constructor, _elm_popup_efl_object_constructor),
200       EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_popup_efl_ui_widget_theme_apply),
201       EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_popup_efl_ui_widget_on_access_update),
202       EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_popup_efl_ui_l10n_translation_update),
203       EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_popup_efl_ui_widget_widget_sub_object_del),
204       EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_popup_efl_ui_widget_widget_input_event_handler),
205       EFL_OBJECT_OP_FUNC(efl_layout_signal_emit, _elm_popup_efl_layout_signal_signal_emit),
206       EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_popup_efl_access_widget_action_elm_actions_get),
207       EFL_OBJECT_OP_FUNC(efl_access_object_state_set_get, _elm_popup_efl_access_object_state_set_get),
208       EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, _elm_popup_efl_access_object_i18n_name_get),
209       EFL_OBJECT_OP_FUNC(efl_part_get, _elm_popup_efl_part_part_get),
210       ELM_POPUP_EXTRA_OPS
211    );
212    opsp = &ops;
213 
214    static const Efl_Object_Property_Reflection refl_table[] = {
215       {"allow_events", __eolian_elm_popup_allow_events_set_reflect, __eolian_elm_popup_allow_events_get_reflect},
216       {"timeout", __eolian_elm_popup_timeout_set_reflect, __eolian_elm_popup_timeout_get_reflect},
217       {"scrollable", __eolian_elm_popup_scrollable_set_reflect, __eolian_elm_popup_scrollable_get_reflect},
218    };
219    static const Efl_Object_Property_Reflection_Ops rops = {
220       refl_table, EINA_C_ARRAY_LENGTH(refl_table)
221    };
222    ropsp = &rops;
223 
224    return efl_class_functions_set(klass, opsp, ropsp);
225 }
226 
227 static const Efl_Class_Description _elm_popup_class_desc = {
228    EO_VERSION,
229    "Elm.Popup",
230    EFL_CLASS_TYPE_REGULAR,
231    sizeof(Elm_Popup_Data),
232    _elm_popup_class_initializer,
233    _elm_popup_class_constructor,
234    NULL
235 };
236 
237 EFL_DEFINE_CLASS(elm_popup_class_get, &_elm_popup_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_ACCESS_WIDGET_ACTION_MIXIN, ELM_LAYOUT_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
238 
239 #include "elm_popup_eo.legacy.c"
240