Added sliding in from all four corners both horizontal and vertical.
[ITKit.git] / ITCutWindowEffect.m
1 #import "ITCutWindowEffect.h"
2 #import "ITTransientStatusWindow.h"
3
4
5 @implementation ITCutWindowEffect
6
7
8 /*************************************************************************/
9 #pragma mark -
10 #pragma mark APPEAR METHODS
11 /*************************************************************************/
12
13 - (void)performAppear
14 {
15     [_window orderFront:self];
16     [self setWindowVisibility:ITWindowVisibleState];
17 }
18
19 - (void)cancelAppear
20 {
21     [self performVanish];
22 }
23
24
25 /*************************************************************************/
26 #pragma mark -
27 #pragma mark VANISH METHODS
28 /*************************************************************************/
29
30 - (void)performVanish
31 {
32     [_window orderOut:self];
33     [self setWindowVisibility:ITWindowHiddenState];
34 }
35
36 - (void)cancelVanish
37 {
38     [self performAppear];
39 }
40
41
42 @end