summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_mapbuf_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_mapbuf_eo.c')
-rw-r--r--src/lib/elementary/elm_mapbuf_eo.c230
1 files changed, 230 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_mapbuf_eo.c b/src/lib/elementary/elm_mapbuf_eo.c
new file mode 100644
index 0000000..a480b77
--- /dev/null
+++ b/src/lib/elementary/elm_mapbuf_eo.c
@@ -0,0 +1,230 @@
1
2void _elm_mapbuf_auto_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Bool on);
3
4
5static Eina_Error
6__eolian_elm_mapbuf_auto_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; Eina_Bool cval;
9 if (!eina_value_bool_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_private_mapbuf_auto_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_private_mapbuf_auto_set, EFL_FUNC_CALL(on), Eina_Bool on);
21
22Eina_Bool _elm_mapbuf_auto_get(const Eo *obj, Elm_Mapbuf_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_mapbuf_auto_get_reflect(Eo *obj)
27{
28 Eina_Bool val = elm_private_mapbuf_auto_get(obj);
29 return eina_value_bool_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_private_mapbuf_auto_get, Eina_Bool, 0);
33
34void _elm_mapbuf_smooth_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Bool smooth);
35
36
37static Eina_Error
38__eolian_elm_mapbuf_smooth_set_reflect(Eo *obj, Eina_Value val)
39{
40 Eina_Error r = 0; Eina_Bool cval;
41 if (!eina_value_bool_convert(&val, &cval))
42 {
43 r = EINA_ERROR_VALUE_FAILED;
44 goto end;
45 }
46 elm_private_mapbuf_smooth_set(obj, cval);
47 end:
48 eina_value_flush(&val);
49 return r;
50}
51
52EOAPI EFL_VOID_FUNC_BODYV(elm_private_mapbuf_smooth_set, EFL_FUNC_CALL(smooth), Eina_Bool smooth);
53
54Eina_Bool _elm_mapbuf_smooth_get(const Eo *obj, Elm_Mapbuf_Data *pd);
55
56
57static Eina_Value
58__eolian_elm_mapbuf_smooth_get_reflect(Eo *obj)
59{
60 Eina_Bool val = elm_private_mapbuf_smooth_get(obj);
61 return eina_value_bool_init(val);
62}
63
64EOAPI EFL_FUNC_BODY_CONST(elm_private_mapbuf_smooth_get, Eina_Bool, 0);
65
66void _elm_mapbuf_alpha_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Bool alpha);
67
68
69static Eina_Error
70__eolian_elm_mapbuf_alpha_set_reflect(Eo *obj, Eina_Value val)
71{
72 Eina_Error r = 0; Eina_Bool cval;
73 if (!eina_value_bool_convert(&val, &cval))
74 {
75 r = EINA_ERROR_VALUE_FAILED;
76 goto end;
77 }
78 elm_private_mapbuf_alpha_set(obj, cval);
79 end:
80 eina_value_flush(&val);
81 return r;
82}
83
84EOAPI EFL_VOID_FUNC_BODYV(elm_private_mapbuf_alpha_set, EFL_FUNC_CALL(alpha), Eina_Bool alpha);
85
86Eina_Bool _elm_mapbuf_alpha_get(const Eo *obj, Elm_Mapbuf_Data *pd);
87
88
89static Eina_Value
90__eolian_elm_mapbuf_alpha_get_reflect(Eo *obj)
91{
92 Eina_Bool val = elm_private_mapbuf_alpha_get(obj);
93 return eina_value_bool_init(val);
94}
95
96EOAPI EFL_FUNC_BODY_CONST(elm_private_mapbuf_alpha_get, Eina_Bool, 0);
97
98void _elm_mapbuf_enabled_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Bool enabled);
99
100
101static Eina_Error
102__eolian_elm_mapbuf_enabled_set_reflect(Eo *obj, Eina_Value val)
103{
104 Eina_Error r = 0; Eina_Bool cval;
105 if (!eina_value_bool_convert(&val, &cval))
106 {
107 r = EINA_ERROR_VALUE_FAILED;
108 goto end;
109 }
110 elm_private_mapbuf_enabled_set(obj, cval);
111 end:
112 eina_value_flush(&val);
113 return r;
114}
115
116EOAPI EFL_VOID_FUNC_BODYV(elm_private_mapbuf_enabled_set, EFL_FUNC_CALL(enabled), Eina_Bool enabled);
117
118Eina_Bool _elm_mapbuf_enabled_get(const Eo *obj, Elm_Mapbuf_Data *pd);
119
120
121static Eina_Value
122__eolian_elm_mapbuf_enabled_get_reflect(Eo *obj)
123{
124 Eina_Bool val = elm_private_mapbuf_enabled_get(obj);
125 return eina_value_bool_init(val);
126}
127
128EOAPI EFL_FUNC_BODY_CONST(elm_private_mapbuf_enabled_get, Eina_Bool, 0);
129
130void _elm_mapbuf_point_color_set(Eo *obj, Elm_Mapbuf_Data *pd, int idx, int r, int g, int b, int a);
131
132EOAPI EFL_VOID_FUNC_BODYV(elm_private_mapbuf_point_color_set, EFL_FUNC_CALL(idx, r, g, b, a), int idx, int r, int g, int b, int a);
133
134void _elm_mapbuf_point_color_get(const Eo *obj, Elm_Mapbuf_Data *pd, int idx, int *r, int *g, int *b, int *a);
135
136EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_private_mapbuf_point_color_get, EFL_FUNC_CALL(idx, r, g, b, a), int idx, int *r, int *g, int *b, int *a);
137
138Efl_Object *_elm_mapbuf_efl_object_constructor(Eo *obj, Elm_Mapbuf_Data *pd);
139
140
141void _elm_mapbuf_efl_gfx_entity_visible_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Bool v);
142
143
144void _elm_mapbuf_efl_gfx_entity_position_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Position2D pos);
145
146
147void _elm_mapbuf_efl_gfx_entity_size_set(Eo *obj, Elm_Mapbuf_Data *pd, Eina_Size2D size);
148
149
150Eina_Error _elm_mapbuf_efl_ui_widget_theme_apply(Eo *obj, Elm_Mapbuf_Data *pd);
151
152
153Eina_Bool _elm_mapbuf_efl_ui_widget_widget_sub_object_del(Eo *obj, Elm_Mapbuf_Data *pd, Efl_Canvas_Object *sub_obj);
154
155
156Eina_Bool _elm_mapbuf_efl_content_content_set(Eo *obj, Elm_Mapbuf_Data *pd, Efl_Gfx_Entity *content);
157
158
159Efl_Gfx_Entity *_elm_mapbuf_efl_content_content_get(const Eo *obj, Elm_Mapbuf_Data *pd);
160
161
162Efl_Gfx_Entity *_elm_mapbuf_efl_content_content_unset(Eo *obj, Elm_Mapbuf_Data *pd);
163
164
165Efl_Object *_elm_mapbuf_efl_part_part_get(const Eo *obj, Elm_Mapbuf_Data *pd, const char *name);
166
167
168static Eina_Bool
169_elm_mapbuf_class_initializer(Efl_Class *klass)
170{
171 const Efl_Object_Ops *opsp = NULL;
172
173 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
174
175#ifndef ELM_MAPBUF_EXTRA_OPS
176#define ELM_MAPBUF_EXTRA_OPS
177#endif
178
179 EFL_OPS_DEFINE(ops,
180 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_auto_set, _elm_mapbuf_auto_set),
181 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_auto_get, _elm_mapbuf_auto_get),
182 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_smooth_set, _elm_mapbuf_smooth_set),
183 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_smooth_get, _elm_mapbuf_smooth_get),
184 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_alpha_set, _elm_mapbuf_alpha_set),
185 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_alpha_get, _elm_mapbuf_alpha_get),
186 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_enabled_set, _elm_mapbuf_enabled_set),
187 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_enabled_get, _elm_mapbuf_enabled_get),
188 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_point_color_set, _elm_mapbuf_point_color_set),
189 EFL_OBJECT_OP_FUNC(elm_private_mapbuf_point_color_get, _elm_mapbuf_point_color_get),
190 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_mapbuf_efl_object_constructor),
191 EFL_OBJECT_OP_FUNC(efl_gfx_entity_visible_set, _elm_mapbuf_efl_gfx_entity_visible_set),
192 EFL_OBJECT_OP_FUNC(efl_gfx_entity_position_set, _elm_mapbuf_efl_gfx_entity_position_set),
193 EFL_OBJECT_OP_FUNC(efl_gfx_entity_size_set, _elm_mapbuf_efl_gfx_entity_size_set),
194 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_mapbuf_efl_ui_widget_theme_apply),
195 EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_mapbuf_efl_ui_widget_widget_sub_object_del),
196 EFL_OBJECT_OP_FUNC(efl_content_set, _elm_mapbuf_efl_content_content_set),
197 EFL_OBJECT_OP_FUNC(efl_content_get, _elm_mapbuf_efl_content_content_get),
198 EFL_OBJECT_OP_FUNC(efl_content_unset, _elm_mapbuf_efl_content_content_unset),
199 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_mapbuf_efl_part_part_get),
200 ELM_MAPBUF_EXTRA_OPS
201 );
202 opsp = &ops;
203
204 static const Efl_Object_Property_Reflection refl_table[] = {
205 {"auto", __eolian_elm_mapbuf_auto_set_reflect, __eolian_elm_mapbuf_auto_get_reflect},
206 {"smooth", __eolian_elm_mapbuf_smooth_set_reflect, __eolian_elm_mapbuf_smooth_get_reflect},
207 {"alpha", __eolian_elm_mapbuf_alpha_set_reflect, __eolian_elm_mapbuf_alpha_get_reflect},
208 {"enabled", __eolian_elm_mapbuf_enabled_set_reflect, __eolian_elm_mapbuf_enabled_get_reflect},
209 };
210 static const Efl_Object_Property_Reflection_Ops rops = {
211 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
212 };
213 ropsp = &rops;
214
215 return efl_class_functions_set(klass, opsp, ropsp);
216}
217
218static const Efl_Class_Description _elm_mapbuf_class_desc = {
219 EO_VERSION,
220 "Elm.Mapbuf",
221 EFL_CLASS_TYPE_REGULAR,
222 sizeof(Elm_Mapbuf_Data),
223 _elm_mapbuf_class_initializer,
224 _elm_mapbuf_class_constructor,
225 NULL
226};
227
228EFL_DEFINE_CLASS(elm_mapbuf_class_get, &_elm_mapbuf_class_desc, EFL_UI_WIDGET_CLASS, EFL_CONTENT_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
229
230#include "elm_mapbuf_eo.legacy.c"