-
Notifications
You must be signed in to change notification settings - Fork 4
/
BlackWindow.h
41 lines (37 loc) · 963 Bytes
/
BlackWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// BlackWindow.h
// Isolator
//
// Created by Ben Willmore on 09/02/2007.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "BlackView.h"
#import "CGSPrivate.h"
#import <QuartzCore/CIFilter.h>
#import <QuartzCore/CIVector.h>
#import <Cocoa/Cocoa.h>
#include <ApplicationServices/ApplicationServices.h>
#import <AppKit/NSWindow.h>
@interface BlackWindow : NSWindow
{
float opacity;
bool clickThrough;
NSTimer* fadeTimer;
BlackView* blackView;
float totalElapsed;
float totalFadeTime;
float fadeStep;
NSTimeInterval fadeRepeatTime;
NSTimeInterval timeOfLastStep;
CGSCIFilterID filter;
}
- (id)initWithFrame:(NSRect)frame;
- (void)enableBlurAsAppropriate:(float)fraction;
- (void) setLevelAsAppropriate:(BOOL)flipMode;
- (void) setOpacity;
- (void) setClickThrough;
- (void) setColor;
- (void) setFlagsAppropriately;
- (void) _setFlags:(CGSWindowTag)toSet clear:(CGSWindowTag)toClear;
- (void) fadeInOrOut:(BOOL)inOrOut;
@end