summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_label_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_label_eo.c')
-rw-r--r--src/lib/elementary/elm_label_eo.c219
1 files changed, 219 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_label_eo.c b/src/lib/elementary/elm_label_eo.c
new file mode 100644
index 0000000..f16ea83
--- /dev/null
+++ b/src/lib/elementary/elm_label_eo.c
@@ -0,0 +1,219 @@
1EWAPI const Efl_Event_Description _ELM_LABEL_EVENT_SLIDE_END =
2 EFL_EVENT_DESCRIPTION("slide,end");
3
4void _elm_label_wrap_width_set(Eo *obj, Elm_Label_Data *pd, int w);
5
6
7static Eina_Error
8__eolian_elm_label_wrap_width_set_reflect(Eo *obj, Eina_Value val)
9{
10 Eina_Error r = 0; int cval;
11 if (!eina_value_int_convert(&val, &cval))
12 {
13 r = EINA_ERROR_VALUE_FAILED;
14 goto end;
15 }
16 elm_obj_label_wrap_width_set(obj, cval);
17 end:
18 eina_value_flush(&val);
19 return r;
20}
21
22EOAPI EFL_VOID_FUNC_BODYV(elm_obj_label_wrap_width_set, EFL_FUNC_CALL(w), int w);
23
24int _elm_label_wrap_width_get(const Eo *obj, Elm_Label_Data *pd);
25
26
27static Eina_Value
28__eolian_elm_label_wrap_width_get_reflect(Eo *obj)
29{
30 int val = elm_obj_label_wrap_width_get(obj);
31 return eina_value_int_init(val);
32}
33
34EOAPI EFL_FUNC_BODY_CONST(elm_obj_label_wrap_width_get, int, 0);
35
36void _elm_label_slide_speed_set(Eo *obj, Elm_Label_Data *pd, double speed);
37
38
39static Eina_Error
40__eolian_elm_label_slide_speed_set_reflect(Eo *obj, Eina_Value val)
41{
42 Eina_Error r = 0; double cval;
43 if (!eina_value_double_convert(&val, &cval))
44 {
45 r = EINA_ERROR_VALUE_FAILED;
46 goto end;
47 }
48 elm_obj_label_slide_speed_set(obj, cval);
49 end:
50 eina_value_flush(&val);
51 return r;
52}
53
54EOAPI EFL_VOID_FUNC_BODYV(elm_obj_label_slide_speed_set, EFL_FUNC_CALL(speed), double speed);
55
56double _elm_label_slide_speed_get(const Eo *obj, Elm_Label_Data *pd);
57
58
59static Eina_Value
60__eolian_elm_label_slide_speed_get_reflect(Eo *obj)
61{
62 double val = elm_obj_label_slide_speed_get(obj);
63 return eina_value_double_init(val);
64}
65
66EOAPI EFL_FUNC_BODY_CONST(elm_obj_label_slide_speed_get, double, 0);
67
68void _elm_label_slide_mode_set(Eo *obj, Elm_Label_Data *pd, Elm_Label_Slide_Mode mode);
69
70EOAPI EFL_VOID_FUNC_BODYV(elm_obj_label_slide_mode_set, EFL_FUNC_CALL(mode), Elm_Label_Slide_Mode mode);
71
72Elm_Label_Slide_Mode _elm_label_slide_mode_get(const Eo *obj, Elm_Label_Data *pd);
73
74EOAPI EFL_FUNC_BODY_CONST(elm_obj_label_slide_mode_get, Elm_Label_Slide_Mode, 0);
75
76void _elm_label_slide_duration_set(Eo *obj, Elm_Label_Data *pd, double duration);
77
78
79static Eina_Error
80__eolian_elm_label_slide_duration_set_reflect(Eo *obj, Eina_Value val)
81{
82 Eina_Error r = 0; double cval;
83 if (!eina_value_double_convert(&val, &cval))
84 {
85 r = EINA_ERROR_VALUE_FAILED;
86 goto end;
87 }
88 elm_obj_label_slide_duration_set(obj, cval);
89 end:
90 eina_value_flush(&val);
91 return r;
92}
93
94EOAPI EFL_VOID_FUNC_BODYV(elm_obj_label_slide_duration_set, EFL_FUNC_CALL(duration), double duration);
95
96double _elm_label_slide_duration_get(const Eo *obj, Elm_Label_Data *pd);
97
98
99static Eina_Value
100__eolian_elm_label_slide_duration_get_reflect(Eo *obj)
101{
102 double val = elm_obj_label_slide_duration_get(obj);
103 return eina_value_double_init(val);
104}
105
106EOAPI EFL_FUNC_BODY_CONST(elm_obj_label_slide_duration_get, double, 0);
107
108void _elm_label_line_wrap_set(Eo *obj, Elm_Label_Data *pd, Elm_Wrap_Type wrap);
109
110EOAPI EFL_VOID_FUNC_BODYV(elm_obj_label_line_wrap_set, EFL_FUNC_CALL(wrap), Elm_Wrap_Type wrap);
111
112Elm_Wrap_Type _elm_label_line_wrap_get(const Eo *obj, Elm_Label_Data *pd);
113
114EOAPI EFL_FUNC_BODY_CONST(elm_obj_label_line_wrap_get, Elm_Wrap_Type, 0);
115
116void _elm_label_ellipsis_set(Eo *obj, Elm_Label_Data *pd, Eina_Bool ellipsis);
117
118
119static Eina_Error
120__eolian_elm_label_ellipsis_set_reflect(Eo *obj, Eina_Value val)
121{
122 Eina_Error r = 0; Eina_Bool cval;
123 if (!eina_value_bool_convert(&val, &cval))
124 {
125 r = EINA_ERROR_VALUE_FAILED;
126 goto end;
127 }
128 elm_obj_label_ellipsis_set(obj, cval);
129 end:
130 eina_value_flush(&val);
131 return r;
132}
133
134EOAPI EFL_VOID_FUNC_BODYV(elm_obj_label_ellipsis_set, EFL_FUNC_CALL(ellipsis), Eina_Bool ellipsis);
135
136Eina_Bool _elm_label_ellipsis_get(const Eo *obj, Elm_Label_Data *pd);
137
138
139static Eina_Value
140__eolian_elm_label_ellipsis_get_reflect(Eo *obj)
141{
142 Eina_Bool val = elm_obj_label_ellipsis_get(obj);
143 return eina_value_bool_init(val);
144}
145
146EOAPI EFL_FUNC_BODY_CONST(elm_obj_label_ellipsis_get, Eina_Bool, 0);
147
148void _elm_label_slide_go(Eo *obj, Elm_Label_Data *pd);
149
150EOAPI EFL_VOID_FUNC_BODY(elm_obj_label_slide_go);
151
152Efl_Object *_elm_label_efl_object_constructor(Eo *obj, Elm_Label_Data *pd);
153
154
155Eina_Error _elm_label_efl_ui_widget_theme_apply(Eo *obj, Elm_Label_Data *pd);
156
157
158Efl_Object *_elm_label_efl_part_part_get(const Eo *obj, Elm_Label_Data *pd, const char *name);
159
160
161static Eina_Bool
162_elm_label_class_initializer(Efl_Class *klass)
163{
164 const Efl_Object_Ops *opsp = NULL;
165
166 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
167
168#ifndef ELM_LABEL_EXTRA_OPS
169#define ELM_LABEL_EXTRA_OPS
170#endif
171
172 EFL_OPS_DEFINE(ops,
173 EFL_OBJECT_OP_FUNC(elm_obj_label_wrap_width_set, _elm_label_wrap_width_set),
174 EFL_OBJECT_OP_FUNC(elm_obj_label_wrap_width_get, _elm_label_wrap_width_get),
175 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_speed_set, _elm_label_slide_speed_set),
176 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_speed_get, _elm_label_slide_speed_get),
177 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_mode_set, _elm_label_slide_mode_set),
178 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_mode_get, _elm_label_slide_mode_get),
179 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_duration_set, _elm_label_slide_duration_set),
180 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_duration_get, _elm_label_slide_duration_get),
181 EFL_OBJECT_OP_FUNC(elm_obj_label_line_wrap_set, _elm_label_line_wrap_set),
182 EFL_OBJECT_OP_FUNC(elm_obj_label_line_wrap_get, _elm_label_line_wrap_get),
183 EFL_OBJECT_OP_FUNC(elm_obj_label_ellipsis_set, _elm_label_ellipsis_set),
184 EFL_OBJECT_OP_FUNC(elm_obj_label_ellipsis_get, _elm_label_ellipsis_get),
185 EFL_OBJECT_OP_FUNC(elm_obj_label_slide_go, _elm_label_slide_go),
186 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_label_efl_object_constructor),
187 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_label_efl_ui_widget_theme_apply),
188 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_label_efl_part_part_get),
189 ELM_LABEL_EXTRA_OPS
190 );
191 opsp = &ops;
192
193 static const Efl_Object_Property_Reflection refl_table[] = {
194 {"wrap_width", __eolian_elm_label_wrap_width_set_reflect, __eolian_elm_label_wrap_width_get_reflect},
195 {"slide_speed", __eolian_elm_label_slide_speed_set_reflect, __eolian_elm_label_slide_speed_get_reflect},
196 {"slide_duration", __eolian_elm_label_slide_duration_set_reflect, __eolian_elm_label_slide_duration_get_reflect},
197 {"ellipsis", __eolian_elm_label_ellipsis_set_reflect, __eolian_elm_label_ellipsis_get_reflect},
198 };
199 static const Efl_Object_Property_Reflection_Ops rops = {
200 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
201 };
202 ropsp = &rops;
203
204 return efl_class_functions_set(klass, opsp, ropsp);
205}
206
207static const Efl_Class_Description _elm_label_class_desc = {
208 EO_VERSION,
209 "Elm.Label",
210 EFL_CLASS_TYPE_REGULAR,
211 sizeof(Elm_Label_Data),
212 _elm_label_class_initializer,
213 _elm_label_class_constructor,
214 NULL
215};
216
217EFL_DEFINE_CLASS(elm_label_class_get, &_elm_label_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_LEGACY_INTERFACE, NULL);
218
219#include "elm_label_eo.legacy.c"