summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.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_linear.c
parent126edbb48c4f065fe68cb4d60760102498d93ad2 (diff)
evas: add logic to duplicate recursively an Efl_VG_Node tree.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index 609dc7a73a..7234d4bb22 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_linear.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -151,6 +151,22 @@ _efl_vg_gradient_linear_efl_vg_base_interpolate(Eo *obj,
151 return EINA_TRUE; 151 return EINA_TRUE;
152} 152}
153 153
154static void
155_efl_vg_gradient_linear_efl_vg_base_dup(Eo *obj,
156 Efl_VG_Gradient_Linear_Data *pd EINA_UNUSED,
157 const Efl_VG_Base *from)
158{
159 Efl_VG_Gradient_Linear_Data *fromd;
160
161 eo_do_super(obj, EFL_VG_GRADIENT_LINEAR_CLASS, efl_vg_dup(from));
162
163 fromd = eo_data_scope_get(from, EFL_VG_GRADIENT_LINEAR_CLASS);
164
165 eo_do(obj,
166 efl_gfx_gradient_linear_start_set(fromd->start.x, fromd->start.y),
167 efl_gfx_gradient_linear_end_set(fromd->end.x, fromd->end.y));
168}
169
154EAPI void 170EAPI void
155evas_vg_gradient_linear_start_set(Eo *obj, double x, double y) 171evas_vg_gradient_linear_start_set(Eo *obj, double x, double y)
156{ 172{