summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_container.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:59 +0200
commiteb2bd9a8d8ff79bb30a1888969bb5960e8fed066 (patch)
tree441470b05dc400cb8f76c806909ef67f6c2de13a /src/lib/evas/canvas/evas_vg_container.c
parentdd1cae7329c933d48c488a99d297706d29d4521a (diff)
evas: move Evas.VG_* to Efl.VG.*
This also introduce legacy API for all of them.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_container.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index 3b368f0..fdf8124 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -3,52 +3,52 @@
3 3
4#include "evas_vg_private.h" 4#include "evas_vg_private.h"
5 5
6#define MY_CLASS EVAS_VG_CONTAINER_CLASS 6#define MY_CLASS EFL_VG_CONTAINER_CLASS
7 7
8static void 8static void
9_evas_vg_container_render_pre(Eo *obj EINA_UNUSED, 9_efl_vg_container_render_pre(Eo *obj EINA_UNUSED,
10 Eina_Matrix3 *parent, 10 Eina_Matrix3 *parent,
11 Ector_Surface *s, 11 Ector_Surface *s,
12 void *data, 12 void *data,
13 Evas_VG_Node_Data *nd) 13 Efl_VG_Base_Data *nd)
14{ 14{
15 Evas_VG_Container_Data *pd = data; 15 Efl_VG_Container_Data *pd = data;
16 Eina_List *l; 16 Eina_List *l;
17 Eo *child; 17 Eo *child;
18 18
19 if (!nd->changed) return ; 19 if (!nd->changed) return ;
20 nd->changed = EINA_FALSE; 20 nd->changed = EINA_FALSE;
21 21
22 EVAS_VG_COMPUTE_MATRIX(current, parent, nd); 22 EFL_VG_COMPUTE_MATRIX(current, parent, nd);
23 23
24 EINA_LIST_FOREACH(pd->children, l, child) 24 EINA_LIST_FOREACH(pd->children, l, child)
25 _evas_vg_render_pre(child, s, current); 25 _evas_vg_render_pre(child, s, current);
26} 26}
27 27
28static void 28static void
29_evas_vg_container_eo_base_constructor(Eo *obj, 29_efl_vg_container_eo_base_constructor(Eo *obj,
30 Evas_VG_Container_Data *pd) 30 Efl_VG_Container_Data *pd)
31{ 31{
32 Evas_VG_Node_Data *nd; 32 Efl_VG_Base_Data *nd;
33 33
34 eo_do_super(obj, MY_CLASS, eo_constructor()); 34 eo_do_super(obj, MY_CLASS, eo_constructor());
35 35
36 nd = eo_data_scope_get(obj, EVAS_VG_NODE_CLASS); 36 nd = eo_data_scope_get(obj, EFL_VG_BASE_CLASS);
37 nd->render_pre = _evas_vg_container_render_pre; 37 nd->render_pre = _efl_vg_container_render_pre;
38 nd->data = pd; 38 nd->data = pd;
39} 39}
40 40
41static void 41static void
42_evas_vg_container_eo_base_destructor(Eo *obj, 42_efl_vg_container_eo_base_destructor(Eo *obj,
43 Evas_VG_Container_Data *pd EINA_UNUSED) 43 Efl_VG_Container_Data *pd EINA_UNUSED)
44{ 44{
45 eo_do_super(obj, MY_CLASS, eo_destructor()); 45 eo_do_super(obj, MY_CLASS, eo_destructor());
46} 46}
47 47
48static Eina_Bool 48static Eina_Bool
49_evas_vg_container_evas_vg_node_bound_get(Eo *obj EINA_UNUSED, 49_efl_vg_container_efl_vg_base_bound_get(Eo *obj EINA_UNUSED,
50 Evas_VG_Container_Data *pd, 50 Efl_VG_Container_Data *pd,
51 Eina_Rectangle *r) 51 Eina_Rectangle *r)
52{ 52{
53 Eina_Rectangle s; 53 Eina_Rectangle s;
54 Eina_Bool first = EINA_TRUE; 54 Eina_Bool first = EINA_TRUE;
@@ -63,12 +63,12 @@ _evas_vg_container_evas_vg_node_bound_get(Eo *obj EINA_UNUSED,
63 { 63 {
64 if (first) 64 if (first)
65 { 65 {
66 eo_do(child, evas_vg_node_bound_get(r)); 66 eo_do(child, efl_vg_bound_get(r));
67 first = EINA_FALSE; 67 first = EINA_FALSE;
68 } 68 }
69 else 69 else
70 { 70 {
71 eo_do(child, evas_vg_node_bound_get(&s)); 71 eo_do(child, efl_vg_bound_get(&s));
72 eina_rectangle_union(r, &s); 72 eina_rectangle_union(r, &s);
73 } 73 }
74 } 74 }
@@ -77,4 +77,4 @@ _evas_vg_container_evas_vg_node_bound_get(Eo *obj EINA_UNUSED,
77} 77}
78 78
79 79
80#include "evas_vg_container.eo.c" 80#include "efl_vg_container.eo.c"