summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-10-19 13:50:35 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-19 13:50:35 +0100
commit58dd0effacdac9dfda85987724746ed2fe15b480 (patch)
tree9830c5492f042f8ba244adddb4fadb23f5d9fdf6
parent4246c60c0edeae85b14da58ed4545eb31692899c (diff)
add fade in/out effects
-rw-r--r--src/desksanity.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/desksanity.c b/src/desksanity.c
index dc5b328..d41e7fa 100644
--- a/src/desksanity.c
+++ b/src/desksanity.c
@@ -8,6 +8,8 @@ static Evas_Object *dm_hide = NULL;
8typedef enum 8typedef enum
9{ 9{
10 DS_PAN, 10 DS_PAN,
11 DS_FADE_OUT,
12 DS_FADE_IN,
11 DS_BATMAN, 13 DS_BATMAN,
12 DS_ZOOM_IN, 14 DS_ZOOM_IN,
13 DS_ZOOM_OUT, 15 DS_ZOOM_OUT,
@@ -144,6 +146,15 @@ _ds_show(E_Desk *desk, int dx, int dy)
144 efx_move(dm_hide, EFX_EFFECT_SPEED_DECELERATE, EFX_POINT(hx, hy), 0.2, NULL, NULL); 146 efx_move(dm_hide, EFX_EFFECT_SPEED_DECELERATE, EFX_POINT(hx, hy), 0.2, NULL, NULL);
145 efx_move(dm_show, EFX_EFFECT_SPEED_DECELERATE, EFX_POINT(desk->zone->x, desk->zone->y), 0.2, _ds_end, NULL); 147 efx_move(dm_show, EFX_EFFECT_SPEED_DECELERATE, EFX_POINT(desk->zone->x, desk->zone->y), 0.2, _ds_end, NULL);
146 break; 148 break;
149 case DS_FADE_OUT:
150 E_FREE_FUNC(dm_show, evas_object_del);
151 efx_fade(dm_hide, EFX_EFFECT_SPEED_LINEAR, EFX_COLOR(0, 0, 0), 0, 0.25, _ds_end, NULL);
152 break;
153 case DS_FADE_IN:
154 E_FREE_FUNC(dm_hide, evas_object_del);
155 efx_fade(dm_show, EFX_EFFECT_SPEED_LINEAR, EFX_COLOR(0, 0, 0), 0, 0.0, NULL, NULL);
156 efx_fade(dm_show, EFX_EFFECT_SPEED_LINEAR, EFX_COLOR(255, 255, 255), 255, 0.25, _ds_end, NULL);
157 break;
147 case DS_BATMAN: 158 case DS_BATMAN:
148 E_FREE_FUNC(dm_show, evas_object_del); 159 E_FREE_FUNC(dm_show, evas_object_del);
149 evas_object_raise(dm_hide); 160 evas_object_raise(dm_hide);