aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_vg_gradient_radial.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-06-19 11:26:46 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-08-21 16:40:31 +0200
commit05fdfcc76a7eb57d00ae52d3ab2b9a1eb3ee0db9 (patch)
tree1e56e909ecaaf0d69b422f5173ea514b56dd84dc /src/lib/evas/canvas/evas_vg_gradient_radial.c
parentevas: allow parent during dup to be an Evas_Object_VG. (diff)
downloadefl-05fdfcc76a7eb57d00ae52d3ab2b9a1eb3ee0db9.tar.gz
evas: add logic to duplicate recursively an Efl_VG_Node tree.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_radial.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_radial.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_radial.c b/src/lib/evas/canvas/evas_vg_gradient_radial.c
index 52ed9570c5..d6d62c5857 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_radial.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_radial.c
@@ -170,6 +170,23 @@ _efl_vg_gradient_radial_efl_vg_base_interpolate(Eo *obj,
return EINA_TRUE;
}
+static void
+_efl_vg_gradient_radial_efl_vg_base_dup(Eo *obj,
+ Efl_VG_Gradient_Radial_Data *pd EINA_UNUSED,
+ const Efl_VG_Base *from)
+{
+ Efl_VG_Gradient_Radial_Data *fromd;
+
+ eo_do_super(obj, EFL_VG_GRADIENT_RADIAL_CLASS, efl_vg_dup(from));
+
+ fromd = eo_data_scope_get(from, EFL_VG_GRADIENT_RADIAL_CLASS);
+
+ eo_do(obj,
+ efl_gfx_gradient_radial_focal_set(fromd->focal.x, fromd->focal.y),
+ efl_gfx_gradient_radial_center_set(fromd->center.x, fromd->center.y),
+ efl_gfx_gradient_radial_radius_set(fromd->radius));
+}
+
EAPI void
evas_vg_gradient_radial_center_set(Eo *obj, double x, double y)
{