forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PTYWindow.h
78 lines (64 loc) · 2.3 KB
/
PTYWindow.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* -*- mode:objc -*- */
/* $Id: PTYWindow.h,v 1.6 2008-09-07 21:54:44 yfabian Exp $ */
/* Incorporated into iTerm.app by Ujwal S. Setlur */
/*
** PTYWindow.h
**
** Copyright (c) 2002, 2003
**
** Author: Fabian, Ujwal S. Setlur
** Initial code by Kiichi Kusama
**
** Project: iTerm
**
** Description: NSWindow subclass. Implements transparency.
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#import <Cocoa/Cocoa.h>
@protocol PTYWindowDelegateProtocol
- (void) windowWillToggleToolbarVisibility: (id) sender;
- (void) windowDidToggleToolbarVisibility: (id) sender;
- (BOOL) lionFullScreen;
@end
// See http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=_setContentHasShadow
// Solves bug 299 (ghosting of contents with highly transparent windows--the window's
// views cast a shadow, and the window shadow gets messed up, which you can see through
// the transparent window.)
@interface NSWindow (NSWindowPrivate) // new Tiger private method
- (void) _setContentHasShadow:(BOOL) shadow;
@end
@interface PTYWindow : NSWindow
{
int blurFilter;
double blurRadius_;
BOOL layoutDone;
// True while in -[NSWindow toggleFullScreen:].
BOOL isTogglingLionFullScreen_;
NSObject *restoreState_;
}
- initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)aStyle
backing:(NSBackingStoreType)bufferingType
defer:(BOOL)flag;
- (void)toggleToolbarShown:(id)sender;
- (void)smartLayout;
- (void)setLayoutDone;
- (void)enableBlur:(double)radius;
- (void)disableBlur;
- (int)screenNumber;
- (BOOL)isTogglingLionFullScreen;
- (void)setRestoreState:(NSObject *)restoreState;
@end