aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_transit.c
diff options
context:
space:
mode:
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-11-10 18:05:45 +0000
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-11-10 18:05:45 +0000
commitbd9873ef22f3a4574052151dda3ded65c8e0dc16 (patch)
treefacc51f3537282c3a11fa3e918e7a9f17a8977f9 /legacy/elementary/src/bin/test_transit.c
parentFix elm_transit_{auto_reverse_set, repeat_times_set} (diff)
downloadefl-bd9873ef22f3a4574052151dda3ded65c8e0dc16.tar.gz
Elm_Transit: Following the style of efl
ELM_FX is now ELM_TRANSIT_EFFECT Curve style like in edje Changing names: CURVE_IN -> TWEEN_DECELERATE CURVE_OUT -> TWEEN_ACCELERATE CURVE_IN_OUT -> TWEEN_SINUSOIDAL Curve_Style -> Tween_Mode Now, the calculation is done like in edje. Changing function of type function() to function(void) Elm_Transit: Changing calloc(1, to ELM_NEW Author: Helen Fornazier <helen.fornazier@profusion.mobi> SVN revision: 54417
Diffstat (limited to 'legacy/elementary/src/bin/test_transit.c')
-rw-r--r--legacy/elementary/src/bin/test_transit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/legacy/elementary/src/bin/test_transit.c b/legacy/elementary/src/bin/test_transit.c
index eaadef6691..e3e2de58e1 100644
--- a/legacy/elementary/src/bin/test_transit.c
+++ b/legacy/elementary/src/bin/test_transit.c
@@ -165,8 +165,8 @@ test_transit(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
elm_transit_object_add(trans, bt);
/* Wipe Effect */
- effect_context = elm_transit_effect_wipe_context_new(ELM_FX_WIPE_TYPE_HIDE,
- ELM_FX_WIPE_DIR_RIGHT);
+ effect_context = elm_transit_effect_wipe_context_new(ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE,
+ ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT);
elm_transit_effect_add(trans,
elm_transit_effect_wipe_op, effect_context,
elm_transit_effect_wipe_context_free);
@@ -246,7 +246,7 @@ test_transit3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
trans = elm_transit_add(5.0);
elm_transit_object_add(trans, bt);
elm_transit_object_add(trans, bt2);
- effect_context = elm_transit_effect_flip_context_new(ELM_FX_FLIP_AXIS_X,
+ effect_context = elm_transit_effect_flip_context_new(ELM_TRANSIT_EFFECT_FLIP_AXIS_X,
EINA_TRUE);
elm_transit_effect_add(trans,
elm_transit_effect_flip_op, effect_context,
@@ -425,7 +425,7 @@ test_transit7(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
/* Adding Transit */
effect_context = \
- elm_transit_effect_resizable_flip_context_new(ELM_FX_FLIP_AXIS_X,
+ elm_transit_effect_resizable_flip_context_new(ELM_TRANSIT_EFFECT_FLIP_AXIS_X,
EINA_TRUE);
trans = elm_transit_add(5.0);
elm_transit_object_add(trans, bt2);
@@ -465,6 +465,7 @@ test_transit8(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
/* Adding Transit */
trans = elm_transit_add(5.0);
elm_transit_auto_reverse_set(trans, EINA_TRUE);
+ elm_transit_tween_mode_set(trans, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
elm_transit_repeat_times_set(trans, -1);
effect_context = _custom_context_new(100, 100, 250, 250);
elm_transit_object_add(trans, bt);