Tom.
I modified gesture layer test code to use elm_transit from elm_animator.
Could you please check it working fine?
------------------------------------
Let's run together for the best moment!
-Regards, Hermet-
-----Original Message-----
From: "Enlightenment SVN"<[email protected]>
To: [email protected]
Cc:
Sent: 11-07-13(수) 10:35:10
Subject: E SVN: hermet trunk/elementary/src/binLog:
elementary/test_gesture_layer - modified to use elm_transit.
but need to check it works fine.
Author: hermet
Date: 2011-07-12 18:35:10 -0700 (Tue, 12 Jul 2011)
New Revision: 61310
Trac: http://trac.enlightenment.org/e/changeset/61310
Modified:
trunk/elementary/src/bin/test_gesture_layer.c
Modified: trunk/elementary/src/bin/test_gesture_layer.c
===================================================================
--- trunk/elementary/src/bin/test_gesture_layer.c 2011-07-13 00:56:12 UTC (rev
61309)
+++ trunk/elementary/src/bin/test_gesture_layer.c 2011-07-13 01:35:10 UTC (rev
61310)
@@ -115,23 +115,22 @@
/* Zoom out animation */
static void
-zoom_out_animation_operation(void *_po, Elm_Animator *animator __UNUSED__,
- double frame)
+zoom_out_animation_operation(void *_po, Elm_Transit *transit __UNUSED__,
+ double progress)
{
Photo_Object *po = (Photo_Object *) _po;
- po->zoom = BASE_ZOOM + ((po->base_zoom - BASE_ZOOM) * (1.0 - frame));
+ po->zoom = BASE_ZOOM + ((po->base_zoom - BASE_ZOOM) * (1.0 - progress));
apply_changes(po);
}
static void
-zoom_out_animation_end(void *_po)
+zoom_out_animation_end(void *_po, Elm_Transit *transit)
{
Photo_Object *po = (Photo_Object *) _po;
po->base_zoom = po->zoom = BASE_ZOOM;
apply_changes(po);
- elm_animator_del(po->zoom_out);
po->zoom_out = NULL;
}
@@ -170,7 +169,7 @@
/* If there's an active animator, stop it */
if (po->zoom_out)
{
- elm_animator_del(po->zoom_out);
+ elm_transit_del(po->zoom_out);
po->zoom_out = NULL;
}
@@ -227,14 +226,10 @@
/* Apply the zoom out animator */
po->shadow_zoom = 1.3;
po->base_zoom = po->zoom;
- po->zoom_out = elm_animator_add(po->ic);
- elm_animator_duration_set(po->zoom_out, zoom_out_animation_duration);
- elm_animator_curve_style_set(po->zoom_out, ELM_ANIMATOR_CURVE_LINEAR);
- elm_animator_operation_callback_set(po->zoom_out,
- zoom_out_animation_operation, po);
- elm_animator_completion_callback_set(po->zoom_out,
- zoom_out_animation_end, po);
- elm_animator_animate(po->zoom_out);
+ po->zoom_out = elm_transit_add();
+ elm_transit_duration_set(po->zoom_out, zoom_out_animation_duration);
+ elm_transit_effect_add(po->zoom_out, zoom_out_animation_operation, po,
zoom_out_animation_end);
+ elm_transit_go(po->zoom_out);
return EVAS_EVENT_FLAG_NONE;
}
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
enlightenment-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel