diff options
Diffstat (limited to 'src/lib/elementary/elm_multibuttonentry_eo.c')
-rw-r--r-- | src/lib/elementary/elm_multibuttonentry_eo.c | 224 |
1 files changed, 224 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_multibuttonentry_eo.c b/src/lib/elementary/elm_multibuttonentry_eo.c new file mode 100644 index 0000000..0819d7a --- /dev/null +++ b/src/lib/elementary/elm_multibuttonentry_eo.c | |||
@@ -0,0 +1,224 @@ | |||
1 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_ITEM_SELECTED = | ||
2 | EFL_EVENT_DESCRIPTION("item,selected"); | ||
3 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_ITEM_ADDED = | ||
4 | EFL_EVENT_DESCRIPTION("item,added"); | ||
5 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_ITEM_DELETED = | ||
6 | EFL_EVENT_DESCRIPTION("item,deleted"); | ||
7 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_ITEM_CLICKED = | ||
8 | EFL_EVENT_DESCRIPTION("item,clicked"); | ||
9 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_ITEM_LONGPRESSED = | ||
10 | EFL_EVENT_DESCRIPTION("item,longpressed"); | ||
11 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_EXPANDED = | ||
12 | EFL_EVENT_DESCRIPTION("expanded"); | ||
13 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_CONTRACTED = | ||
14 | EFL_EVENT_DESCRIPTION("contracted"); | ||
15 | EWAPI const Efl_Event_Description _ELM_MULTIBUTTONENTRY_EVENT_EXPAND_STATE_CHANGED = | ||
16 | EFL_EVENT_DESCRIPTION("expand,state,changed"); | ||
17 | |||
18 | void _elm_multibuttonentry_editable_set(Eo *obj, Elm_Multibuttonentry_Data *pd, Eina_Bool editable); | ||
19 | |||
20 | |||
21 | static Eina_Error | ||
22 | __eolian_elm_multibuttonentry_editable_set_reflect(Eo *obj, Eina_Value val) | ||
23 | { | ||
24 | Eina_Error r = 0; Eina_Bool cval; | ||
25 | if (!eina_value_bool_convert(&val, &cval)) | ||
26 | { | ||
27 | r = EINA_ERROR_VALUE_FAILED; | ||
28 | goto end; | ||
29 | } | ||
30 | elm_obj_multibuttonentry_editable_set(obj, cval); | ||
31 | end: | ||
32 | eina_value_flush(&val); | ||
33 | return r; | ||
34 | } | ||
35 | |||
36 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_multibuttonentry_editable_set, EFL_FUNC_CALL(editable), Eina_Bool editable); | ||
37 | |||
38 | Eina_Bool _elm_multibuttonentry_editable_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
39 | |||
40 | |||
41 | static Eina_Value | ||
42 | __eolian_elm_multibuttonentry_editable_get_reflect(Eo *obj) | ||
43 | { | ||
44 | Eina_Bool val = elm_obj_multibuttonentry_editable_get(obj); | ||
45 | return eina_value_bool_init(val); | ||
46 | } | ||
47 | |||
48 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_editable_get, Eina_Bool, 0); | ||
49 | |||
50 | void _elm_multibuttonentry_expanded_set(Eo *obj, Elm_Multibuttonentry_Data *pd, Eina_Bool expanded); | ||
51 | |||
52 | |||
53 | static Eina_Error | ||
54 | __eolian_elm_multibuttonentry_expanded_set_reflect(Eo *obj, Eina_Value val) | ||
55 | { | ||
56 | Eina_Error r = 0; Eina_Bool cval; | ||
57 | if (!eina_value_bool_convert(&val, &cval)) | ||
58 | { | ||
59 | r = EINA_ERROR_VALUE_FAILED; | ||
60 | goto end; | ||
61 | } | ||
62 | elm_obj_multibuttonentry_expanded_set(obj, cval); | ||
63 | end: | ||
64 | eina_value_flush(&val); | ||
65 | return r; | ||
66 | } | ||
67 | |||
68 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_multibuttonentry_expanded_set, EFL_FUNC_CALL(expanded), Eina_Bool expanded); | ||
69 | |||
70 | Eina_Bool _elm_multibuttonentry_expanded_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
71 | |||
72 | |||
73 | static Eina_Value | ||
74 | __eolian_elm_multibuttonentry_expanded_get_reflect(Eo *obj) | ||
75 | { | ||
76 | Eina_Bool val = elm_obj_multibuttonentry_expanded_get(obj); | ||
77 | return eina_value_bool_init(val); | ||
78 | } | ||
79 | |||
80 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_expanded_get, Eina_Bool, 0); | ||
81 | |||
82 | void _elm_multibuttonentry_format_function_set(Eo *obj, Elm_Multibuttonentry_Data *pd, Elm_Multibuttonentry_Format_Cb format_function, const void *data); | ||
83 | |||
84 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_multibuttonentry_format_function_set, EFL_FUNC_CALL(format_function, data), Elm_Multibuttonentry_Format_Cb format_function, const void *data); | ||
85 | |||
86 | const Eina_List *_elm_multibuttonentry_items_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
87 | |||
88 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_items_get, const Eina_List *, NULL); | ||
89 | |||
90 | Elm_Widget_Item *_elm_multibuttonentry_first_item_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
91 | |||
92 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_first_item_get, Elm_Widget_Item *, NULL); | ||
93 | |||
94 | Elm_Widget_Item *_elm_multibuttonentry_last_item_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
95 | |||
96 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_last_item_get, Elm_Widget_Item *, NULL); | ||
97 | |||
98 | Efl_Canvas_Object *_elm_multibuttonentry_entry_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
99 | |||
100 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_entry_get, Efl_Canvas_Object *, NULL); | ||
101 | |||
102 | Elm_Widget_Item *_elm_multibuttonentry_selected_item_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
103 | |||
104 | EOAPI EFL_FUNC_BODY_CONST(elm_obj_multibuttonentry_selected_item_get, Elm_Widget_Item *, NULL); | ||
105 | |||
106 | Elm_Widget_Item *_elm_multibuttonentry_item_prepend(Eo *obj, Elm_Multibuttonentry_Data *pd, const char *label, Evas_Smart_Cb func, void *data); | ||
107 | |||
108 | EOAPI EFL_FUNC_BODYV(elm_obj_multibuttonentry_item_prepend, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(label, func, data), const char *label, Evas_Smart_Cb func, void *data); | ||
109 | |||
110 | void _elm_multibuttonentry_clear(Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
111 | |||
112 | EOAPI EFL_VOID_FUNC_BODY(elm_obj_multibuttonentry_clear); | ||
113 | |||
114 | void _elm_multibuttonentry_item_filter_remove(Eo *obj, Elm_Multibuttonentry_Data *pd, Elm_Multibuttonentry_Item_Filter_Cb func, void *data); | ||
115 | |||
116 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_multibuttonentry_item_filter_remove, EFL_FUNC_CALL(func, data), Elm_Multibuttonentry_Item_Filter_Cb func, void *data); | ||
117 | |||
118 | Elm_Widget_Item *_elm_multibuttonentry_item_insert_before(Eo *obj, Elm_Multibuttonentry_Data *pd, Elm_Widget_Item *before, const char *label, Evas_Smart_Cb func, void *data); | ||
119 | |||
120 | EOAPI EFL_FUNC_BODYV(elm_obj_multibuttonentry_item_insert_before, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(before, label, func, data), Elm_Widget_Item *before, const char *label, Evas_Smart_Cb func, void *data); | ||
121 | |||
122 | Elm_Widget_Item *_elm_multibuttonentry_item_append(Eo *obj, Elm_Multibuttonentry_Data *pd, const char *label, Evas_Smart_Cb func, void *data); | ||
123 | |||
124 | EOAPI EFL_FUNC_BODYV(elm_obj_multibuttonentry_item_append, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(label, func, data), const char *label, Evas_Smart_Cb func, void *data); | ||
125 | |||
126 | void _elm_multibuttonentry_item_filter_prepend(Eo *obj, Elm_Multibuttonentry_Data *pd, Elm_Multibuttonentry_Item_Filter_Cb func, void *data); | ||
127 | |||
128 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_multibuttonentry_item_filter_prepend, EFL_FUNC_CALL(func, data), Elm_Multibuttonentry_Item_Filter_Cb func, void *data); | ||
129 | |||
130 | void _elm_multibuttonentry_item_filter_append(Eo *obj, Elm_Multibuttonentry_Data *pd, Elm_Multibuttonentry_Item_Filter_Cb func, void *data); | ||
131 | |||
132 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_multibuttonentry_item_filter_append, EFL_FUNC_CALL(func, data), Elm_Multibuttonentry_Item_Filter_Cb func, void *data); | ||
133 | |||
134 | Elm_Widget_Item *_elm_multibuttonentry_item_insert_after(Eo *obj, Elm_Multibuttonentry_Data *pd, Elm_Widget_Item *after, const char *label, Evas_Smart_Cb func, void *data); | ||
135 | |||
136 | EOAPI EFL_FUNC_BODYV(elm_obj_multibuttonentry_item_insert_after, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(after, label, func, data), Elm_Widget_Item *after, const char *label, Evas_Smart_Cb func, void *data); | ||
137 | |||
138 | Efl_Object *_elm_multibuttonentry_efl_object_constructor(Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
139 | |||
140 | |||
141 | Eina_Error _elm_multibuttonentry_efl_ui_widget_theme_apply(Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
142 | |||
143 | |||
144 | void _elm_multibuttonentry_efl_ui_widget_on_access_update(Eo *obj, Elm_Multibuttonentry_Data *pd, Eina_Bool enable); | ||
145 | |||
146 | |||
147 | void _elm_multibuttonentry_efl_ui_l10n_translation_update(Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
148 | |||
149 | |||
150 | Eina_Bool _elm_multibuttonentry_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Multibuttonentry_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source); | ||
151 | |||
152 | |||
153 | Eina_List *_elm_multibuttonentry_efl_access_object_access_children_get(const Eo *obj, Elm_Multibuttonentry_Data *pd); | ||
154 | |||
155 | |||
156 | Efl_Object *_elm_multibuttonentry_efl_part_part_get(const Eo *obj, Elm_Multibuttonentry_Data *pd, const char *name); | ||
157 | |||
158 | |||
159 | static Eina_Bool | ||
160 | _elm_multibuttonentry_class_initializer(Efl_Class *klass) | ||
161 | { | ||
162 | const Efl_Object_Ops *opsp = NULL; | ||
163 | |||
164 | const Efl_Object_Property_Reflection_Ops *ropsp = NULL; | ||
165 | |||
166 | #ifndef ELM_MULTIBUTTONENTRY_EXTRA_OPS | ||
167 | #define ELM_MULTIBUTTONENTRY_EXTRA_OPS | ||
168 | #endif | ||
169 | |||
170 | EFL_OPS_DEFINE(ops, | ||
171 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_editable_set, _elm_multibuttonentry_editable_set), | ||
172 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_editable_get, _elm_multibuttonentry_editable_get), | ||
173 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_expanded_set, _elm_multibuttonentry_expanded_set), | ||
174 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_expanded_get, _elm_multibuttonentry_expanded_get), | ||
175 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_format_function_set, _elm_multibuttonentry_format_function_set), | ||
176 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_items_get, _elm_multibuttonentry_items_get), | ||
177 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_first_item_get, _elm_multibuttonentry_first_item_get), | ||
178 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_last_item_get, _elm_multibuttonentry_last_item_get), | ||
179 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_entry_get, _elm_multibuttonentry_entry_get), | ||
180 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_selected_item_get, _elm_multibuttonentry_selected_item_get), | ||
181 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_prepend, _elm_multibuttonentry_item_prepend), | ||
182 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_clear, _elm_multibuttonentry_clear), | ||
183 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_filter_remove, _elm_multibuttonentry_item_filter_remove), | ||
184 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_insert_before, _elm_multibuttonentry_item_insert_before), | ||
185 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_append, _elm_multibuttonentry_item_append), | ||
186 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_filter_prepend, _elm_multibuttonentry_item_filter_prepend), | ||
187 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_filter_append, _elm_multibuttonentry_item_filter_append), | ||
188 | EFL_OBJECT_OP_FUNC(elm_obj_multibuttonentry_item_insert_after, _elm_multibuttonentry_item_insert_after), | ||
189 | EFL_OBJECT_OP_FUNC(efl_constructor, _elm_multibuttonentry_efl_object_constructor), | ||
190 | EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_multibuttonentry_efl_ui_widget_theme_apply), | ||
191 | EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_multibuttonentry_efl_ui_widget_on_access_update), | ||
192 | EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_multibuttonentry_efl_ui_l10n_translation_update), | ||
193 | EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_multibuttonentry_efl_ui_widget_widget_input_event_handler), | ||
194 | EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, _elm_multibuttonentry_efl_access_object_access_children_get), | ||
195 | EFL_OBJECT_OP_FUNC(efl_part_get, _elm_multibuttonentry_efl_part_part_get), | ||
196 | ELM_MULTIBUTTONENTRY_EXTRA_OPS | ||
197 | ); | ||
198 | opsp = &ops; | ||
199 | |||
200 | static const Efl_Object_Property_Reflection refl_table[] = { | ||
201 | {"editable", __eolian_elm_multibuttonentry_editable_set_reflect, __eolian_elm_multibuttonentry_editable_get_reflect}, | ||
202 | {"expanded", __eolian_elm_multibuttonentry_expanded_set_reflect, __eolian_elm_multibuttonentry_expanded_get_reflect}, | ||
203 | }; | ||
204 | static const Efl_Object_Property_Reflection_Ops rops = { | ||
205 | refl_table, EINA_C_ARRAY_LENGTH(refl_table) | ||
206 | }; | ||
207 | ropsp = &rops; | ||
208 | |||
209 | return efl_class_functions_set(klass, opsp, ropsp); | ||
210 | } | ||
211 | |||
212 | static const Efl_Class_Description _elm_multibuttonentry_class_desc = { | ||
213 | EO_VERSION, | ||
214 | "Elm.Multibuttonentry", | ||
215 | EFL_CLASS_TYPE_REGULAR, | ||
216 | sizeof(Elm_Multibuttonentry_Data), | ||
217 | _elm_multibuttonentry_class_initializer, | ||
218 | _elm_multibuttonentry_class_constructor, | ||
219 | NULL | ||
220 | }; | ||
221 | |||
222 | EFL_DEFINE_CLASS(elm_multibuttonentry_class_get, &_elm_multibuttonentry_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_CLICKABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL); | ||
223 | |||
224 | #include "elm_multibuttonentry_eo.legacy.c" | ||