summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_shape.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_shape.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_shape.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
new file mode 100644
index 0000000..878cc7e
--- /dev/null
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -0,0 +1,39 @@
1#include "evas_common_private.h"
2#include "evas_private.h"
3
4#define MY_CLASS EVAS_VG_SHAPE_CLASS
5
6typedef struct _Evas_VG_Shape_Data Evas_VG_Shape_Data;
7struct _Evas_VG_Shape_Data
8{
9 Evas_VG_Path_Command *op;
10 double *points;
11 unsigned int op_count;
12 unsigned int pts_counts;
13};
14
15Eina_Bool
16_evas_vg_shape_path_set(Eo *obj, Evas_VG_Shape_Data *pd, Evas_VG_Path_Command *op, double *points)
17{
18}
19
20Eina_Bool
21_evas_vg_shape_bounds_get(Eo *obj, Evas_VG_Shape_Data *pd, Eina_Rectangle *r)
22{
23}
24
25void
26_evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd)
27{
28 Eo *parent;
29
30 eo_super_do(obj, MY_CLASS, eo_constructor());
31
32 eo_do(obj, parent = eo_parent_get());
33 if (!eo_isa(obj, EVAS_VG_CONTAINER_CLASS) &&
34 !eo_isa(obj, EVAS_VG_CLASS))
35 {
36 ERR("Parent must be either an Evas_Object_VG or an Evas_VG_Container.");
37 eo_error_set(obj);
38 }
39}