[ease] [transitions] Add top, bottom, left, and right to zoom
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] [transitions] Add top, bottom, left, and right to zoom
- Date: Fri, 15 Oct 2010 19:33:31 +0000 (UTC)
commit 889144ef0da75ad4049dab70e0a90edbeaf89c1a
Author: Nate Stedman <natesm gmail com>
Date: Fri Oct 15 12:30:42 2010 -0400
[transitions] Add top, bottom, left, and right to zoom
ease-core/ease-transitions.vala | 4 ++++
ease/ease-slide-actor.vala | 12 ++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ease-core/ease-transitions.vala b/ease-core/ease-transitions.vala
index 78143d8..044190c 100644
--- a/ease-core/ease-transitions.vala
+++ b/ease-core/ease-transitions.vala
@@ -185,6 +185,10 @@ public enum Ease.Transition
case ZOOM:
return { TransitionVariant.CENTER,
+ TransitionVariant.TOP,
+ TransitionVariant.BOTTOM,
+ TransitionVariant.LEFT,
+ TransitionVariant.RIGHT,
TransitionVariant.TOP_LEFT,
TransitionVariant.TOP_RIGHT,
TransitionVariant.BOTTOM_LEFT,
diff --git a/ease/ease-slide-actor.vala b/ease/ease-slide-actor.vala
index a1c863e..fbcf088 100644
--- a/ease/ease-slide-actor.vala
+++ b/ease/ease-slide-actor.vala
@@ -1081,6 +1081,18 @@ internal class Ease.SlideActor : Clutter.Group
slide.width,
slide.height);
break;
+ case TransitionVariant.LEFT:
+ new_slide.set_scale_full(0, 0, 0, slide.height / 2);
+ break;
+ case TransitionVariant.RIGHT:
+ new_slide.set_scale_full(0, 0, slide.width, slide.height / 2);
+ break;
+ case TransitionVariant.TOP:
+ new_slide.set_scale_full(0, 0, slide.width / 2, 0);
+ break;
+ case TransitionVariant.BOTTOM:
+ new_slide.set_scale_full(0, 0, slide.width / 2, slide.height);
+ break;
}
animation_alpha = new Clutter.Alpha.full(animation_time,
Clutter.AnimationMode.EASE_OUT_SINE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]