-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWLFullScreenController.h
42 lines (36 loc) · 985 Bytes
/
WLFullScreenController.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
//
// LLFullScreenController.h
// Welly
//
// Created by gtCarrera @ 9# on 08-8-11.
// Copyright 2008. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@protocol WLFullScreenProcessor;
@interface WLFullScreenController : NSObject {
// The views necessary for full screen and reset
NSView *_targetView;
NSView *_superView;
// NSWindows needed...
NSWindow *_fullScreenWindow;
NSWindow *_originalWindow;
// State variable
BOOL _isInFullScreen;
CGFloat _screenRatio;
}
@property (readonly) BOOL isInFullScreen;
// Init functions
- (id)initWithProcessor:(NSObject <WLFullScreenProcessor>*)pro
targetView:(NSView*)tview
superView:(NSView*)sview
originalWindow:(NSWindow*)owin;
- (id)initWithTargetView:(NSView*)tview
superView:(NSView*)sview
originalWindow:(NSWindow*)owin;
// Handle functions
- (void)handleFullScreen;
- (void)releaseFullScreen;
// Preprocess functions for TerminalView
- (void)processBeforeEnter;
- (void)processBeforeExit;
@end