summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_shape.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:14:50 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:14:50 +0200
commitb50931a5ca6c3271595acc950cd97449ecc699ca (patch)
treeef1d1bedb812bc8f19d889b43a3b524a11352e1e /src/lib/evas/canvas/evas_vg_shape.c
parent8097b8ab471c04d82325feda6e2a3251a7ecc383 (diff)
evas: actually compile Evas_VG_Shape.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_shape.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c160
1 files changed, 148 insertions, 12 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index 4262fa5..dd81a9c 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -1,6 +1,8 @@
1#include "evas_common_private.h" 1#include "evas_common_private.h"
2#include "evas_private.h" 2#include "evas_private.h"
3 3
4#include "evas_vg_private.h"
5
4#define MY_CLASS EVAS_VG_SHAPE_CLASS 6#define MY_CLASS EVAS_VG_SHAPE_CLASS
5 7
6typedef struct _Evas_VG_Shape_Data Evas_VG_Shape_Data; 8typedef struct _Evas_VG_Shape_Data Evas_VG_Shape_Data;
@@ -13,8 +15,8 @@ struct _Evas_VG_Shape_Data
13}; 15};
14 16
15Eina_Bool 17Eina_Bool
16_evas_vg_shape_path_set(Eo *obj, Evas_VG_Shape_Data *pd, 18_evas_vg_shape_path_set(Eo *obj EINA_UNUSED, Evas_VG_Shape_Data *pd,
17 Evas_VG_Path_Command *op, double *points) 19 const Evas_VG_Path_Command *op, const double *points)
18{ 20{
19 free(pd->points); 21 free(pd->points);
20 pd->points = NULL; 22 pd->points = NULL;
@@ -27,20 +29,154 @@ _evas_vg_shape_path_set(Eo *obj, Evas_VG_Shape_Data *pd,
27Eina_Bool 29Eina_Bool
28_evas_vg_shape_bounds_get(Eo *obj, Evas_VG_Shape_Data *pd, Eina_Rectangle *r) 30_evas_vg_shape_bounds_get(Eo *obj, Evas_VG_Shape_Data *pd, Eina_Rectangle *r)
29{ 31{
32 (void) obj; (void) pd; (void) r;
33 return EINA_FALSE;
34}
35
36void
37_evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd EINA_UNUSED)
38{
39 eo_do_super(obj, MY_CLASS, eo_constructor());
40}
41
42void
43_evas_vg_shape_eo_base_destructor(Eo *obj, Evas_VG_Shape_Data *pd)
44{
45 (void) obj; (void) pd;
46}
47
48void
49_evas_vg_shape_fill_set(Eo *obj, Evas_VG_Shape_Data *pd, Evas_VG_Node *f)
50{
51 (void) obj; (void) pd; (void) f;
52}
53
54Evas_VG_Node *
55_evas_vg_shape_fill_get(Eo *obj, Evas_VG_Shape_Data *pd)
56{
57 (void) obj; (void) pd;
58 return NULL;
59}
60
61void
62_evas_vg_shape_stroke_scale_set(Eo *obj, Evas_VG_Shape_Data *pd, double s)
63{
64 (void) obj; (void) pd; (void) s;
65}
66
67double
68_evas_vg_shape_stroke_scale_get(Eo *obj, Evas_VG_Shape_Data *pd)
69{
70 (void) obj; (void) pd;
71 return 0.0;
72}
73
74void
75_evas_vg_shape_stroke_color_set(Eo *obj, Evas_VG_Shape_Data *pd,
76 int r, int g, int b, int a)
77{
78 (void) obj; (void) pd; (void) r; (void) g; (void) b; (void) a;
79}
80
81void
82_evas_vg_shape_stroke_color_get(Eo *obj, Evas_VG_Shape_Data *pd,
83 int *r, int *g, int *b, int *a)
84{
85 (void) obj; (void) pd; (void) r; (void) g; (void) b; (void) a;
86}
87
88void
89_evas_vg_shape_stroke_fill_set(Eo *obj, Evas_VG_Shape_Data *pd, Evas_VG_Node *f)
90{
91 (void) obj; (void) pd; (void) f;
92}
93
94Evas_VG_Node *
95_evas_vg_shape_stroke_fill_get(Eo *obj, Evas_VG_Shape_Data *pd)
96{
97 (void) obj; (void) pd;
98 return NULL;
30} 99}
31 100
32void 101void
33_evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd) 102_evas_vg_shape_stroke_width_set(Eo *obj, Evas_VG_Shape_Data *pd, double w)
34{ 103{
35 Eo *parent; 104 (void) obj; (void) pd; (void) w;
105}
106
107double
108_evas_vg_shape_stroke_width_get(Eo *obj, Evas_VG_Shape_Data *pd)
109{
110 (void) obj; (void) pd;
111 return 0.0;
112}
113
114void
115_evas_vg_shape_stroke_location_set(Eo *obj, Evas_VG_Shape_Data *pd,
116 double centered)
117{
118 (void) obj; (void) pd; (void) centered;
119}
120
121double
122_evas_vg_shape_stroke_location_get(Eo *obj, Evas_VG_Shape_Data *pd)
123{
124 (void) obj; (void) pd;
125 return 0.0;
126}
127
128void
129_evas_vg_shape_stroke_dash_set(Eo *obj, Evas_VG_Shape_Data *pd,
130 const Evas_VG_Dash *dash, unsigned int length)
131{
132 (void) obj; (void) pd; (void) dash; (void) length;
133}
134
135void
136_evas_vg_shape_stroke_dash_get(Eo *obj, Evas_VG_Shape_Data *pd,
137 const Evas_VG_Dash **dash, unsigned int *length)
138{
139 (void) obj; (void) pd; (void) dash; (void) length;
140}
36 141
37 eo_super_do(obj, MY_CLASS, eo_constructor()); 142void
143_evas_vg_shape_stroke_marker_set(Eo *obj, Evas_VG_Shape_Data *pd,
144 Evas_VG_Shape *m)
145{
146 (void) obj; (void) pd; (void) m;
147}
148
149Evas_VG_Shape *
150_evas_vg_shape_stroke_marker_get(Eo *obj, Evas_VG_Shape_Data *pd)
151{
152 (void) obj; (void) pd;
153 return NULL;
154}
38 155
39 eo_do(obj, parent = eo_parent_get()); 156void
40 if (!eo_isa(obj, EVAS_VG_CONTAINER_CLASS) && 157_evas_vg_shape_stroke_cap_set(Eo *obj, Evas_VG_Shape_Data *pd, Evas_VG_Cap c)
41 !eo_isa(obj, EVAS_VG_CLASS)) 158{
42 { 159 (void) obj; (void) pd; (void) c;
43 ERR("Parent must be either an Evas_Object_VG or an Evas_VG_Container.");
44 eo_error_set(obj);
45 }
46} 160}
161
162Evas_VG_Cap
163_evas_vg_shape_stroke_cap_get(Eo *obj, Evas_VG_Shape_Data *pd)
164{
165 (void) obj; (void) pd;
166 return EVAS_VG_CAP_LAST;
167}
168
169void
170_evas_vg_shape_stroke_join_set(Eo *obj, Evas_VG_Shape_Data *pd, Evas_VG_Join j)
171{
172 (void) obj; (void) pd; (void) j;
173}
174
175Evas_VG_Join
176_evas_vg_shape_stroke_join_get(Eo *obj, Evas_VG_Shape_Data *pd)
177{
178 (void) obj; (void) pd;
179 return EVAS_VG_JOIN_LAST;
180}
181
182#include "evas_vg_shape.eo.c"