aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:12:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:12:59 +0200
commit9ba6e1a0ae5d82d10fbe2ea33e9ee0175242d534 (patch)
treeeeeffe724e759b0ef13d92cf5d2905c0776c7dc3 /src/lib/evas/canvas/evas_vg_gradient_linear.c
parenteina: add eina_matrix. (diff)
downloadefl-9ba6e1a0ae5d82d10fbe2ea33e9ee0175242d534.tar.gz
evas: add initial Evas_Object_VG.
Evas_Object_VG is meant to become an object that can hold a SVG scenegraph inside of it.
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 0000000000..9332178a18
--- /dev/null
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -0,0 +1,50 @@
+#include "evas_common_private.h"
+#include "evas_private.h"
+
+#include <strings.h>
+
+typedef struct _Evas_VG_Gradient_Linear_Data Evas_VG_Gradient_Linear_Data;
+struct _Evas_VG_Gradient_Linear_Data
+{
+ struct {
+ double x, y;
+ } start, end;
+};
+
+void
+_evas_vg_gradient_linear_start_set(Eo *obj EINA_UNUSED,
+ Evas_VG_Gradient_Linear_Data *pd,
+ double x, double y)
+{
+ pd->start.x = x;
+ pd->start.y = y;
+}
+
+void
+_evas_vg_gradient_linear_start_get(Eo *obj EINA_UNUSED,
+ Evas_VG_Gradient_Linear_Data *pd,
+ double *x, double *y)
+{
+ if (x) *x = pd->start.x;
+ if (y) *y = pd->start.y;
+}
+
+void
+_evas_vg_gradient_linear_end_set(Eo *obj EINA_UNUSED,
+ Evas_VG_Gradient_Linear_Data *pd,
+ double x, double y)
+{
+ pd->end.x = x;
+ pd->end.y = y;
+}
+
+void
+_evas_vg_gradient_linear_end_get(Eo *obj EINA_UNUSED,
+ Evas_VG_Gradient_Linear_Data *pd,
+ double *x, double *y)
+{
+ if (x) *x = pd->end.x;
+ if (y) *y = pd->end.y;
+}
+
+#include "evas_vg_gradient_linear.eo.c"