summaryrefslogtreecommitdiff
path: root/src/examples
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
commit69b64e948a2a6aa90200767117b0c00aac8ecfae (patch)
tree3bc324ca8ed2c75fa60af0f62444b114008266f5 /src/examples
parent983e80b2adec71d1b4f1c39e5fa832de41d689e6 (diff)
evas: check rect and circle rendering with SVG specification in Evas_VG example.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/evas/evas-vg-simple.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/examples/evas/evas-vg-simple.c b/src/examples/evas/evas-vg-simple.c
index 168bb42..a192210 100644
--- a/src/examples/evas/evas-vg-simple.c
+++ b/src/examples/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