summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_separator_eo.c
diff options
context:
space:
mode:
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 0000000..1f8206f
--- /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"