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:30:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:59 +0200
commiteb2bd9a8d8ff79bb30a1888969bb5960e8fed066 (patch)
tree441470b05dc400cb8f76c806909ef67f6c2de13a /src/lib/evas/canvas/evas_vg_shape.c
parentdd1cae7329c933d48c488a99d297706d29d4521a (diff)
evas: move Evas.VG_* to Efl.VG.*
This also introduce legacy API for all of them.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_shape.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c412
1 files changed, 312 insertions, 100 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index 2a577b8..fd63594 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -3,17 +3,17 @@
3 3
4#include "evas_vg_private.h" 4#include "evas_vg_private.h"
5 5
6#define MY_CLASS EVAS_VG_SHAPE_CLASS 6#define MY_CLASS EFL_VG_SHAPE_CLASS
7 7
8typedef struct _Evas_VG_Shape_Data Evas_VG_Shape_Data; 8typedef struct _Efl_VG_Shape_Data Efl_VG_Shape_Data;
9struct _Evas_VG_Shape_Data 9struct _Efl_VG_Shape_Data
10{ 10{
11 Evas_VG_Node *fill; 11 Efl_VG *fill;
12 12
13 struct { 13 struct {
14 Efl_Gfx_Dash *dash; 14 Efl_Gfx_Dash *dash;
15 Evas_VG_Node *fill; 15 Efl_VG *fill;
16 Evas_VG_Node *marker; 16 Efl_VG *marker;
17 17
18 double scale; 18 double scale;
19 double width; 19 double width;
@@ -29,72 +29,72 @@ struct _Evas_VG_Shape_Data
29}; 29};
30 30
31static Eina_Bool 31static Eina_Bool
32_evas_vg_shape_evas_vg_node_bound_get(Eo *obj, 32_efl_vg_shape_efl_vg_base_bound_get(Eo *obj,
33 Evas_VG_Shape_Data *pd, 33 Efl_VG_Shape_Data *pd,
34 Eina_Rectangle *r) 34 Eina_Rectangle *r)
35{ 35{
36 return EINA_FALSE; 36 return EINA_FALSE;
37} 37}
38 38
39static void 39static void
40_evas_vg_shape_fill_set(Eo *obj EINA_UNUSED, 40_efl_vg_shape_fill_set(Eo *obj EINA_UNUSED,
41 Evas_VG_Shape_Data *pd, 41 Efl_VG_Shape_Data *pd,
42 Evas_VG_Node *f) 42 Efl_VG *f)
43{ 43{
44 Evas_VG_Node *tmp = pd->fill; 44 Efl_VG *tmp = pd->fill;
45 45
46 pd->fill = eo_ref(f); 46 pd->fill = eo_ref(f);
47 eo_unref(tmp); 47 eo_unref(tmp);
48 48
49 _evas_vg_node_changed(obj); 49 _efl_vg_base_changed(obj);
50} 50}
51 51
52static Evas_VG_Node * 52static Efl_VG *
53_evas_vg_shape_fill_get(Eo *obj EINA_UNUSED, Evas_VG_Shape_Data *pd) 53_efl_vg_shape_fill_get(Eo *obj EINA_UNUSED, Efl_VG_Shape_Data *pd)
54{ 54{
55 return pd->fill; 55 return pd->fill;
56} 56}
57 57
58static void 58static void
59_evas_vg_shape_efl_gfx_shape_stroke_scale_set(Eo *obj EINA_UNUSED, 59_efl_vg_shape_efl_gfx_shape_stroke_scale_set(Eo *obj EINA_UNUSED,
60 Evas_VG_Shape_Data *pd, 60 Efl_VG_Shape_Data *pd,
61 double s) 61 double s)
62{ 62{
63 pd->stroke.scale = s; 63 pd->stroke.scale = s;
64 64
65 _evas_vg_node_changed(obj); 65 _efl_vg_base_changed(obj);
66} 66}
67 67
68static double 68static double
69_evas_vg_shape_efl_gfx_shape_stroke_scale_get(Eo *obj EINA_UNUSED, 69_efl_vg_shape_efl_gfx_shape_stroke_scale_get(Eo *obj EINA_UNUSED,
70 Evas_VG_Shape_Data *pd) 70 Efl_VG_Shape_Data *pd)
71{ 71{
72 return pd->stroke.scale; 72 return pd->stroke.scale;
73} 73}
74 74
75static void 75static void
76_evas_vg_shape_efl_gfx_shape_stroke_color_set(Eo *obj EINA_UNUSED, 76_efl_vg_shape_efl_gfx_shape_stroke_color_set(Eo *obj EINA_UNUSED,
77 Evas_VG_Shape_Data *pd, 77 Efl_VG_Shape_Data *pd,
78 int r, int g, int b, int a) 78 int r, int g, int b, int a)
79{ 79{
80 pd->stroke.r = r; 80 pd->stroke.r = r;
81 pd->stroke.g = g; 81 pd->stroke.g = g;
82 pd->stroke.b = b; 82 pd->stroke.b = b;
83 pd->stroke.a = a; 83 pd->stroke.a = a;
84 84
85 _evas_vg_node_changed(obj); 85 _efl_vg_base_changed(obj);
86} 86}
87 87
88static Eina_Bool 88static Eina_Bool
89_evas_vg_shape_efl_gfx_base_color_part_set(Eo *obj, Evas_VG_Shape_Data *pd, 89_efl_vg_shape_efl_gfx_base_color_part_set(Eo *obj, Efl_VG_Shape_Data *pd,
90 const char * part, 90 const char * part,
91 int r, int g, int b, int a) 91 int r, int g, int b, int a)
92{ 92{
93 Eina_Bool ret; 93 Eina_Bool ret;
94 94
95 if (part && !strcmp(part, "stroke")) 95 if (part && !strcmp(part, "stroke"))
96 { 96 {
97 _evas_vg_shape_efl_gfx_shape_stroke_color_set(obj, pd, r, g, b, a); 97 _efl_vg_shape_efl_gfx_shape_stroke_color_set(obj, pd, r, g, b, a);
98 return EINA_TRUE; 98 return EINA_TRUE;
99 } 99 }
100 100
@@ -105,9 +105,9 @@ _evas_vg_shape_efl_gfx_base_color_part_set(Eo *obj, Evas_VG_Shape_Data *pd,
105} 105}
106 106
107static void 107static void
108_evas_vg_shape_efl_gfx_shape_stroke_color_get(Eo *obj EINA_UNUSED, 108_efl_vg_shape_efl_gfx_shape_stroke_color_get(Eo *obj EINA_UNUSED,
109 Evas_VG_Shape_Data *pd, 109 Efl_VG_Shape_Data *pd,
110 int *r, int *g, int *b, int *a) 110 int *r, int *g, int *b, int *a)
111{ 111{
112 if (r) *r = pd->stroke.r; 112 if (r) *r = pd->stroke.r;
113 if (g) *g = pd->stroke.g; 113 if (g) *g = pd->stroke.g;
@@ -116,15 +116,15 @@ _evas_vg_shape_efl_gfx_shape_stroke_color_get(Eo *obj EINA_UNUSED,
116} 116}
117 117
118static Eina_Bool 118static Eina_Bool
119_evas_vg_shape_efl_gfx_base_color_part_get(Eo *obj, Evas_VG_Shape_Data *pd, 119_efl_vg_shape_efl_gfx_base_color_part_get(Eo *obj, Efl_VG_Shape_Data *pd,
120 const char * part, 120 const char * part,
121 int *r, int *g, int *b, int *a) 121 int *r, int *g, int *b, int *a)
122{ 122{
123 Eina_Bool ret; 123 Eina_Bool ret;
124 124
125 if (part && !strcmp(part, "stroke")) 125 if (part && !strcmp(part, "stroke"))
126 { 126 {
127 _evas_vg_shape_efl_gfx_shape_stroke_color_get(obj, pd, r, g, b, a); 127 _efl_vg_shape_efl_gfx_shape_stroke_color_get(obj, pd, r, g, b, a);
128 return EINA_TRUE; 128 return EINA_TRUE;
129 } 129 }
130 130
@@ -135,64 +135,64 @@ _evas_vg_shape_efl_gfx_base_color_part_get(Eo *obj, Evas_VG_Shape_Data *pd,
135} 135}
136 136
137static void 137static void
138_evas_vg_shape_stroke_fill_set(Eo *obj EINA_UNUSED, 138_efl_vg_shape_stroke_fill_set(Eo *obj EINA_UNUSED,
139 Evas_VG_Shape_Data *pd, 139 Efl_VG_Shape_Data *pd,
140 Evas_VG_Node *f) 140 Efl_VG *f)
141{ 141{
142 Evas_VG_Node *tmp = pd->fill; 142 Efl_VG *tmp = pd->fill;
143 143
144 pd->stroke.fill = eo_ref(f); 144 pd->stroke.fill = eo_ref(f);
145 eo_unref(tmp); 145 eo_unref(tmp);
146 146
147 _evas_vg_node_changed(obj); 147 _efl_vg_base_changed(obj);
148} 148}
149 149
150static Evas_VG_Node * 150static Efl_VG *
151_evas_vg_shape_stroke_fill_get(Eo *obj EINA_UNUSED, 151_efl_vg_shape_stroke_fill_get(Eo *obj EINA_UNUSED,
152 Evas_VG_Shape_Data *pd) 152 Efl_VG_Shape_Data *pd)
153{ 153{
154 return pd->stroke.fill; 154 return pd->stroke.fill;
155} 155}
156 156
157static void 157static void
158_evas_vg_shape_efl_gfx_shape_stroke_width_set(Eo *obj EINA_UNUSED, 158_efl_vg_shape_efl_gfx_shape_stroke_width_set(Eo *obj EINA_UNUSED,
159 Evas_VG_Shape_Data *pd, 159 Efl_VG_Shape_Data *pd,
160 double w) 160 double w)
161{ 161{
162 pd->stroke.width = w; 162 pd->stroke.width = w;
163 163
164 _evas_vg_node_changed(obj); 164 _efl_vg_base_changed(obj);
165} 165}
166 166
167static double 167static double
168_evas_vg_shape_efl_gfx_shape_stroke_width_get(Eo *obj EINA_UNUSED, 168_efl_vg_shape_efl_gfx_shape_stroke_width_get(Eo *obj EINA_UNUSED,
169 Evas_VG_Shape_Data *pd) 169 Efl_VG_Shape_Data *pd)
170{ 170{
171 return pd->stroke.width; 171 return pd->stroke.width;
172} 172}
173 173
174static void 174static void
175_evas_vg_shape_efl_gfx_shape_stroke_location_set(Eo *obj EINA_UNUSED, 175_efl_vg_shape_efl_gfx_shape_stroke_location_set(Eo *obj EINA_UNUSED,
176 Evas_VG_Shape_Data *pd, 176 Efl_VG_Shape_Data *pd,
177 double centered) 177 double centered)
178{ 178{
179 pd->stroke.centered = centered; 179 pd->stroke.centered = centered;
180 180
181 _evas_vg_node_changed(obj); 181 _efl_vg_base_changed(obj);
182} 182}
183 183
184static double 184static double
185_evas_vg_shape_efl_gfx_shape_stroke_location_get(Eo *obj EINA_UNUSED, 185_efl_vg_shape_efl_gfx_shape_stroke_location_get(Eo *obj EINA_UNUSED,
186 Evas_VG_Shape_Data *pd) 186 Efl_VG_Shape_Data *pd)
187{ 187{
188 return pd->stroke.centered; 188 return pd->stroke.centered;
189} 189}
190 190
191static void 191static void
192_evas_vg_shape_efl_gfx_shape_stroke_dash_set(Eo *obj EINA_UNUSED, 192_efl_vg_shape_efl_gfx_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
193 Evas_VG_Shape_Data *pd, 193 Efl_VG_Shape_Data *pd,
194 const Efl_Gfx_Dash *dash, 194 const Efl_Gfx_Dash *dash,
195 unsigned int length) 195 unsigned int length)
196{ 196{
197 free(pd->stroke.dash); 197 free(pd->stroke.dash);
198 pd->stroke.dash = NULL; 198 pd->stroke.dash = NULL;
@@ -204,87 +204,87 @@ _evas_vg_shape_efl_gfx_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
204 memcpy(pd->stroke.dash, dash, sizeof (Efl_Gfx_Dash) * length); 204 memcpy(pd->stroke.dash, dash, sizeof (Efl_Gfx_Dash) * length);
205 pd->stroke.dash_count = length; 205 pd->stroke.dash_count = length;
206 206
207 _evas_vg_node_changed(obj); 207 _efl_vg_base_changed(obj);
208} 208}
209 209
210static void 210static void
211_evas_vg_shape_efl_gfx_shape_stroke_dash_get(Eo *obj EINA_UNUSED, 211_efl_vg_shape_efl_gfx_shape_stroke_dash_get(Eo *obj EINA_UNUSED,
212 Evas_VG_Shape_Data *pd, 212 Efl_VG_Shape_Data *pd,
213 const Efl_Gfx_Dash **dash, 213 const Efl_Gfx_Dash **dash,
214 unsigned int *length) 214 unsigned int *length)
215{ 215{
216 if (dash) *dash = pd->stroke.dash; 216 if (dash) *dash = pd->stroke.dash;
217 if (length) *length = pd->stroke.dash_count; 217 if (length) *length = pd->stroke.dash_count;
218} 218}
219 219
220static void 220static void
221_evas_vg_shape_stroke_marker_set(Eo *obj EINA_UNUSED, 221_efl_vg_shape_stroke_marker_set(Eo *obj EINA_UNUSED,
222 Evas_VG_Shape_Data *pd, 222 Efl_VG_Shape_Data *pd,
223 Evas_VG_Shape *m) 223 Efl_VG_Shape *m)
224{ 224{
225 Evas_VG_Node *tmp = pd->stroke.marker; 225 Efl_VG *tmp = pd->stroke.marker;
226 226
227 pd->stroke.marker = eo_ref(m); 227 pd->stroke.marker = eo_ref(m);
228 eo_unref(tmp); 228 eo_unref(tmp);
229 229
230 _evas_vg_node_changed(obj); 230 _efl_vg_base_changed(obj);
231} 231}
232 232
233static Evas_VG_Shape * 233static Efl_VG_Shape *
234_evas_vg_shape_stroke_marker_get(Eo *obj EINA_UNUSED, 234_efl_vg_shape_stroke_marker_get(Eo *obj EINA_UNUSED,
235 Evas_VG_Shape_Data *pd) 235 Efl_VG_Shape_Data *pd)
236{ 236{
237 return pd->stroke.marker; 237 return pd->stroke.marker;
238} 238}
239 239
240static void 240static void
241_evas_vg_shape_efl_gfx_shape_stroke_cap_set(Eo *obj EINA_UNUSED, 241_efl_vg_shape_efl_gfx_shape_stroke_cap_set(Eo *obj EINA_UNUSED,
242 Evas_VG_Shape_Data *pd, 242 Efl_VG_Shape_Data *pd,
243 Efl_Gfx_Cap c) 243 Efl_Gfx_Cap c)
244{ 244{
245 pd->stroke.cap = c; 245 pd->stroke.cap = c;
246 246
247 _evas_vg_node_changed(obj); 247 _efl_vg_base_changed(obj);
248} 248}
249 249
250static Efl_Gfx_Cap 250static Efl_Gfx_Cap
251_evas_vg_shape_efl_gfx_shape_stroke_cap_get(Eo *obj EINA_UNUSED, 251_efl_vg_shape_efl_gfx_shape_stroke_cap_get(Eo *obj EINA_UNUSED,
252 Evas_VG_Shape_Data *pd) 252 Efl_VG_Shape_Data *pd)
253{ 253{
254 return pd->stroke.cap; 254 return pd->stroke.cap;
255} 255}
256 256
257static void 257static void
258_evas_vg_shape_efl_gfx_shape_stroke_join_set(Eo *obj EINA_UNUSED, 258_efl_vg_shape_efl_gfx_shape_stroke_join_set(Eo *obj EINA_UNUSED,
259 Evas_VG_Shape_Data *pd, 259 Efl_VG_Shape_Data *pd,
260 Efl_Gfx_Join j) 260 Efl_Gfx_Join j)
261{ 261{
262 pd->stroke.join = j; 262 pd->stroke.join = j;
263 263
264 _evas_vg_node_changed(obj); 264 _efl_vg_base_changed(obj);
265} 265}
266 266
267static Efl_Gfx_Join 267static Efl_Gfx_Join
268_evas_vg_shape_efl_gfx_shape_stroke_join_get(Eo *obj EINA_UNUSED, 268_efl_vg_shape_efl_gfx_shape_stroke_join_get(Eo *obj EINA_UNUSED,
269 Evas_VG_Shape_Data *pd) 269 Efl_VG_Shape_Data *pd)
270{ 270{
271 return pd->stroke.join; 271 return pd->stroke.join;
272} 272}
273 273
274static void 274static void
275_evas_vg_shape_render_pre(Eo *obj EINA_UNUSED, 275_efl_vg_shape_render_pre(Eo *obj EINA_UNUSED,
276 Eina_Matrix3 *parent, 276 Eina_Matrix3 *parent,
277 Ector_Surface *s, 277 Ector_Surface *s,
278 void *data, 278 void *data,
279 Evas_VG_Node_Data *nd) 279 Efl_VG_Base_Data *nd)
280{ 280{
281 Evas_VG_Shape_Data *pd = data; 281 Efl_VG_Shape_Data *pd = data;
282 Evas_VG_Node_Data *fill, *stroke_fill, *stroke_marker, *mask; 282 Efl_VG_Base_Data *fill, *stroke_fill, *stroke_marker, *mask;
283 283
284 if (!nd->changed) return ; 284 if (!nd->changed) return ;
285 nd->changed = EINA_FALSE; 285 nd->changed = EINA_FALSE;
286 286
287 EVAS_VG_COMPUTE_MATRIX(current, parent, nd); 287 EFL_VG_COMPUTE_MATRIX(current, parent, nd);
288 288
289 fill = _evas_vg_render_pre(pd->fill, s, current); 289 fill = _evas_vg_render_pre(pd->fill, s, current);
290 stroke_fill = _evas_vg_render_pre(pd->stroke.fill, s, current); 290 stroke_fill = _evas_vg_render_pre(pd->stroke.fill, s, current);
@@ -310,9 +310,9 @@ _evas_vg_shape_render_pre(Eo *obj EINA_UNUSED,
310} 310}
311 311
312static void 312static void
313_evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd) 313_efl_vg_shape_eo_base_constructor(Eo *obj, Efl_VG_Shape_Data *pd)
314{ 314{
315 Evas_VG_Node_Data *nd; 315 Efl_VG_Base_Data *nd;
316 316
317 eo_do_super(obj, MY_CLASS, eo_constructor()); 317 eo_do_super(obj, MY_CLASS, eo_constructor());
318 318
@@ -322,15 +322,227 @@ _evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd)
322 pd->stroke.a = 1; 322 pd->stroke.a = 1;
323 pd->stroke.centered = 0.5; 323 pd->stroke.centered = 0.5;
324 324
325 nd = eo_data_scope_get(obj, EVAS_VG_NODE_CLASS); 325 nd = eo_data_scope_get(obj, EFL_VG_BASE_CLASS);
326 nd->render_pre = _evas_vg_shape_render_pre; 326 nd->render_pre = _efl_vg_shape_render_pre;
327 nd->data = pd; 327 nd->data = pd;
328} 328}
329 329
330static void 330static void
331_evas_vg_shape_eo_base_destructor(Eo *obj, Evas_VG_Shape_Data *pd EINA_UNUSED) 331_efl_vg_shape_eo_base_destructor(Eo *obj, Efl_VG_Shape_Data *pd EINA_UNUSED)
332{ 332{
333 eo_do_super(obj, MY_CLASS, eo_destructor()); 333 eo_do_super(obj, MY_CLASS, eo_destructor());
334} 334}
335 335
336#include "evas_vg_shape.eo.c" 336EAPI double
337evas_vg_shape_stroke_scale_get(Eo *obj)
338{
339 double ret;
340
341 return eo_do_ret(obj, ret, efl_gfx_shape_stroke_scale_get());
342}
343
344EAPI void
345evas_vg_shape_stroke_scale_set(Eo *obj, double s)
346{
347 eo_do(obj, efl_gfx_shape_stroke_scale_set(s));
348}
349
350EAPI void
351evas_vg_shape_stroke_color_get(Eo *obj, int *r, int *g, int *b, int *a)
352{
353 eo_do(obj, efl_gfx_shape_stroke_color_get(r, g, b, a));
354}
355
356EAPI void
357evas_vg_shape_stroke_color_set(Eo *obj, int r, int g, int b, int a)
358{
359 eo_do(obj, efl_gfx_shape_stroke_color_set(r, g, b, a));
360}
361
362EAPI double
363evas_vg_shape_stroke_width_get(Eo *obj)
364{
365 double ret;
366
367 return eo_do_ret(obj, ret, efl_gfx_shape_stroke_width_get());
368}
369
370EAPI void
371evas_vg_shape_stroke_width_set(Eo *obj, double w)
372{
373 eo_do(obj, efl_gfx_shape_stroke_width_set(w));
374}
375
376EAPI double
377evas_vg_shape_stroke_location_get(Eo *obj)
378{
379 double ret;
380
381 return eo_do_ret(obj, ret, efl_gfx_shape_stroke_location_get());
382}
383
384EAPI void
385evas_vg_shape_stroke_location_set(Eo *obj, double centered)
386{
387 eo_do(obj, efl_gfx_shape_stroke_location_set(centered));
388}
389
390EAPI void
391evas_vg_shape_stroke_dash_get(Eo *obj, const Efl_Gfx_Dash **dash, unsigned int *length)
392{
393 eo_do(obj, efl_gfx_shape_stroke_dash_get(dash, length));
394}
395
396EAPI void
397evas_vg_shape_stroke_dash_set(Eo *obj, const Efl_Gfx_Dash *dash, unsigned int length)
398{
399 eo_do(obj, efl_gfx_shape_stroke_dash_set(dash, length));
400}
401
402EAPI Efl_Gfx_Cap
403evas_vg_shape_stroke_cap_get(Eo *obj)
404{
405 Efl_Gfx_Cap ret;
406
407 return eo_do_ret(obj, ret, efl_gfx_shape_stroke_cap_get());
408}
409
410EAPI void
411evas_vg_shape_stroke_cap_set(Eo *obj, Efl_Gfx_Cap c)
412{
413 eo_do(obj, efl_gfx_shape_stroke_cap_set(c));
414}
415
416EAPI Efl_Gfx_Join
417evas_vg_shape_stroke_join_get(Eo *obj)
418{
419 Efl_Gfx_Join ret;
420
421 return eo_do_ret(obj, ret, efl_gfx_shape_stroke_join_get());
422}
423
424EAPI void
425evas_vg_shape_stroke_join_set(Eo *obj, Efl_Gfx_Join j)
426{
427 eo_do(obj, efl_gfx_shape_stroke_join_set(j));
428}
429
430EAPI void
431evas_vg_shape_shape_path_set(Eo *obj, const Efl_Gfx_Path_Command *op, const double *points)
432{
433 eo_do(obj, efl_gfx_shape_path_set(op, points));
434}
435
436EAPI void
437evas_vg_shape_shape_path_get(Eo *obj, const Efl_Gfx_Path_Command **op, const double **points)
438{
439 eo_do(obj, efl_gfx_shape_path_get(op, points));
440}
441
442EAPI void
443evas_vg_shape_shape_path_length_get(Eo *obj, unsigned int *commands, unsigned int *points)
444{
445 eo_do(obj, efl_gfx_shape_path_length_get(commands, points));
446}
447
448EAPI void
449evas_vg_shape_shape_current_get(Eo *obj, double *x, double *y)
450{
451 eo_do(obj, efl_gfx_shape_current_get(x, y));
452}
453
454EAPI void
455evas_vg_shape_shape_current_ctrl_get(Eo *obj, double *x, double *y)
456{
457 eo_do(obj, efl_gfx_shape_current_ctrl_get(x, y));
458}
459
460EAPI void
461evas_vg_shape_shape_dup(Eo *obj, Eo *dup_from)
462{
463 eo_do(obj, efl_gfx_shape_dup(dup_from));
464}
465
466EAPI void
467evas_vg_shape_shape_reset(Eo *obj)
468{
469 eo_do(obj, efl_gfx_shape_reset());
470}
471
472EAPI void
473evas_vg_shape_shape_append_move_to(Eo *obj, double x, double y)
474{
475 eo_do(obj, efl_gfx_shape_append_move_to(x, y));
476}
477
478EAPI void
479evas_vg_shape_shape_append_line_to(Eo *obj, double x, double y)
480{
481 eo_do(obj, efl_gfx_shape_append_line_to(x, y));
482}
483
484EAPI void
485evas_vg_shape_shape_append_quadratic_to(Eo *obj, double x, double y, double ctrl_x, double ctrl_y)
486{
487 eo_do(obj, efl_gfx_shape_append_quadratic_to(x, y, ctrl_x, ctrl_y));
488}
489
490EAPI void
491evas_vg_shape_shape_append_squadratic_to(Eo *obj, double x, double y)
492{
493 eo_do(obj, efl_gfx_shape_append_squadratic_to(x, y));
494}
495
496EAPI void
497evas_vg_shape_shape_append_cubic_to(Eo *obj, double x, double y, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1)
498{
499 eo_do(obj, efl_gfx_shape_append_cubic_to(x, y, ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1));
500}
501
502EAPI void
503evas_vg_shape_shape_append_scubic_to(Eo *obj, double x, double y, double ctrl_x, double ctrl_y)
504{
505 eo_do(obj, efl_gfx_shape_append_scubic_to(x, y, ctrl_x, ctrl_y));
506}
507
508EAPI void
509evas_vg_shape_shape_append_arc_to(Eo *obj, double x, double y, double rx, double ry, double angle, Eina_Bool large_arc, Eina_Bool sweep)
510{
511 eo_do(obj, efl_gfx_shape_append_arc_to(x, y, rx, ry, angle, large_arc, sweep));
512}
513
514EAPI void
515evas_vg_shape_shape_append_close(Eo *obj)
516{
517 eo_do(obj, efl_gfx_shape_append_close());
518}
519
520EAPI void
521evas_vg_shape_shape_append_circle(Eo *obj, double x, double y, double radius)
522{
523 eo_do(obj, efl_gfx_shape_append_circle(x, y, radius));
524}
525
526EAPI void
527evas_vg_shape_shape_append_svg_path(Eo *obj, const char *svg_path_data)
528{
529 eo_do(obj, efl_gfx_shape_append_svg_path(svg_path_data));
530}
531
532EAPI Eina_Bool
533evas_vg_shape_shape_interpolate(Eo *obj, const Eo *from, const Eo *to, double pos_map)
534{
535 Eina_Bool ret;
536
537 return eo_do_ret(obj, ret, efl_gfx_shape_interpolate(from, to, pos_map));
538}
539
540EAPI Eina_Bool
541evas_vg_shape_shape_equal_commands(Eo *obj, const Eo *with)
542{
543 Eina_Bool ret;
544
545 return eo_do_ret(obj, ret, efl_gfx_shape_equal_commands(with));
546}
547
548#include "efl_vg_shape.eo.c"