summaryrefslogtreecommitdiff
path: root/unsorted/evas/evas-vg-simple.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:32:56 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:32:56 +0200
commitbb42e5847405ae735f6bf0f4e66a8a666d5dcca7 (patch)
tree21f74a192453cfc1b546ae348d8078e4723f281c /unsorted/evas/evas-vg-simple.c
parent9a0b222acb5c2fd1fc53b3e23c1f1213adf9ccc2 (diff)
evas: check rect and circle rendering with SVG specification in Evas_VG example.
Diffstat (limited to 'unsorted/evas/evas-vg-simple.c')
-rw-r--r--unsorted/evas/evas-vg-simple.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/unsorted/evas/evas-vg-simple.c b/unsorted/evas/evas-vg-simple.c
index 168bb42..a192210 100644
--- a/unsorted/evas/evas-vg-simple.c
+++ b/unsorted/evas/evas-vg-simple.c
@@ -521,6 +521,18 @@ vector_set(int x, int y, int w, int h)
521 evas_vg_shape_stroke_width_set(fg, 5.0); 521 evas_vg_shape_stroke_width_set(fg, 5.0);
522 evas_vg_shape_stroke_join_set(fg, EFL_GFX_JOIN_ROUND); 522 evas_vg_shape_stroke_join_set(fg, EFL_GFX_JOIN_ROUND);
523 evas_vg_shape_stroke_color_set(fg, 70, 70, 0, 70); 523 evas_vg_shape_stroke_color_set(fg, 70, 70, 0, 70);
524
525 Efl_VG *tst = eo_add(EFL_VG_SHAPE_CLASS, root);
526 evas_vg_shape_shape_append_rect(tst, 50, 25, 200, 200, 3, 5);
527 evas_vg_node_color_set(tst, 0, 0, 200, 200);
528 evas_vg_shape_stroke_width_set(tst, 2);
529 evas_vg_shape_stroke_color_set(tst, 255, 0, 0, 255);
530
531 Efl_VG *vc = eo_add(EFL_VG_SHAPE_CLASS, root);
532 evas_vg_shape_shape_append_circle(vc, 100, 100, 23);
533 evas_vg_node_color_set(vc, 0, 200, 0, 255);
534 evas_vg_shape_stroke_width_set(vc, 4);
535 evas_vg_shape_stroke_color_set(vc, 255, 0, 0, 255);
524} 536}
525 537
526int 538int