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:12:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:12:59 +0200
commit9ba6e1a0ae5d82d10fbe2ea33e9ee0175242d534 (patch)
treeeeeffe724e759b0ef13d92cf5d2905c0776c7dc3 /src/lib/evas/canvas/evas_vg_container.c
parent659d3c4fd7bb49a440662f036af2e0a9b71711c2 (diff)
evas: add initial Evas_Object_VG.
Evas_Object_VG is meant to become an object that can hold a SVG scenegraph inside of it.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_container.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
new file mode 100644
index 0000000..fc008bb
--- /dev/null
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -0,0 +1,33 @@
1#include "evas_common_private.h"
2#include "evas_private.h"
3
4#include "evas_vg_private.h"
5
6#define MY_CLASS EVAS_VG_CONTAINER_CLASS
7
8void
9_evas_vg_container_eo_base_constructor(Eo *obj, Evas_VG_Container_Data *pd)
10{
11 Eo *parent;
12
13 eo_do_super(obj, MY_CLASS, eo_constructor());
14
15 eo_do(obj, parent = eo_parent_get());
16 if (!eo_isa(obj, EVAS_VG_CONTAINER_CLASS) &&
17 !eo_isa(obj, EVAS_VG_CLASS))
18 {
19 ERR("Parent must be either an Evas_Object_VG or an Evas_VG_Container.");
20 eo_error_set(obj);
21 }
22}
23
24Eina_Bool
25_evas_vg_container_evas_vg_node_bound_get(Eo *obj,
26 Evas_VG_Container_Data *pd,
27 Eina_Rectangle *r)
28{
29 // FIXME: iterate children and get their boundary to
30}
31
32
33#include "evas_vg_container.eo.c"