forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFakeWindow.h
More file actions
48 lines (40 loc) · 1.24 KB
/
FakeWindow.h
File metadata and controls
48 lines (40 loc) · 1.24 KB
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
//
// FakeWindow.h
// iTerm
//
// Created by George Nachman on 10/18/10.
// Copyright 2010 George Nachman. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PseudoTerminal.h"
#import "WindowControllerInterface.h"
@interface FakeWindow : NSObject <WindowControllerInterface>
{
// FakeWindow always has exactly one session.
PTYSession* session;
// Saved state from old window.
BOOL isFullScreen;
BOOL isLionFullScreen;
BOOL isMiniaturized;
NSRect frame;
NSScreen* screen;
NSWindowController<iTermWindowController> * realWindow;
// Changes the session has initiated that will be delayed and performed
// in -[rejoin:].
BOOL hasPendingBlurChange;
double pendingBlurRadius;
BOOL pendingBlur;
BOOL hasPendingClose;
BOOL hasPendingFitWindowToTab;
BOOL hasPendingSizeChange;
int pendingW;
int pendingH;
BOOL hasPendingSetWindowTitle;
BOOL hasPendingResetTempTitle;
BOOL scrollbarShouldBeVisible;
}
- (id)initFromRealWindow:(NSWindowController<iTermWindowController> *)aTerm
session:(PTYSession*)aSession;
// PseudoTerminal should call this after adding the session to its tab view.
- (void)rejoin:(NSWindowController<iTermWindowController> *)aTerm;
@end