summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_table_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_table_eo.c')
-rw-r--r--src/lib/evas/canvas/evas_table_eo.c142
1 files changed, 142 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_table_eo.c b/src/lib/evas/canvas/evas_table_eo.c
new file mode 100644
index 0000000..0369d7c
--- /dev/null
+++ b/src/lib/evas/canvas/evas_table_eo.c
@@ -0,0 +1,142 @@
1
2void _evas_table_homogeneous_set(Eo *obj, Evas_Table_Data *pd, Evas_Object_Table_Homogeneous_Mode homogeneous);
3
4EOAPI EFL_VOID_FUNC_BODYV(evas_obj_table_homogeneous_set, EFL_FUNC_CALL(homogeneous), Evas_Object_Table_Homogeneous_Mode homogeneous);
5
6Evas_Object_Table_Homogeneous_Mode _evas_table_homogeneous_get(const Eo *obj, Evas_Table_Data *pd);
7
8EOAPI EFL_FUNC_BODY_CONST(evas_obj_table_homogeneous_get, Evas_Object_Table_Homogeneous_Mode, 0);
9
10void _evas_table_align_set(Eo *obj, Evas_Table_Data *pd, double horizontal, double vertical);
11
12EOAPI EFL_VOID_FUNC_BODYV(evas_obj_table_align_set, EFL_FUNC_CALL(horizontal, vertical), double horizontal, double vertical);
13
14void _evas_table_align_get(const Eo *obj, Evas_Table_Data *pd, double *horizontal, double *vertical);
15
16EOAPI EFL_VOID_FUNC_BODYV_CONST(evas_obj_table_align_get, EFL_FUNC_CALL(horizontal, vertical), double *horizontal, double *vertical);
17
18void _evas_table_padding_set(Eo *obj, Evas_Table_Data *pd, int horizontal, int vertical);
19
20EOAPI EFL_VOID_FUNC_BODYV(evas_obj_table_padding_set, EFL_FUNC_CALL(horizontal, vertical), int horizontal, int vertical);
21
22void _evas_table_padding_get(const Eo *obj, Evas_Table_Data *pd, int *horizontal, int *vertical);
23
24EOAPI EFL_VOID_FUNC_BODYV_CONST(evas_obj_table_padding_get, EFL_FUNC_CALL(horizontal, vertical), int *horizontal, int *vertical);
25
26void _evas_table_col_row_size_get(const Eo *obj, Evas_Table_Data *pd, int *cols, int *rows);
27
28EOAPI EFL_VOID_FUNC_BODYV_CONST(evas_obj_table_col_row_size_get, EFL_FUNC_CALL(cols, rows), int *cols, int *rows);
29
30Eina_List *_evas_table_children_get(const Eo *obj, Evas_Table_Data *pd);
31
32EOAPI EFL_FUNC_BODY_CONST(evas_obj_table_children_get, Eina_List *, NULL);
33
34Efl_Canvas_Object *_evas_table_child_get(const Eo *obj, Evas_Table_Data *pd, unsigned short col, unsigned short row);
35
36EOAPI EFL_FUNC_BODYV_CONST(evas_obj_table_child_get, Efl_Canvas_Object *, NULL, EFL_FUNC_CALL(col, row), unsigned short col, unsigned short row);
37
38void _evas_table_clear(Eo *obj, Evas_Table_Data *pd, Eina_Bool clear);
39
40EOAPI EFL_VOID_FUNC_BODYV(evas_obj_table_clear, EFL_FUNC_CALL(clear), Eina_Bool clear);
41
42Eina_Accessor *_evas_table_accessor_new(const Eo *obj, Evas_Table_Data *pd);
43
44EOAPI EFL_FUNC_BODY_CONST(evas_obj_table_accessor_new, Eina_Accessor *, NULL);
45
46Eina_Iterator *_evas_table_iterator_new(const Eo *obj, Evas_Table_Data *pd);
47
48EOAPI EFL_FUNC_BODY_CONST(evas_obj_table_iterator_new, Eina_Iterator *, NULL);
49
50Efl_Canvas_Object *_evas_table_add_to(Eo *obj, Evas_Table_Data *pd);
51
52EOAPI EFL_FUNC_BODY(evas_obj_table_add_to, Efl_Canvas_Object *, NULL);
53
54Eina_Bool _evas_table_pack_get(const Eo *obj, Evas_Table_Data *pd, Efl_Canvas_Object *child, unsigned short *col, unsigned short *row, unsigned short *colspan, unsigned short *rowspan);
55
56EOAPI EFL_FUNC_BODYV_CONST(evas_obj_table_pack_get, Eina_Bool, 0, EFL_FUNC_CALL(child, col, row, colspan, rowspan), Efl_Canvas_Object *child, unsigned short *col, unsigned short *row, unsigned short *colspan, unsigned short *rowspan);
57
58Eina_Bool _evas_table_pack(Eo *obj, Evas_Table_Data *pd, Efl_Canvas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan);
59
60EOAPI EFL_FUNC_BODYV(evas_obj_table_pack, Eina_Bool, 0, EFL_FUNC_CALL(child, col, row, colspan, rowspan), Efl_Canvas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan);
61
62Eina_Bool _evas_table_unpack(Eo *obj, Evas_Table_Data *pd, Efl_Canvas_Object *child);
63
64EOAPI EFL_FUNC_BODYV(evas_obj_table_unpack, Eina_Bool, 0, EFL_FUNC_CALL(child), Efl_Canvas_Object *child);
65
66int _evas_table_count(Eo *obj, Evas_Table_Data *pd);
67
68EOAPI EFL_FUNC_BODY(evas_obj_table_count, int, 0);
69
70Efl_Object *_evas_table_efl_object_constructor(Eo *obj, Evas_Table_Data *pd);
71
72
73void _evas_table_efl_gfx_entity_size_set(Eo *obj, Evas_Table_Data *pd, Eina_Size2D size);
74
75
76void _evas_table_efl_gfx_entity_position_set(Eo *obj, Evas_Table_Data *pd, Eina_Position2D pos);
77
78
79void _evas_table_efl_canvas_group_group_calculate(Eo *obj, Evas_Table_Data *pd);
80
81
82void _evas_table_efl_ui_i18n_mirrored_set(Eo *obj, Evas_Table_Data *pd, Eina_Bool rtl);
83
84
85Eina_Bool _evas_table_efl_ui_i18n_mirrored_get(const Eo *obj, Evas_Table_Data *pd);
86
87
88static Eina_Bool
89_evas_table_class_initializer(Efl_Class *klass)
90{
91 const Efl_Object_Ops *opsp = NULL;
92
93 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
94
95#ifndef EVAS_TABLE_EXTRA_OPS
96#define EVAS_TABLE_EXTRA_OPS
97#endif
98
99 EFL_OPS_DEFINE(ops,
100 EFL_OBJECT_OP_FUNC(evas_obj_table_homogeneous_set, _evas_table_homogeneous_set),
101 EFL_OBJECT_OP_FUNC(evas_obj_table_homogeneous_get, _evas_table_homogeneous_get),
102 EFL_OBJECT_OP_FUNC(evas_obj_table_align_set, _evas_table_align_set),
103 EFL_OBJECT_OP_FUNC(evas_obj_table_align_get, _evas_table_align_get),
104 EFL_OBJECT_OP_FUNC(evas_obj_table_padding_set, _evas_table_padding_set),
105 EFL_OBJECT_OP_FUNC(evas_obj_table_padding_get, _evas_table_padding_get),
106 EFL_OBJECT_OP_FUNC(evas_obj_table_col_row_size_get, _evas_table_col_row_size_get),
107 EFL_OBJECT_OP_FUNC(evas_obj_table_children_get, _evas_table_children_get),
108 EFL_OBJECT_OP_FUNC(evas_obj_table_child_get, _evas_table_child_get),
109 EFL_OBJECT_OP_FUNC(evas_obj_table_clear, _evas_table_clear),
110 EFL_OBJECT_OP_FUNC(evas_obj_table_accessor_new, _evas_table_accessor_new),
111 EFL_OBJECT_OP_FUNC(evas_obj_table_iterator_new, _evas_table_iterator_new),
112 EFL_OBJECT_OP_FUNC(evas_obj_table_add_to, _evas_table_add_to),
113 EFL_OBJECT_OP_FUNC(evas_obj_table_pack_get, _evas_table_pack_get),
114 EFL_OBJECT_OP_FUNC(evas_obj_table_pack, _evas_table_pack),
115 EFL_OBJECT_OP_FUNC(evas_obj_table_unpack, _evas_table_unpack),
116 EFL_OBJECT_OP_FUNC(evas_obj_table_count, _evas_table_count),
117 EFL_OBJECT_OP_FUNC(efl_constructor, _evas_table_efl_object_constructor),
118 EFL_OBJECT_OP_FUNC(efl_gfx_entity_size_set, _evas_table_efl_gfx_entity_size_set),
119 EFL_OBJECT_OP_FUNC(efl_gfx_entity_position_set, _evas_table_efl_gfx_entity_position_set),
120 EFL_OBJECT_OP_FUNC(efl_canvas_group_calculate, _evas_table_efl_canvas_group_group_calculate),
121 EFL_OBJECT_OP_FUNC(efl_ui_mirrored_set, _evas_table_efl_ui_i18n_mirrored_set),
122 EFL_OBJECT_OP_FUNC(efl_ui_mirrored_get, _evas_table_efl_ui_i18n_mirrored_get),
123 EVAS_TABLE_EXTRA_OPS
124 );
125 opsp = &ops;
126
127 return efl_class_functions_set(klass, opsp, ropsp);
128}
129
130static const Efl_Class_Description _evas_table_class_desc = {
131 EO_VERSION,
132 "Evas.Table",
133 EFL_CLASS_TYPE_REGULAR,
134 sizeof(Evas_Table_Data),
135 _evas_table_class_initializer,
136 _evas_table_class_constructor,
137 NULL
138};
139
140EFL_DEFINE_CLASS(evas_table_class_get, &_evas_table_class_desc, EFL_CANVAS_GROUP_CLASS, NULL);
141
142#include "evas_table_eo.legacy.c"