summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_renderer_software_gradient_linear.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/lib/ector/software/ector_renderer_software_gradient_linear.c
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/lib/ector/software/ector_renderer_software_gradient_linear.c')
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_linear.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_linear.c b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
index 8c922a1cec..69bf9e42d9 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_linear.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
@@ -17,8 +17,8 @@ _ector_renderer_software_gradient_linear_ector_renderer_prepare(Eo *obj,
17 { 17 {
18 Ector_Renderer_Data *base; 18 Ector_Renderer_Data *base;
19 19
20 base = eo_data_scope_get(obj, ECTOR_RENDERER_CLASS); 20 base = efl_data_scope_get(obj, ECTOR_RENDERER_CLASS);
21 pd->surface = eo_data_xref(base->surface, ECTOR_SOFTWARE_SURFACE_CLASS, obj); 21 pd->surface = efl_data_xref(base->surface, ECTOR_SOFTWARE_SURFACE_CLASS, obj);
22 } 22 }
23 23
24 update_color_table(pd); 24 update_color_table(pd);
@@ -66,11 +66,11 @@ static Eo *
66_ector_renderer_software_gradient_linear_efl_object_constructor(Eo *obj, 66_ector_renderer_software_gradient_linear_efl_object_constructor(Eo *obj,
67 Ector_Renderer_Software_Gradient_Data *pd) 67 Ector_Renderer_Software_Gradient_Data *pd)
68{ 68{
69 obj = efl_constructor(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS)); 69 obj = efl_constructor(efl_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS));
70 if (!obj) return NULL; 70 if (!obj) return NULL;
71 71
72 pd->gd = eo_data_xref(obj, ECTOR_RENDERER_GRADIENT_MIXIN, obj); 72 pd->gd = efl_data_xref(obj, ECTOR_RENDERER_GRADIENT_MIXIN, obj);
73 pd->gld = eo_data_xref(obj, ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN, obj); 73 pd->gld = efl_data_xref(obj, ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN, obj);
74 74
75 return obj; 75 return obj;
76} 76}
@@ -83,19 +83,19 @@ _ector_renderer_software_gradient_linear_efl_object_destructor(Eo *obj,
83 83
84 destroy_color_table(pd); 84 destroy_color_table(pd);
85 85
86 base = eo_data_scope_get(obj, ECTOR_RENDERER_CLASS); 86 base = efl_data_scope_get(obj, ECTOR_RENDERER_CLASS);
87 eo_data_xunref(base->surface, pd->surface, obj); 87 efl_data_xunref(base->surface, pd->surface, obj);
88 88
89 eo_data_xunref(obj, pd->gd, obj); 89 efl_data_xunref(obj, pd->gd, obj);
90 eo_data_xunref(obj, pd->gld, obj); 90 efl_data_xunref(obj, pd->gld, obj);
91 91
92 efl_destructor(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS)); 92 efl_destructor(efl_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS));
93} 93}
94 94
95void 95void
96_ector_renderer_software_gradient_linear_efl_gfx_gradient_stop_set(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd, const Efl_Gfx_Gradient_Stop *colors, unsigned int length) 96_ector_renderer_software_gradient_linear_efl_gfx_gradient_stop_set(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd, const Efl_Gfx_Gradient_Stop *colors, unsigned int length)
97{ 97{
98 efl_gfx_gradient_stop_set(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS), colors, length); 98 efl_gfx_gradient_stop_set(efl_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS), colors, length);
99 99
100 destroy_color_table(pd); 100 destroy_color_table(pd);
101} 101}
@@ -105,7 +105,7 @@ _ector_renderer_software_gradient_linear_ector_renderer_crc_get(Eo *obj, Ector_R
105{ 105{
106 unsigned int crc; 106 unsigned int crc;
107 107
108 crc = ector_renderer_crc_get(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS)); 108 crc = ector_renderer_crc_get(efl_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS));
109 109
110 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE); 110 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE);
111 if (pd->gd->colors_count) 111 if (pd->gd->colors_count)