summaryrefslogtreecommitdiff
path: root/src/lib/ector/ector_renderer_gradient_linear.c
blob: 05c46d6a5a9b5cec15535110a6b7ef9ed278d5b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <Eina.h>
#include <Ector.h>

#include "ector_private.h"

static void
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UNUSED,
                                                                          Ector_Renderer_Gradient_Linear_Data *pd,
                                                                          double x, double y)
{
   pd->start.x = x;
   pd->start.y = y;
}

static void
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_start_get(Eo *obj EINA_UNUSED,
                                                                          Ector_Renderer_Gradient_Linear_Data *pd,
                                                                          double *x, double *y)
{
   if (x) *x = pd->start.x;
   if (y) *y = pd->start.y;
}

static void
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUSED,
                                                                        Ector_Renderer_Gradient_Linear_Data *pd,
                                                                        double x, double y)
{
   pd->end.x = x;
   pd->end.y = y;
}

static void
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_end_get(Eo *obj EINA_UNUSED,
                                                                        Ector_Renderer_Gradient_Linear_Data *pd,
                                                                        double *x, double *y)
{
   if (x) *x = pd->end.x;
   if (y) *y = pd->end.y;
}

#include "ector_renderer_gradient_linear.eo.c"