summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_separator_eo.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-05 17:00:37 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 14:16:17 -0800
commit5d6382b9cedd5df6afdcd2d61ce5307538d4c53a (patch)
tree189822f9fa38bfab510709f89988f469c438678b /src/lib/elementary/elm_separator_eo.c
parent9ec139cefd86105e3b7b86af7600ce955a8f01da (diff)
elm_separator: remove all legacy usage from eo files
this takes the current generated output from eolian for legacy code in efl and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8198
Diffstat (limited to 'src/lib/elementary/elm_separator_eo.c')
-rw-r--r--src/lib/elementary/elm_separator_eo.c83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_separator_eo.c b/src/lib/elementary/elm_separator_eo.c
new file mode 100644
index 0000000000..1f8206fe6b
--- /dev/null
+++ b/src/lib/elementary/elm_separator_eo.c
@@ -0,0 +1,83 @@
1
2void _elm_separator_horizontal_set(Eo *obj, Elm_Separator_Data *pd, Eina_Bool horizontal);
3
4
5static Eina_Error
6__eolian_elm_separator_horizontal_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_obj_separator_horizontal_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_separator_horizontal_set, EFL_FUNC_CALL(horizontal), Eina_Bool horizontal);
21
22Eina_Bool _elm_separator_horizontal_get(const Eo *obj, Elm_Separator_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_separator_horizontal_get_reflect(Eo *obj)
27{
28 Eina_Bool val = elm_obj_separator_horizontal_get(obj);
29 return eina_value_bool_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_separator_horizontal_get, Eina_Bool, 0);
33
34Efl_Object *_elm_separator_efl_object_constructor(Eo *obj, Elm_Separator_Data *pd);
35
36
37Eina_Error _elm_separator_efl_ui_widget_theme_apply(Eo *obj, Elm_Separator_Data *pd);
38
39
40static Eina_Bool
41_elm_separator_class_initializer(Efl_Class *klass)
42{
43 const Efl_Object_Ops *opsp = NULL;
44
45 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
46
47#ifndef ELM_SEPARATOR_EXTRA_OPS
48#define ELM_SEPARATOR_EXTRA_OPS
49#endif
50
51 EFL_OPS_DEFINE(ops,
52 EFL_OBJECT_OP_FUNC(elm_obj_separator_horizontal_set, _elm_separator_horizontal_set),
53 EFL_OBJECT_OP_FUNC(elm_obj_separator_horizontal_get, _elm_separator_horizontal_get),
54 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_separator_efl_object_constructor),
55 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_separator_efl_ui_widget_theme_apply),
56 ELM_SEPARATOR_EXTRA_OPS
57 );
58 opsp = &ops;
59
60 static const Efl_Object_Property_Reflection refl_table[] = {
61 {"horizontal", __eolian_elm_separator_horizontal_set_reflect, __eolian_elm_separator_horizontal_get_reflect},
62 };
63 static const Efl_Object_Property_Reflection_Ops rops = {
64 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
65 };
66 ropsp = &rops;
67
68 return efl_class_functions_set(klass, opsp, ropsp);
69}
70
71static const Efl_Class_Description _elm_separator_class_desc = {
72 EO_VERSION,
73 "Elm.Separator",
74 EFL_CLASS_TYPE_REGULAR,
75 sizeof(Elm_Separator_Data),
76 _elm_separator_class_initializer,
77 _elm_separator_class_constructor,
78 NULL
79};
80
81EFL_DEFINE_CLASS(elm_separator_class_get, &_elm_separator_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_LEGACY_INTERFACE, NULL);
82
83#include "elm_separator_eo.legacy.c"