summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
new file mode 100644
index 0000000..9332178
--- /dev/null
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -0,0 +1,50 @@
1#include "evas_common_private.h"
2#include "evas_private.h"
3
4#include <strings.h>
5
6typedef struct _Evas_VG_Gradient_Linear_Data Evas_VG_Gradient_Linear_Data;
7struct _Evas_VG_Gradient_Linear_Data
8{
9 struct {
10 double x, y;
11 } start, end;
12};
13
14void
15_evas_vg_gradient_linear_start_set(Eo *obj EINA_UNUSED,
16 Evas_VG_Gradient_Linear_Data *pd,
17 double x, double y)
18{
19 pd->start.x = x;
20 pd->start.y = y;
21}
22
23void
24_evas_vg_gradient_linear_start_get(Eo *obj EINA_UNUSED,
25 Evas_VG_Gradient_Linear_Data *pd,
26 double *x, double *y)
27{
28 if (x) *x = pd->start.x;
29 if (y) *y = pd->start.y;
30}
31
32void
33_evas_vg_gradient_linear_end_set(Eo *obj EINA_UNUSED,
34 Evas_VG_Gradient_Linear_Data *pd,
35 double x, double y)
36{
37 pd->end.x = x;
38 pd->end.y = y;
39}
40
41void
42_evas_vg_gradient_linear_end_get(Eo *obj EINA_UNUSED,
43 Evas_VG_Gradient_Linear_Data *pd,
44 double *x, double *y)
45{
46 if (x) *x = pd->end.x;
47 if (y) *y = pd->end.y;
48}
49
50#include "evas_vg_gradient_linear.eo.c"