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:23:10 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:23:10 +0200
commitba47b47eb23ba8633a71cdf44446df20a135ab0c (patch)
tree34017dfdd5caee0704ced3f76b01c4bfd9af0625 /src/lib/evas/canvas/evas_vg_shape.c
parent091fd5f31d337c52bfb88a6a48632dc952b98284 (diff)
efl: make path a property actually.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_shape.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index ac57eae..0c05728 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -31,7 +31,7 @@ struct _Evas_VG_Shape_Data
31 } stroke; 31 } stroke;
32}; 32};
33 33
34static Eina_Bool 34static void
35_evas_vg_shape_efl_graphics_shape_path_set(Eo *obj EINA_UNUSED, 35_evas_vg_shape_efl_graphics_shape_path_set(Eo *obj EINA_UNUSED,
36 Evas_VG_Shape_Data *pd, 36 Evas_VG_Shape_Data *pd,
37 const Efl_Graphics_Path_Command *ops, 37 const Efl_Graphics_Path_Command *ops,
@@ -42,7 +42,17 @@ _evas_vg_shape_efl_graphics_shape_path_set(Eo *obj EINA_UNUSED,
42 free(pd->ops); 42 free(pd->ops);
43 pd->ops = NULL; 43 pd->ops = NULL;
44 44
45 return efl_graphics_path_dup(&pd->ops, &pd->points, ops, points); 45 efl_graphics_path_dup(&pd->ops, &pd->points, ops, points);
46}
47
48static void
49_evas_vg_shape_efl_graphics_shape_path_get(Eo *obj EINA_UNUSED,
50 Evas_VG_Shape_Data *pd,
51 const Efl_Graphics_Path_Command **op,
52 const double **points)
53{
54 if (op) *op = pd->ops;
55 if (points) *points = pd->points;
46} 56}
47 57
48static Eina_Bool 58static Eina_Bool