summaryrefslogtreecommitdiff
path: root/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
diff options
context:
space:
mode:
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.c14
1 files changed, 6 insertions, 8 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 6c4906c..b075f88 100644
--- a/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
+++ b/src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
@@ -34,7 +34,7 @@ struct _Ector_Renderer_Cairo_Gradient_Radial_Data
34static Eina_Bool 34static Eina_Bool
35_ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_Cairo_Gradient_Radial_Data *pd) 35_ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_Cairo_Gradient_Radial_Data *pd)
36{ 36{
37 eo_do_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, ector_renderer_prepare()); 37 ector_renderer_prepare(eo_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS));
38 38
39 if (!pd->parent) 39 if (!pd->parent)
40 { 40 {
@@ -82,7 +82,7 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_draw(Eo *obj,
82 pat = _ector_renderer_cairo_gradient_radial_prepare(obj, grd, gd, mul_col); 82 pat = _ector_renderer_cairo_gradient_radial_prepare(obj, grd, gd, mul_col);
83 if (!pat) return EINA_FALSE; 83 if (!pat) return EINA_FALSE;
84 84
85 eo_do_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, ector_renderer_draw(op, clips, mul_col)); 85 ector_renderer_draw(eo_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS), op, clips, mul_col);
86 86
87 cairo_arc(pd->parent->cairo, 87 cairo_arc(pd->parent->cairo,
88 grd->radial.x, grd->radial.y, 88 grd->radial.x, grd->radial.y,
@@ -139,7 +139,7 @@ _ector_renderer_cairo_gradient_radial_eo_base_finalize(Eo *obj, Ector_Renderer_C
139{ 139{
140 Ector_Renderer_Generic_Base_Data *base; 140 Ector_Renderer_Generic_Base_Data *base;
141 141
142 eo_do_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, obj = eo_finalize()); 142 obj = eo_finalize(eo_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS));
143 if (!obj) return NULL; 143 if (!obj) return NULL;
144 144
145 base = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS); 145 base = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS);
@@ -165,7 +165,7 @@ _ector_renderer_cairo_gradient_radial_eo_base_destructor(Eo *obj,
165 base = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS); 165 base = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS);
166 eo_data_xunref(base->surface, pd->parent, obj); 166 eo_data_xunref(base->surface, pd->parent, obj);
167 167
168 eo_do_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, eo_destructor()); 168 eo_destructor(eo_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS));
169} 169}
170 170
171static void 171static void
@@ -174,8 +174,7 @@ _ector_renderer_cairo_gradient_radial_efl_gfx_gradient_base_stop_set(Eo *obj,
174 const Efl_Gfx_Gradient_Stop *colors, 174 const Efl_Gfx_Gradient_Stop *colors,
175 unsigned int length) 175 unsigned int length)
176{ 176{
177 eo_do_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, 177 efl_gfx_gradient_stop_set(eo_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS), colors, length);
178 efl_gfx_gradient_stop_set(colors, length));
179} 178}
180 179
181static unsigned int 180static unsigned int
@@ -185,8 +184,7 @@ _ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_crc_get(Eo *ob
185 Ector_Renderer_Generic_Gradient_Data *gd; 184 Ector_Renderer_Generic_Gradient_Data *gd;
186 unsigned int crc; 185 unsigned int crc;
187 186
188 eo_do_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, 187 crc = ector_renderer_crc_get(eo_super(obj, ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS));
189 crc = ector_renderer_crc_get());
190 188
191 grd = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN); 189 grd = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN);
192 gd = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_GRADIENT_MIXIN); 190 gd = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_GRADIENT_MIXIN);