summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-04-04 13:38:34 +0200
committerCedric Bail <cedric@osg.samsung.com>2018-04-24 09:03:30 -0700
commita217d4b45576b4065f1ce0384efa9061a556f10a (patch)
treef6e65f19c6b13cb418854f358067ac2d38822880 /src/lib/evas/canvas/evas_vg_gradient_linear.c
parenta26fbbbc66f15c359fe8b27dcb034b812d735193 (diff)
Efl.Canvas.Vg.Object (from Efl.Canvas.Vg)
Also, Efl.Canvas.Vg.* (from Efl.Canvas.VG.*) Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index c02ada198f..c7a1263c92 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_linear.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -7,8 +7,8 @@
7 7
8#define MY_CLASS EFL_CANVAS_VG_GRADIENT_LINEAR_CLASS 8#define MY_CLASS EFL_CANVAS_VG_GRADIENT_LINEAR_CLASS
9 9
10typedef struct _Efl_Canvas_VG_Gradient_Linear_Data Efl_Canvas_VG_Gradient_Linear_Data; 10typedef struct _Efl_Canvas_Vg_Gradient_Linear_Data Efl_Canvas_Vg_Gradient_Linear_Data;
11struct _Efl_Canvas_VG_Gradient_Linear_Data 11struct _Efl_Canvas_Vg_Gradient_Linear_Data
12{ 12{
13 struct { 13 struct {
14 double x, y; 14 double x, y;
@@ -17,7 +17,7 @@ struct _Efl_Canvas_VG_Gradient_Linear_Data
17 17
18static void 18static void
19_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UNUSED, 19_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UNUSED,
20 Efl_Canvas_VG_Gradient_Linear_Data *pd, 20 Efl_Canvas_Vg_Gradient_Linear_Data *pd,
21 double x, double y) 21 double x, double y)
22{ 22{
23 pd->start.x = x; 23 pd->start.x = x;
@@ -28,7 +28,7 @@ _efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UN
28 28
29static void 29static void
30_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_get(const Eo *obj EINA_UNUSED, 30_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_get(const Eo *obj EINA_UNUSED,
31 Efl_Canvas_VG_Gradient_Linear_Data *pd, 31 Efl_Canvas_Vg_Gradient_Linear_Data *pd,
32 double *x, double *y) 32 double *x, double *y)
33{ 33{
34 if (x) *x = pd->start.x; 34 if (x) *x = pd->start.x;
@@ -37,7 +37,7 @@ _efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_get(const Eo *obj E
37 37
38static void 38static void
39_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUSED, 39_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUSED,
40 Efl_Canvas_VG_Gradient_Linear_Data *pd, 40 Efl_Canvas_Vg_Gradient_Linear_Data *pd,
41 double x, double y) 41 double x, double y)
42{ 42{
43 pd->end.x = x; 43 pd->end.x = x;
@@ -48,7 +48,7 @@ _efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUS
48 48
49static void 49static void
50_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_get(const Eo *obj EINA_UNUSED, 50_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_get(const Eo *obj EINA_UNUSED,
51 Efl_Canvas_VG_Gradient_Linear_Data *pd, 51 Efl_Canvas_Vg_Gradient_Linear_Data *pd,
52 double *x, double *y) 52 double *x, double *y)
53{ 53{
54 if (x) *x = pd->end.x; 54 if (x) *x = pd->end.x;
@@ -60,10 +60,10 @@ _efl_canvas_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_Canvas_VG_Node_Data *nd) 63 Efl_Canvas_Vg_Node_Data *nd)
64{ 64{
65 Efl_Canvas_VG_Gradient_Linear_Data *pd = data; 65 Efl_Canvas_Vg_Gradient_Linear_Data *pd = data;
66 Efl_Canvas_VG_Gradient_Data *gd; 66 Efl_Canvas_Vg_Gradient_Data *gd;
67 67
68 if (nd->flags == EFL_GFX_CHANGE_FLAG_NONE) return ; 68 if (nd->flags == EFL_GFX_CHANGE_FLAG_NONE) return ;
69 69
@@ -92,9 +92,9 @@ _efl_canvas_vg_gradient_linear_render_pre(Eo *obj,
92 92
93static Eo * 93static Eo *
94_efl_canvas_vg_gradient_linear_efl_object_constructor(Eo *obj, 94_efl_canvas_vg_gradient_linear_efl_object_constructor(Eo *obj,
95 Efl_Canvas_VG_Gradient_Linear_Data *pd) 95 Efl_Canvas_Vg_Gradient_Linear_Data *pd)
96{ 96{
97 Efl_Canvas_VG_Node_Data *nd; 97 Efl_Canvas_Vg_Node_Data *nd;
98 98
99 obj = efl_constructor(efl_super(obj, MY_CLASS)); 99 obj = efl_constructor(efl_super(obj, MY_CLASS));
100 100
@@ -106,15 +106,15 @@ _efl_canvas_vg_gradient_linear_efl_object_constructor(Eo *obj,
106} 106}
107 107
108static void 108static void
109_efl_canvas_vg_gradient_linear_efl_object_destructor(Eo *obj, Efl_Canvas_VG_Gradient_Linear_Data *pd EINA_UNUSED) 109_efl_canvas_vg_gradient_linear_efl_object_destructor(Eo *obj, Efl_Canvas_Vg_Gradient_Linear_Data *pd EINA_UNUSED)
110{ 110{
111 efl_destructor(efl_super(obj, MY_CLASS)); 111 efl_destructor(efl_super(obj, MY_CLASS));
112} 112}
113 113
114static void 114static void
115_efl_canvas_vg_gradient_linear_efl_gfx_path_bounds_get(const Eo *obj, Efl_Canvas_VG_Gradient_Linear_Data *pd, Eina_Rect *r) 115_efl_canvas_vg_gradient_linear_efl_gfx_path_bounds_get(const Eo *obj, Efl_Canvas_Vg_Gradient_Linear_Data *pd, Eina_Rect *r)
116{ 116{
117 Efl_Canvas_VG_Node_Data *nd; 117 Efl_Canvas_Vg_Node_Data *nd;
118 118
119 nd = efl_data_scope_get(obj, EFL_CANVAS_VG_NODE_CLASS); 119 nd = efl_data_scope_get(obj, EFL_CANVAS_VG_NODE_CLASS);
120 EINA_RECTANGLE_SET(r, 120 EINA_RECTANGLE_SET(r,
@@ -124,11 +124,11 @@ _efl_canvas_vg_gradient_linear_efl_gfx_path_bounds_get(const Eo *obj, Efl_Canvas
124 124
125static Eina_Bool 125static Eina_Bool
126_efl_canvas_vg_gradient_linear_efl_gfx_path_interpolate(Eo *obj, 126_efl_canvas_vg_gradient_linear_efl_gfx_path_interpolate(Eo *obj,
127 Efl_Canvas_VG_Gradient_Linear_Data *pd, 127 Efl_Canvas_Vg_Gradient_Linear_Data *pd,
128 const Efl_VG *from, const Efl_VG *to, 128 const Efl_VG *from, const Efl_VG *to,
129 double pos_map) 129 double pos_map)
130{ 130{
131 Efl_Canvas_VG_Gradient_Linear_Data *fromd, *tod; 131 Efl_Canvas_Vg_Gradient_Linear_Data *fromd, *tod;
132 double from_map; 132 double from_map;
133 Eina_Bool r; 133 Eina_Bool r;
134 134
@@ -154,7 +154,7 @@ _efl_canvas_vg_gradient_linear_efl_gfx_path_interpolate(Eo *obj,
154} 154}
155 155
156EOLIAN static Efl_VG * 156EOLIAN static Efl_VG *
157_efl_canvas_vg_gradient_linear_efl_duplicate_duplicate(const Eo *obj, Efl_Canvas_VG_Gradient_Linear_Data *pd) 157_efl_canvas_vg_gradient_linear_efl_duplicate_duplicate(const Eo *obj, Efl_Canvas_Vg_Gradient_Linear_Data *pd)
158{ 158{
159 Efl_VG *cn = NULL; 159 Efl_VG *cn = NULL;
160 160