summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_grid_eo.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-05 11:15:40 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-06 19:05:48 +0100
commit5bfe2e89d247ac6491b2cfbfe5a787286859a202 (patch)
tree66762c697f3da652739e9df7268a0b9b20a04227 /src/lib/evas/canvas/evas_grid_eo.c
parent598ce966d842ac96f8f44ee1fb6ece9e1276dbe9 (diff)
evas: remove all legacy usage from eo files
this takes the current generated output from eolian for legacy code in evas 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: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D8107
Diffstat (limited to 'src/lib/evas/canvas/evas_grid_eo.c')
-rw-r--r--src/lib/evas/canvas/evas_grid_eo.c95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_grid_eo.c b/src/lib/evas/canvas/evas_grid_eo.c
new file mode 100644
index 0000000000..331cd0f9ef
--- /dev/null
+++ b/src/lib/evas/canvas/evas_grid_eo.c
@@ -0,0 +1,95 @@
1
2void _evas_grid_grid_size_set(Eo *obj, Evas_Grid_Data *pd, int w, int h);
3
4EOAPI EFL_VOID_FUNC_BODYV(evas_obj_grid_size_set, EFL_FUNC_CALL(w, h), int w, int h);
5
6void _evas_grid_grid_size_get(const Eo *obj, Evas_Grid_Data *pd, int *w, int *h);
7
8EOAPI EFL_VOID_FUNC_BODYV_CONST(evas_obj_grid_size_get, EFL_FUNC_CALL(w, h), int *w, int *h);
9
10Eina_List *_evas_grid_children_get(const Eo *obj, Evas_Grid_Data *pd);
11
12EOAPI EFL_FUNC_BODY_CONST(evas_obj_grid_children_get, Eina_List *, NULL);
13
14Eina_Accessor *_evas_grid_accessor_new(const Eo *obj, Evas_Grid_Data *pd);
15
16EOAPI EFL_FUNC_BODY_CONST(evas_obj_grid_accessor_new, Eina_Accessor *, NULL);
17
18void _evas_grid_clear(Eo *obj, Evas_Grid_Data *pd, Eina_Bool clear);
19
20EOAPI EFL_VOID_FUNC_BODYV(evas_obj_grid_clear, EFL_FUNC_CALL(clear), Eina_Bool clear);
21
22Eina_Iterator *_evas_grid_iterator_new(const Eo *obj, Evas_Grid_Data *pd);
23
24EOAPI EFL_FUNC_BODY_CONST(evas_obj_grid_iterator_new, Eina_Iterator *, NULL);
25
26Efl_Canvas_Object *_evas_grid_add_to(Eo *obj, Evas_Grid_Data *pd);
27
28EOAPI EFL_FUNC_BODY(evas_obj_grid_add_to, Efl_Canvas_Object *, NULL);
29
30Eina_Bool _evas_grid_unpack(Eo *obj, Evas_Grid_Data *pd, Efl_Canvas_Object *child);
31
32EOAPI EFL_FUNC_BODYV(evas_obj_grid_unpack, Eina_Bool, 0, EFL_FUNC_CALL(child), Efl_Canvas_Object *child);
33
34Eina_Bool _evas_grid_pack_get(const Eo *obj, Evas_Grid_Data *pd, Efl_Canvas_Object *child, int *x, int *y, int *w, int *h);
35
36EOAPI EFL_FUNC_BODYV_CONST(evas_obj_grid_pack_get, Eina_Bool, 0, EFL_FUNC_CALL(child, x, y, w, h), Efl_Canvas_Object *child, int *x, int *y, int *w, int *h);
37
38Eina_Bool _evas_grid_pack(Eo *obj, Evas_Grid_Data *pd, Efl_Canvas_Object *child, int x, int y, int w, int h);
39
40EOAPI EFL_FUNC_BODYV(evas_obj_grid_pack, Eina_Bool, 0, EFL_FUNC_CALL(child, x, y, w, h), Efl_Canvas_Object *child, int x, int y, int w, int h);
41
42Efl_Object *_evas_grid_efl_object_constructor(Eo *obj, Evas_Grid_Data *pd);
43
44
45void _evas_grid_efl_ui_i18n_mirrored_set(Eo *obj, Evas_Grid_Data *pd, Eina_Bool rtl);
46
47
48Eina_Bool _evas_grid_efl_ui_i18n_mirrored_get(const Eo *obj, Evas_Grid_Data *pd);
49
50
51static Eina_Bool
52_evas_grid_class_initializer(Efl_Class *klass)
53{
54 const Efl_Object_Ops *opsp = NULL;
55
56 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
57
58#ifndef EVAS_GRID_EXTRA_OPS
59#define EVAS_GRID_EXTRA_OPS
60#endif
61
62 EFL_OPS_DEFINE(ops,
63 EFL_OBJECT_OP_FUNC(evas_obj_grid_size_set, _evas_grid_grid_size_set),
64 EFL_OBJECT_OP_FUNC(evas_obj_grid_size_get, _evas_grid_grid_size_get),
65 EFL_OBJECT_OP_FUNC(evas_obj_grid_children_get, _evas_grid_children_get),
66 EFL_OBJECT_OP_FUNC(evas_obj_grid_accessor_new, _evas_grid_accessor_new),
67 EFL_OBJECT_OP_FUNC(evas_obj_grid_clear, _evas_grid_clear),
68 EFL_OBJECT_OP_FUNC(evas_obj_grid_iterator_new, _evas_grid_iterator_new),
69 EFL_OBJECT_OP_FUNC(evas_obj_grid_add_to, _evas_grid_add_to),
70 EFL_OBJECT_OP_FUNC(evas_obj_grid_unpack, _evas_grid_unpack),
71 EFL_OBJECT_OP_FUNC(evas_obj_grid_pack_get, _evas_grid_pack_get),
72 EFL_OBJECT_OP_FUNC(evas_obj_grid_pack, _evas_grid_pack),
73 EFL_OBJECT_OP_FUNC(efl_constructor, _evas_grid_efl_object_constructor),
74 EFL_OBJECT_OP_FUNC(efl_ui_mirrored_set, _evas_grid_efl_ui_i18n_mirrored_set),
75 EFL_OBJECT_OP_FUNC(efl_ui_mirrored_get, _evas_grid_efl_ui_i18n_mirrored_get),
76 EVAS_GRID_EXTRA_OPS
77 );
78 opsp = &ops;
79
80 return efl_class_functions_set(klass, opsp, ropsp);
81}
82
83static const Efl_Class_Description _evas_grid_class_desc = {
84 EO_VERSION,
85 "Evas.Grid",
86 EFL_CLASS_TYPE_REGULAR,
87 sizeof(Evas_Grid_Data),
88 _evas_grid_class_initializer,
89 NULL,
90 NULL
91};
92
93EFL_DEFINE_CLASS(evas_grid_class_get, &_evas_grid_class_desc, EFL_CANVAS_GROUP_CLASS, NULL);
94
95#include "evas_grid_eo.legacy.c"