EINA_LIST_FOREACH(objs, elist, obj)
evas_object_resize(obj, w, h);
-
}
static Elm_Transit_Effect *
elm_transit_effect_translation_add(trans, -70.0, -150.0, 70.0, 150.0);
/* Color Effect */
- elm_transit_effect_color_add(trans, 100, 255, 100, 255, 200, 50, 200, 50);
+ elm_transit_effect_color_add(trans, 100, 255, 100, 255, 50, 30, 50, 50);
/* Rotation Effect */
elm_transit_effect_rotation_add(trans, 0.0, 135.0);
}
static void
+_transit_del_cb(void *data, Elm_Transit *transit __UNUSED__)
+{
+ evas_object_freeze_events_set(data, EINA_FALSE);
+}
+
+static void
_transit_image_animation(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Eina_List *images = NULL;
images = eina_list_append(images, eina_stringshare_add(buf));
trans = elm_transit_add();
+ elm_transit_del_cb_set(trans, _transit_del_cb, obj);
elm_transit_object_add(trans, ic);
-
elm_transit_effect_image_animation_add(trans, images);
-
elm_transit_duration_set(trans, 5.0);
elm_transit_go(trans);
+
+ evas_object_freeze_events_set(obj, EINA_TRUE);
}
static void
bt = elm_button_add(win);
elm_object_text_set(bt, "ImageAnimation Effect");
- elm_button_icon_set(bt, ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_box_pack_end(bx, bt);
evas_object_show(bt);
evas_object_show(ic);
win = elm_win_add(NULL, "transit2", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 2");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 400, 400);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_resize(bt, 100, 50);
evas_object_smart_callback_add(bt, "clicked", _transit_resizing, NULL);
+ evas_object_resize(win, 400, 400);
evas_object_show(win);
}
win = elm_win_add(NULL, "transit3", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 3");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_move(bt2, 50, 50);
evas_object_resize(bt2, 200, 200);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_flip, bt2);
win = elm_win_add(NULL, "transit4", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 4");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_smart_callback_add(bt, "clicked", _transit_zoom, NULL);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
}
win = elm_win_add(NULL, "transit5", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 5");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_max_set(ic, 50, 50);
bt = elm_button_add(win);
- elm_button_icon_set(bt, ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_text_set(bt, "Before Button - Blend Effect");
evas_object_move(bt, 25, 125);
evas_object_resize(bt, 250, 50);
evas_object_size_hint_max_set(ic, 50, 50);
bt2 = elm_button_add(win);
- elm_button_icon_set(bt2, ic);
+ elm_object_part_content_set(bt2, "icon", ic);
elm_object_text_set(bt2, "After Button - Blend Effect");
evas_object_move(bt2, 25, 125);
evas_object_resize(bt2, 250, 50);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_blend, bt2);
win = elm_win_add(NULL, "transit6", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 6");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_max_set(ic, 50, 50);
bt = elm_button_add(win);
- elm_button_icon_set(bt, ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_text_set(bt, "Before Button - Fade Effect");
evas_object_move(bt, 25, 125);
evas_object_resize(bt, 250, 50);
evas_object_size_hint_max_set(ic, 50, 50);
bt2 = elm_button_add(win);
- elm_button_icon_set(bt2, ic);
+ elm_object_part_content_set(bt2, "icon", ic);
elm_object_text_set(bt2, "After Button - Fade Effect");
evas_object_move(bt2, 25, 125);
evas_object_resize(bt2, 250, 50);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_fade, bt2);
win = elm_win_add(NULL, "transit7", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 7");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 400, 400);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_move(bt2, 50, 100);
evas_object_resize(bt2, 300, 200);
+ evas_object_resize(win, 400, 400);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_resizable_flip, bt2);
win = elm_win_add(NULL, "transit8", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 8");
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);
elm_transit_duration_set(trans, 5.0);
elm_transit_repeat_times_set(trans, -1);
elm_transit_go(trans);
+
+ evas_object_resize(win, 400, 400);
+ evas_object_show(win);
}
/* Chain Transit Effect */
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);
elm_transit_duration_set(trans4, 1);
elm_transit_objects_final_state_keep_set(trans4, EINA_TRUE);
elm_transit_chain_transit_add(trans3, trans4);
-}
-
+ evas_object_resize(win, 400, 400);
+ evas_object_show(win);
+}
#endif