-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
TPBezelWindow.m
22 lines (18 loc) · 714 Bytes
/
TPBezelWindow.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#import "TPBezelWindow.h"
@implementation TPBezelWindow
#if LEGACY_BUILD
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
#else
- (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
#endif
{
self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
[self setBackgroundColor:[NSColor clearColor]];
[self setAlphaValue:1.0];
[self setOpaque:NO];
[self setHasShadow:NO];
[self setLevel:kCGOverlayWindowLevel];
[self setIgnoresMouseEvents:YES];
return self;
}
@end