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:22:58 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:22:58 +0200
commit6097178ec32f56edf2a737a701ed55b673c29879 (patch)
treea994152d4397f3f889d4fd6133addc730fb88363 /src/lib/evas/canvas/evas_vg_container.c
parent621d3b566024c357ce523857db211ab02a08af72 (diff)
evas: start properly implementing render_pre for Evas_VG_Node.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_container.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index c4b7f38..20ac001 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -6,10 +6,37 @@
6#define MY_CLASS EVAS_VG_CONTAINER_CLASS 6#define MY_CLASS EVAS_VG_CONTAINER_CLASS
7 7
8static void 8static void
9_evas_vg_container_render_pre(Eo *obj EINA_UNUSED,
10 Ector_Surface *s,
11 void *data,
12 Evas_VG_Node_Data *nd EINA_UNUSED)
13{
14 Evas_VG_Container_Data *pd = data;
15 Eina_List *l;
16 Eo *child;
17
18 EINA_LIST_FOREACH(pd->children, l, child)
19 _evas_vg_render_pre(child, s);
20}
21
22static void
9_evas_vg_container_eo_base_constructor(Eo *obj, 23_evas_vg_container_eo_base_constructor(Eo *obj,
10 Evas_VG_Container_Data *pd EINA_UNUSED) 24 Evas_VG_Container_Data *pd)
11{ 25{
26 Evas_VG_Node_Data *nd;
27
12 eo_do_super(obj, MY_CLASS, eo_constructor()); 28 eo_do_super(obj, MY_CLASS, eo_constructor());
29
30 nd = eo_data_scope_get(obj, EVAS_VG_NODE_CLASS);
31 nd->render_pre = _evas_vg_container_render_pre;
32 nd->data = pd;
33}
34
35static void
36_evas_vg_container_eo_base_destructor(Eo *obj,
37 Evas_VG_Container_Data *pd EINA_UNUSED)
38{
39 eo_do_super(obj, MY_CLASS, eo_destructor());
13} 40}
14 41
15static Eina_Bool 42static Eina_Bool