1 #import "ITCutWindowEffect.h"
2 #import "ITTransientStatusWindow.h"
3 #import "ITCoreGraphicsHacks.h"
5 @implementation ITCutWindowEffect
8 + (NSString *)effectName
13 + (NSDictionary *)supportedPositions
15 return [NSDictionary dictionaryWithObjectsAndKeys:
16 [NSDictionary dictionaryWithObjectsAndKeys:
17 [NSNumber numberWithBool:YES], @"Left",
18 [NSNumber numberWithBool:YES], @"Center",
19 [NSNumber numberWithBool:YES], @"Right", nil] , @"Top" ,
20 [NSDictionary dictionaryWithObjectsAndKeys:
21 [NSNumber numberWithBool:YES], @"Left",
22 [NSNumber numberWithBool:YES], @"Center",
23 [NSNumber numberWithBool:YES], @"Right", nil] , @"Middle" ,
24 [NSDictionary dictionaryWithObjectsAndKeys:
25 [NSNumber numberWithBool:YES], @"Left",
26 [NSNumber numberWithBool:YES], @"Center",
27 [NSNumber numberWithBool:YES], @"Right", nil] , @"Bottom" , nil];
30 + (unsigned int)listOrder
36 /*************************************************************************/
38 #pragma mark APPEAR METHODS
39 /*************************************************************************/
43 [_window orderFront:self];
44 [self setWindowVisibility:ITWindowVisibleState];
53 /*************************************************************************/
55 #pragma mark VANISH METHODS
56 /*************************************************************************/
60 [_window orderOut:self];
61 [self setWindowVisibility:ITWindowHiddenState];