aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_vg_gradient_radial.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:38:04 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:38:04 +0200
commit600e69d226e8cdb960fb88e4d30a0af5d4277cd1 (patch)
treebcab354f8db8b9aae6e8fa4dca19d8e1c9d0c9b3 /src/lib/evas/canvas/evas_vg_gradient_radial.c
parentevas: remove Efl.VG.Image for now as it was not implemented. (diff)
downloadefl-600e69d226e8cdb960fb88e4d30a0af5d4277cd1.tar.gz
evas: implements efl_vg_bound_get in all Efl.VG object.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_radial.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_radial.c8
1 files changed, 8 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 fe4bb789c3..9b8495312b 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_radial.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_radial.c
@@ -127,6 +127,14 @@ _efl_vg_gradient_radial_eo_base_destructor(Eo *obj,
static Eina_Bool
_efl_vg_gradient_radial_efl_vg_base_bound_get(Eo *obj, Efl_VG_Gradient_Radial_Data *pd, Eina_Rectangle *r)
{
+ Efl_VG_Base_Data *nd;
+
+ nd = eo_data_scope_get(obj, EFL_VG_BASE_CLASS);
+ EINA_RECTANGLE_SET(r,
+ nd->x + pd->center.x - pd->radius,
+ nd->y + pd->center.y - pd->radius,
+ pd->radius * 2, pd->radius * 2);
+ return EINA_TRUE;
}
EAPI void