summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-10-19 14:40:50 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-19 14:40:50 +0100
commita51b6b2c938c161cf6d52f830448b57432af9e25 (patch)
tree5d0a71b68b0a70ecd5d1a3850c4ce120b1069c2e
parentd2949f7570a046b13a7ed91aa3cafeacbde7ffe6 (diff)
add blink+viewport
-rw-r--r--src/desksanity.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/desksanity.c b/src/desksanity.c
index 492f02a..ae181f3 100644
--- a/src/desksanity.c
+++ b/src/desksanity.c
@@ -19,6 +19,8 @@ typedef enum
19 DS_SLIDE_SPLIT, 19 DS_SLIDE_SPLIT,
20 DS_QUAD_SPLIT, 20 DS_QUAD_SPLIT,
21 DS_QUAD_MERGE, 21 DS_QUAD_MERGE,
22 DS_BLINK,
23 DS_VIEWPORT,
22 DS_LAST, 24 DS_LAST,
23} DS_Type; 25} DS_Type;
24 26
@@ -330,6 +332,35 @@ _ds_show(E_Desk *desk, int dx, int dy)
330 } 332 }
331 } 333 }
332 break; 334 break;
335 case DS_BLINK:
336 {
337 Evas_Object *clip;
338
339 E_FREE_FUNC(dm_show, evas_object_del);
340 clip = evas_object_rectangle_add(e_comp_get(desk)->evas);
341 evas_object_geometry_set(clip, desk->zone->x, desk->zone->y, desk->zone->w, desk->zone->h);
342 evas_object_clip_set(dm_hide, clip);
343 e_comp_object_util_del_list_append(dm_hide, clip);
344 evas_object_show(clip);
345 efx_resize(clip, EFX_EFFECT_SPEED_DECELERATE,
346 EFX_POINT(desk->zone->x, desk->zone->y + (desk->zone->h / 2)),
347 desk->zone->w, 1, 0.45, _ds_end, NULL);
348 }
349 case DS_VIEWPORT:
350 {
351 Evas_Object *clip;
352
353 E_FREE_FUNC(dm_show, evas_object_del);
354 clip = evas_object_rectangle_add(e_comp_get(desk)->evas);
355 evas_object_geometry_set(clip, desk->zone->x, desk->zone->y, desk->zone->w, desk->zone->h);
356 evas_object_clip_set(dm_hide, clip);
357 e_comp_object_util_del_list_append(dm_hide, clip);
358 evas_object_show(clip);
359 efx_resize(clip, EFX_EFFECT_SPEED_DECELERATE,
360 EFX_POINT(desk->zone->x + (desk->zone->w / 2), desk->zone->y + (desk->zone->h / 2)),
361 1, 1, 0.6, _ds_end, NULL);
362 }
363 break;
333 default: break; 364 default: break;
334 } 365 }
335} 366}