summaryrefslogtreecommitdiff
path: root/unsorted/evas/evas-vg-simple.c
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-04-04 16:30:36 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-04-04 16:31:09 -0700
commit23ca86a5c4786d1a4f88f327e5f0532bfbb4379d (patch)
treeb67e78727843f9006497a84cadd9719e08475a8f /unsorted/evas/evas-vg-simple.c
parent5100297b494e18de08552922a840a456ba75a328 (diff)
evas: parent need to exist to create a vg object.
Diffstat (limited to 'unsorted/evas/evas-vg-simple.c')
-rw-r--r--unsorted/evas/evas-vg-simple.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/unsorted/evas/evas-vg-simple.c b/unsorted/evas/evas-vg-simple.c
index 111fc3e..36b8baa 100644
--- a/unsorted/evas/evas-vg-simple.c
+++ b/unsorted/evas/evas-vg-simple.c
@@ -309,7 +309,7 @@ _1_basic_shape_test()
309 evas_object_event_callback_add(d.vg, EVAS_CALLBACK_KEY_DOWN, _basic_shape_key_handle, NULL); 309 evas_object_event_callback_add(d.vg, EVAS_CALLBACK_KEY_DOWN, _basic_shape_key_handle, NULL);
310 puts(basic_shape_menu); 310 puts(basic_shape_menu);
311 311
312 container = evas_vg_container_add(NULL); 312 container = evas_vg_container_add(d.vg);
313 313
314 // Line 314 // Line
315 shape = evas_vg_shape_add(container); 315 shape = evas_vg_shape_add(container);
@@ -471,25 +471,26 @@ _2_interpolation_test()
471 Efl_VG *shape; 471 Efl_VG *shape;
472 472
473 reset_test(); 473 reset_test();
474
474 evas_object_event_callback_add(d.vg, EVAS_CALLBACK_KEY_DOWN, _interpolation_key_handle, NULL); 475 evas_object_event_callback_add(d.vg, EVAS_CALLBACK_KEY_DOWN, _interpolation_key_handle, NULL);
475 animator = ecore_animator_timeline_add(1, _interpolation_keyframe, NULL); 476 animator = ecore_animator_timeline_add(1, _interpolation_keyframe, NULL);
476 puts(interpolation_menu); 477 puts(interpolation_menu);
477 478
478 shape = evas_vg_shape_add(NULL); 479 shape = evas_vg_shape_add(d.vg);
479 evas_vg_shape_append_svg_path(shape, morph1[0]); 480 evas_vg_shape_append_svg_path(shape, morph1[0]);
480 evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255); 481 evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255);
481 evas_vg_shape_stroke_width_set(shape, 5); 482 evas_vg_shape_stroke_width_set(shape, 5);
482 evas_vg_node_origin_set(shape, 100, 100); 483 evas_vg_node_origin_set(shape, 100, 100);
483 d.shape_list = eina_list_append(d.shape_list, shape); 484 d.shape_list = eina_list_append(d.shape_list, shape);
484 485
485 shape = evas_vg_shape_add(NULL); 486 shape = evas_vg_shape_add(d.vg);
486 evas_vg_shape_append_svg_path(shape, morph1[1]); 487 evas_vg_shape_append_svg_path(shape, morph1[1]);
487 evas_vg_shape_stroke_color_set(shape, 0, 0, 255, 255); 488 evas_vg_shape_stroke_color_set(shape, 0, 0, 255, 255);
488 evas_vg_shape_stroke_width_set(shape, 10); 489 evas_vg_shape_stroke_width_set(shape, 10);
489 evas_vg_node_origin_set(shape, 150, 150); 490 evas_vg_node_origin_set(shape, 150, 150);
490 d.shape_list = eina_list_append(d.shape_list, shape); 491 d.shape_list = eina_list_append(d.shape_list, shape);
491 492
492 shape = evas_vg_shape_add(NULL); 493 shape = evas_vg_shape_add(d.vg);
493 evas_vg_node_origin_set(shape, 150, 150); 494 evas_vg_node_origin_set(shape, 150, 150);
494 d.shape_list = eina_list_append(d.shape_list, shape); 495 d.shape_list = eina_list_append(d.shape_list, shape);
495 496
@@ -517,13 +518,14 @@ _main_menu()
517 // create the initial screen 518 // create the initial screen
518 d.vg = evas_object_vg_add(d.evas); 519 d.vg = evas_object_vg_add(d.evas);
519 evas_object_show(d.vg); 520 evas_object_show(d.vg);
520 shape = evas_vg_shape_add(NULL); 521
522 shape = evas_vg_shape_add(d.vg);
521 evas_vg_shape_append_svg_path(shape, batman); 523 evas_vg_shape_append_svg_path(shape, batman);
522 evas_vg_node_color_set(shape, 10, 0, 0, 10); 524 evas_vg_node_color_set(shape, 10, 0, 0, 10);
523 evas_vg_node_origin_set(shape, 0, 100); 525 evas_vg_node_origin_set(shape, 0, 100);
524 526
525 evas_object_vg_root_node_set(d.vg, shape); 527 evas_object_vg_root_node_set(d.vg, shape);
526 528
527 _canvas_resize_cb(d.ee); 529 _canvas_resize_cb(d.ee);
528 puts(main_menu); 530 puts(main_menu);
529} 531}