summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-11 13:13:27 +0100
committerTom Hacohen <tom@stosb.com>2016-05-11 13:13:27 +0100
commitd64f2fdd4373dfc477f4d69e6d2ef59ad333763b (patch)
tree99e7c6f486dd2c1273ad90787244d70ed47b5327 /src/lib/evas/canvas/evas_vg_gradient_linear.c
parent70b5f3875e54446e21dcef56e80fc7046a2dbdec (diff)
Efl vg: Remove the no longer needed .Base hack.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index 6fd12b2b6b..5aa2607850 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_linear.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -23,7 +23,7 @@ _efl_vg_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UNUSED,
23 pd->start.x = x; 23 pd->start.x = x;
24 pd->start.y = y; 24 pd->start.y = y;
25 25
26 _efl_vg_base_changed(obj); 26 _efl_vg_changed(obj);
27} 27}
28 28
29static void 29static void
@@ -43,7 +43,7 @@ _efl_vg_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUSED,
43 pd->end.x = x; 43 pd->end.x = x;
44 pd->end.y = y; 44 pd->end.y = y;
45 45
46 _efl_vg_base_changed(obj); 46 _efl_vg_changed(obj);
47} 47}
48 48
49static void 49static void
@@ -60,7 +60,7 @@ _efl_vg_gradient_linear_render_pre(Eo *obj,
60 Eina_Matrix3 *parent, 60 Eina_Matrix3 *parent,
61 Ector_Surface *s, 61 Ector_Surface *s,
62 void *data, 62 void *data,
63 Efl_VG_Base_Data *nd) 63 Efl_VG_Data *nd)
64{ 64{
65 Efl_VG_Gradient_Linear_Data *pd = data; 65 Efl_VG_Gradient_Linear_Data *pd = data;
66 Efl_VG_Gradient_Data *gd; 66 Efl_VG_Gradient_Data *gd;
@@ -91,11 +91,11 @@ static Eo *
91_efl_vg_gradient_linear_eo_base_constructor(Eo *obj, 91_efl_vg_gradient_linear_eo_base_constructor(Eo *obj,
92 Efl_VG_Gradient_Linear_Data *pd) 92 Efl_VG_Gradient_Linear_Data *pd)
93{ 93{
94 Efl_VG_Base_Data *nd; 94 Efl_VG_Data *nd;
95 95
96 obj = eo_constructor(eo_super(obj, MY_CLASS)); 96 obj = eo_constructor(eo_super(obj, MY_CLASS));
97 97
98 nd = eo_data_scope_get(obj, EFL_VG_BASE_CLASS); 98 nd = eo_data_scope_get(obj, EFL_VG_CLASS);
99 nd->render_pre = _efl_vg_gradient_linear_render_pre; 99 nd->render_pre = _efl_vg_gradient_linear_render_pre;
100 nd->data = pd; 100 nd->data = pd;
101 101
@@ -109,20 +109,20 @@ _efl_vg_gradient_linear_eo_base_destructor(Eo *obj, Efl_VG_Gradient_Linear_Data
109} 109}
110 110
111static void 111static void
112_efl_vg_gradient_linear_efl_vg_base_bounds_get(Eo *obj, Efl_VG_Gradient_Linear_Data *pd, Eina_Rectangle *r) 112_efl_vg_gradient_linear_efl_vg_bounds_get(Eo *obj, Efl_VG_Gradient_Linear_Data *pd, Eina_Rectangle *r)
113{ 113{
114 Efl_VG_Base_Data *nd; 114 Efl_VG_Data *nd;
115 115
116 nd = eo_data_scope_get(obj, EFL_VG_BASE_CLASS); 116 nd = eo_data_scope_get(obj, EFL_VG_CLASS);
117 EINA_RECTANGLE_SET(r, 117 EINA_RECTANGLE_SET(r,
118 nd->x + pd->start.x, nd->y + pd->start.y, 118 nd->x + pd->start.x, nd->y + pd->start.y,
119 pd->end.x - pd->start.x, pd->end.y - pd->start.x); 119 pd->end.x - pd->start.x, pd->end.y - pd->start.x);
120} 120}
121 121
122static Eina_Bool 122static Eina_Bool
123_efl_vg_gradient_linear_efl_vg_base_interpolate(Eo *obj, 123_efl_vg_gradient_linear_efl_vg_interpolate(Eo *obj,
124 Efl_VG_Gradient_Linear_Data *pd, 124 Efl_VG_Gradient_Linear_Data *pd,
125 const Efl_VG_Base *from, const Efl_VG_Base *to, 125 const Efl_VG *from, const Efl_VG *to,
126 double pos_map) 126 double pos_map)
127{ 127{
128 Efl_VG_Gradient_Linear_Data *fromd, *tod; 128 Efl_VG_Gradient_Linear_Data *fromd, *tod;
@@ -151,9 +151,9 @@ _efl_vg_gradient_linear_efl_vg_base_interpolate(Eo *obj,
151} 151}
152 152
153static void 153static void
154_efl_vg_gradient_linear_efl_vg_base_dup(Eo *obj, 154_efl_vg_gradient_linear_efl_vg_dup(Eo *obj,
155 Efl_VG_Gradient_Linear_Data *pd EINA_UNUSED, 155 Efl_VG_Gradient_Linear_Data *pd EINA_UNUSED,
156 const Efl_VG_Base *from) 156 const Efl_VG *from)
157{ 157{
158 Efl_VG_Gradient_Linear_Data *fromd; 158 Efl_VG_Gradient_Linear_Data *fromd;
159 159