2015-04-03 07:15:39 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Eina.h>
|
|
|
|
#include <Ector.h>
|
|
|
|
|
|
|
|
#include "ector_private.h"
|
|
|
|
|
2015-04-03 07:21:53 -07:00
|
|
|
static void
|
2016-05-11 04:57:06 -07:00
|
|
|
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UNUSED,
|
|
|
|
Ector_Renderer_Gradient_Linear_Data *pd,
|
2015-04-03 07:23:16 -07:00
|
|
|
double x, double y)
|
2015-04-03 07:15:39 -07:00
|
|
|
{
|
|
|
|
pd->start.x = x;
|
|
|
|
pd->start.y = y;
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:21:53 -07:00
|
|
|
static void
|
2018-04-17 11:09:44 -07:00
|
|
|
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_start_get(const Eo *obj EINA_UNUSED,
|
2016-05-11 04:57:06 -07:00
|
|
|
Ector_Renderer_Gradient_Linear_Data *pd,
|
2015-04-03 07:23:16 -07:00
|
|
|
double *x, double *y)
|
2015-04-03 07:15:39 -07:00
|
|
|
{
|
|
|
|
if (x) *x = pd->start.x;
|
|
|
|
if (y) *y = pd->start.y;
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:21:53 -07:00
|
|
|
static void
|
2016-05-11 04:57:06 -07:00
|
|
|
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUSED,
|
|
|
|
Ector_Renderer_Gradient_Linear_Data *pd,
|
2015-04-03 07:23:16 -07:00
|
|
|
double x, double y)
|
2015-04-03 07:15:39 -07:00
|
|
|
{
|
|
|
|
pd->end.x = x;
|
|
|
|
pd->end.y = y;
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:21:53 -07:00
|
|
|
static void
|
2018-04-17 11:09:44 -07:00
|
|
|
_ector_renderer_gradient_linear_efl_gfx_gradient_linear_end_get(const Eo *obj EINA_UNUSED,
|
2016-05-11 04:57:06 -07:00
|
|
|
Ector_Renderer_Gradient_Linear_Data *pd,
|
2015-04-03 07:23:16 -07:00
|
|
|
double *x, double *y)
|
2015-04-03 07:15:39 -07:00
|
|
|
{
|
|
|
|
if (x) *x = pd->end.x;
|
|
|
|
if (y) *y = pd->end.y;
|
|
|
|
}
|
|
|
|
|
2016-05-11 04:57:06 -07:00
|
|
|
#include "ector_renderer_gradient_linear.eo.c"
|