summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_table_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_table_eo.c')
-rw-r--r--src/lib/elementary/elm_table_eo.c145
1 files changed, 145 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_table_eo.c b/src/lib/elementary/elm_table_eo.c
new file mode 100644
index 0000000..d850fa4
--- /dev/null
+++ b/src/lib/elementary/elm_table_eo.c
@@ -0,0 +1,145 @@
1
2void _elm_table_homogeneous_set(Eo *obj, void *pd, Eina_Bool homogeneous);
3
4
5static Eina_Error
6__eolian_elm_table_homogeneous_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_table_homogeneous_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_homogeneous_set, EFL_FUNC_CALL(homogeneous), Eina_Bool homogeneous);
21
22Eina_Bool _elm_table_homogeneous_get(const Eo *obj, void *pd);
23
24
25static Eina_Value
26__eolian_elm_table_homogeneous_get_reflect(Eo *obj)
27{
28 Eina_Bool val = elm_obj_table_homogeneous_get(obj);
29 return eina_value_bool_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_table_homogeneous_get, Eina_Bool, 0);
33
34void _elm_table_padding_set(Eo *obj, void *pd, int horizontal, int vertical);
35
36EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_padding_set, EFL_FUNC_CALL(horizontal, vertical), int horizontal, int vertical);
37
38void _elm_table_padding_get(const Eo *obj, void *pd, int *horizontal, int *vertical);
39
40EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_table_padding_get, EFL_FUNC_CALL(horizontal, vertical), int *horizontal, int *vertical);
41
42void _elm_table_align_set(Eo *obj, void *pd, double horizontal, double vertical);
43
44EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_align_set, EFL_FUNC_CALL(horizontal, vertical), double horizontal, double vertical);
45
46void _elm_table_align_get(const Eo *obj, void *pd, double *horizontal, double *vertical);
47
48EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_table_align_get, EFL_FUNC_CALL(horizontal, vertical), double *horizontal, double *vertical);
49
50void _elm_table_clear(Eo *obj, void *pd, Eina_Bool clear);
51
52EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_clear, EFL_FUNC_CALL(clear), Eina_Bool clear);
53
54Efl_Canvas_Object *_elm_table_child_get(const Eo *obj, void *pd, int col, int row);
55
56EOAPI EFL_FUNC_BODYV_CONST(elm_obj_table_child_get, Efl_Canvas_Object *, NULL, EFL_FUNC_CALL(col, row), int col, int row);
57
58void _elm_table_pack_set(Eo *obj, void *pd, Efl_Canvas_Object *subobj, int column, int row, int colspan, int rowspan);
59
60EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_pack_set, EFL_FUNC_CALL(subobj, column, row, colspan, rowspan), Efl_Canvas_Object *subobj, int column, int row, int colspan, int rowspan);
61
62void _elm_table_pack_get(Eo *obj, void *pd, Efl_Canvas_Object *subobj, int *column, int *row, int *colspan, int *rowspan);
63
64EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_pack_get, EFL_FUNC_CALL(subobj, column, row, colspan, rowspan), Efl_Canvas_Object *subobj, int *column, int *row, int *colspan, int *rowspan);
65
66void _elm_table_unpack(Eo *obj, void *pd, Efl_Canvas_Object *subobj);
67
68EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_unpack, EFL_FUNC_CALL(subobj), Efl_Canvas_Object *subobj);
69
70void _elm_table_pack(Eo *obj, void *pd, Efl_Canvas_Object *subobj, int column, int row, int colspan, int rowspan);
71
72EOAPI EFL_VOID_FUNC_BODYV(elm_obj_table_pack, EFL_FUNC_CALL(subobj, column, row, colspan, rowspan), Efl_Canvas_Object *subobj, int column, int row, int colspan, int rowspan);
73
74Efl_Object *_elm_table_efl_object_constructor(Eo *obj, void *pd);
75
76
77void _elm_table_efl_canvas_group_group_calculate(Eo *obj, void *pd);
78
79
80Eina_Error _elm_table_efl_ui_widget_theme_apply(Eo *obj, void *pd);
81
82
83Eina_Bool _elm_table_efl_ui_widget_widget_sub_object_del(Eo *obj, void *pd, Efl_Canvas_Object *sub_obj);
84
85
86void _elm_table_efl_ui_focus_composition_prepare(Eo *obj, void *pd);
87
88
89static Eina_Bool
90_elm_table_class_initializer(Efl_Class *klass)
91{
92 const Efl_Object_Ops *opsp = NULL;
93
94 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
95
96#ifndef ELM_TABLE_EXTRA_OPS
97#define ELM_TABLE_EXTRA_OPS
98#endif
99
100 EFL_OPS_DEFINE(ops,
101 EFL_OBJECT_OP_FUNC(elm_obj_table_homogeneous_set, _elm_table_homogeneous_set),
102 EFL_OBJECT_OP_FUNC(elm_obj_table_homogeneous_get, _elm_table_homogeneous_get),
103 EFL_OBJECT_OP_FUNC(elm_obj_table_padding_set, _elm_table_padding_set),
104 EFL_OBJECT_OP_FUNC(elm_obj_table_padding_get, _elm_table_padding_get),
105 EFL_OBJECT_OP_FUNC(elm_obj_table_align_set, _elm_table_align_set),
106 EFL_OBJECT_OP_FUNC(elm_obj_table_align_get, _elm_table_align_get),
107 EFL_OBJECT_OP_FUNC(elm_obj_table_clear, _elm_table_clear),
108 EFL_OBJECT_OP_FUNC(elm_obj_table_child_get, _elm_table_child_get),
109 EFL_OBJECT_OP_FUNC(elm_obj_table_pack_set, _elm_table_pack_set),
110 EFL_OBJECT_OP_FUNC(elm_obj_table_pack_get, _elm_table_pack_get),
111 EFL_OBJECT_OP_FUNC(elm_obj_table_unpack, _elm_table_unpack),
112 EFL_OBJECT_OP_FUNC(elm_obj_table_pack, _elm_table_pack),
113 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_table_efl_object_constructor),
114 EFL_OBJECT_OP_FUNC(efl_canvas_group_calculate, _elm_table_efl_canvas_group_group_calculate),
115 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_table_efl_ui_widget_theme_apply),
116 EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_table_efl_ui_widget_widget_sub_object_del),
117 EFL_OBJECT_OP_FUNC(efl_ui_focus_composition_prepare, _elm_table_efl_ui_focus_composition_prepare),
118 ELM_TABLE_EXTRA_OPS
119 );
120 opsp = &ops;
121
122 static const Efl_Object_Property_Reflection refl_table[] = {
123 {"homogeneous", __eolian_elm_table_homogeneous_set_reflect, __eolian_elm_table_homogeneous_get_reflect},
124 };
125 static const Efl_Object_Property_Reflection_Ops rops = {
126 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
127 };
128 ropsp = &rops;
129
130 return efl_class_functions_set(klass, opsp, ropsp);
131}
132
133static const Efl_Class_Description _elm_table_class_desc = {
134 EO_VERSION,
135 "Elm.Table",
136 EFL_CLASS_TYPE_REGULAR,
137 0,
138 _elm_table_class_initializer,
139 _elm_table_class_constructor,
140 NULL
141};
142
143EFL_DEFINE_CLASS(elm_table_class_get, &_elm_table_class_desc, EFL_UI_WIDGET_CLASS, EFL_UI_FOCUS_COMPOSITION_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
144
145#include "elm_table_eo.legacy.c"