aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_transit.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2011-05-28 03:39:14 +0000
committerChunEon Park <hermet@hermet.pe.kr>2011-05-28 03:39:14 +0000
commitf7a9123e4c1406ada8a0e29e6eb639ad760e520a (patch)
tree96f9811a8972b818c3bbe74619ce7add11ad652e /legacy/elementary/src/bin/test_transit.c
parentelementary: add external elm_index (diff)
downloadefl-f7a9123e4c1406ada8a0e29e6eb639ad760e520a.tar.gz
elementary/transit - added one more sample
SVN revision: 59764
Diffstat (limited to 'legacy/elementary/src/bin/test_transit.c')
-rw-r--r--legacy/elementary/src/bin/test_transit.c77
1 files changed, 77 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_transit.c b/legacy/elementary/src/bin/test_transit.c
index 406b602f55..6e8278b666 100644
--- a/legacy/elementary/src/bin/test_transit.c
+++ b/legacy/elementary/src/bin/test_transit.c
@@ -521,4 +521,81 @@ test_transit8(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
elm_transit_go(trans);
}
+/* Chain Transit Effect */
+void
+test_transit9(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+{
+ Evas_Object *win, *bg, *bt, *bt2, *bt3, *bt4;
+ Elm_Transit *trans, *trans2, *trans3, *trans4;
+ Elm_Transit_Effect *effect_context;
+
+ win = elm_win_add(NULL, "transit9", ELM_WIN_BASIC);
+ elm_win_title_set(win, "Transit 9");
+ elm_win_autodel_set(win, EINA_TRUE);
+ evas_object_resize(win, 400, 400);
+ evas_object_show(win);
+
+ bg = elm_bg_add(win);
+ elm_win_resize_object_add(win, bg);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_show(bg);
+
+ bt = elm_button_add(win);
+ elm_button_label_set(bt, "Chain 1");
+ evas_object_resize(bt, 100, 100);
+ evas_object_move(bt, 0, 0);
+ evas_object_show(bt);
+
+ bt2 = elm_button_add(win);
+ elm_button_label_set(bt2, "Chain 2");
+ evas_object_resize(bt2, 100, 100);
+ evas_object_move(bt2, 300, 0);
+ evas_object_show(bt2);
+
+ bt3 = elm_button_add(win);
+ elm_button_label_set(bt3, "Chain 3");
+ evas_object_resize(bt3, 100, 100);
+ evas_object_move(bt3, 300, 300);
+ evas_object_show(bt3);
+
+ bt4 = elm_button_add(win);
+ elm_button_label_set(bt4, "Chain 4");
+ evas_object_resize(bt4, 100, 100);
+ evas_object_move(bt4, 0, 300);
+ evas_object_show(bt4);
+
+ trans = elm_transit_add();
+ elm_transit_tween_mode_set(trans, ELM_TRANSIT_TWEEN_MODE_ACCELERATE);
+ elm_transit_effect_translation_add(trans, 0, 0, 300, 0);
+ elm_transit_object_add(trans, bt);
+ elm_transit_duration_set(trans, 1);
+ elm_transit_objects_final_state_keep_set(trans, EINA_TRUE);
+ elm_transit_go(trans);
+
+ trans2 = elm_transit_add();
+ elm_transit_tween_mode_set(trans2, ELM_TRANSIT_TWEEN_MODE_ACCELERATE);
+ elm_transit_effect_translation_add(trans2, 0, 0, 0, 300);
+ elm_transit_object_add(trans2, bt2);
+ elm_transit_duration_set(trans2, 1);
+ elm_transit_objects_final_state_keep_set(trans2, EINA_TRUE);
+ elm_transit_chain_transit_add(trans, trans2);
+
+ trans3 = elm_transit_add();
+ elm_transit_tween_mode_set(trans3, ELM_TRANSIT_TWEEN_MODE_ACCELERATE);
+ elm_transit_effect_translation_add(trans3, 0, 0, -300, 0);
+ elm_transit_object_add(trans3, bt3);
+ elm_transit_duration_set(trans3, 1);
+ elm_transit_objects_final_state_keep_set(trans3, EINA_TRUE);
+ elm_transit_chain_transit_add(trans2, trans3);
+
+ trans4 = elm_transit_add();
+ elm_transit_tween_mode_set(trans4, ELM_TRANSIT_TWEEN_MODE_ACCELERATE);
+ elm_transit_effect_translation_add(trans4, 0, 0, 0, -300);
+ elm_transit_object_add(trans4, bt4);
+ elm_transit_duration_set(trans4, 1);
+ elm_transit_objects_final_state_keep_set(trans4, EINA_TRUE);
+ elm_transit_chain_transit_add(trans3, trans4);
+}
+
+
#endif