summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient.c b/src/lib/evas/canvas/evas_vg_gradient.c
index dff4738..047ba72 100644
--- a/src/lib/evas/canvas/evas_vg_gradient.c
+++ b/src/lib/evas/canvas/evas_vg_gradient.c
@@ -63,7 +63,7 @@ _efl_vg_gradient_efl_vg_base_interpolate(Eo *obj,
63 double from_map; 63 double from_map;
64 Eina_Bool r; 64 Eina_Bool r;
65 65
66 eo_do_super(obj, EFL_VG_GRADIENT_CLASS, r = efl_vg_interpolate(from, to, pos_map)); 66 r = efl_vg_interpolate(eo_super(obj, EFL_VG_GRADIENT_CLASS), from, to, pos_map);
67 67
68 fromd = eo_data_scope_get(from, EFL_VG_GRADIENT_CLASS); 68 fromd = eo_data_scope_get(from, EFL_VG_GRADIENT_CLASS);
69 tod = eo_data_scope_get(to, EFL_VG_GRADIENT_CLASS); 69 tod = eo_data_scope_get(to, EFL_VG_GRADIENT_CLASS);
@@ -101,31 +101,30 @@ _efl_vg_gradient_efl_vg_base_dup(Eo *obj,
101{ 101{
102 Efl_VG_Gradient_Data *fromd; 102 Efl_VG_Gradient_Data *fromd;
103 103
104 eo_do_super(obj, EFL_VG_GRADIENT_CLASS, efl_vg_dup(from)); 104 efl_vg_dup(eo_super(obj, EFL_VG_GRADIENT_CLASS), from);
105 105
106 fromd = eo_data_scope_get(from, EFL_VG_GRADIENT_CLASS); 106 fromd = eo_data_scope_get(from, EFL_VG_GRADIENT_CLASS);
107 107
108 eo_do(obj, 108 efl_gfx_gradient_stop_set(obj, fromd->colors, fromd->colors_count);
109 efl_gfx_gradient_stop_set(fromd->colors, fromd->colors_count), 109 efl_gfx_gradient_spread_set(obj, fromd->s);
110 efl_gfx_gradient_spread_set(fromd->s));
111} 110}
112 111
113EAPI void 112EAPI void
114evas_vg_gradient_stop_set(Eo *obj, const Efl_Gfx_Gradient_Stop *colors, unsigned int length) 113evas_vg_gradient_stop_set(Eo *obj, const Efl_Gfx_Gradient_Stop *colors, unsigned int length)
115{ 114{
116 eo_do(obj, efl_gfx_gradient_stop_set(colors, length)); 115 efl_gfx_gradient_stop_set(obj, colors, length);
117} 116}
118 117
119EAPI void 118EAPI void
120evas_vg_gradient_stop_get(Eo *obj, const Efl_Gfx_Gradient_Stop **colors, unsigned int *length) 119evas_vg_gradient_stop_get(Eo *obj, const Efl_Gfx_Gradient_Stop **colors, unsigned int *length)
121{ 120{
122 eo_do(obj, efl_gfx_gradient_stop_get(colors, length)); 121 efl_gfx_gradient_stop_get(obj, colors, length);
123} 122}
124 123
125EAPI void 124EAPI void
126evas_vg_gradient_spread_set(Eo *obj, Efl_Gfx_Gradient_Spread s) 125evas_vg_gradient_spread_set(Eo *obj, Efl_Gfx_Gradient_Spread s)
127{ 126{
128 eo_do(obj, efl_gfx_gradient_spread_set(s)); 127 efl_gfx_gradient_spread_set(obj, s);
129} 128}
130 129
131EAPI Efl_Gfx_Gradient_Spread 130EAPI Efl_Gfx_Gradient_Spread
@@ -133,7 +132,7 @@ evas_vg_gradient_spread_get(Eo *obj)
133{ 132{
134 Efl_Gfx_Gradient_Spread ret; 133 Efl_Gfx_Gradient_Spread ret;
135 134
136 return eo_do_ret(obj, ret, efl_gfx_gradient_spread_get()); 135 return efl_gfx_gradient_spread_get(obj);
137} 136}
138 137
139#include "efl_vg_gradient.eo.c" 138#include "efl_vg_gradient.eo.c"