aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:37:55 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:37:55 +0200
commit510a3e42e84859d6e883c19c08c9e8ed06ac0d78 (patch)
tree0c6ea729797b2b605c0e03b06faa73b23ba0dc7e /src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
parentector: implements bounds_get for Ector_Renderer_Cairo_Shape. (diff)
downloadefl-510a3e42e84859d6e883c19c08c9e8ed06ac0d78.tar.gz
ector: implements bounds_get for gradients in Cairo backend.
Diffstat (limited to 'src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c')
-rw-r--r--src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c b/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
index 4e07754f40..1f4ac8e6cf 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
+++ b/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
@@ -122,6 +122,24 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_cairo_base_fill(Eo *obj, Ec
return EINA_TRUE;
}
+static Eina_Bool
+_ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_bounds_get(Eo *obj EINA_UNUSED,
+ Ector_Renderer_Cairo_Gradient_Radial_Data *pd EINA_UNUSED,
+ Eina_Rectangle *r)
+{
+ Ector_Renderer_Generic_Gradient_Radial_Data *gld;
+ Ector_Renderer_Cairo_Base_Data *bd;
+
+ gld = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN);
+ bd = eo_data_scope_get(obj, ECTOR_RENDERER_CAIRO_BASE_CLASS);
+ EINA_RECTANGLE_SET(r,
+ bd->generic->origin.x + gld->radial.x - gld->radius,
+ bd->generic->origin.y + gld->radial.y - gld->radius,
+ gld->radius * 2, gld->radius * 2);
+
+ return EINA_TRUE;
+}
+
void
_ector_renderer_cairo_gradient_radial_eo_base_destructor(Eo *obj,
Ector_Renderer_Cairo_Gradient_Radial_Data *pd)