/
GLUTWindow.h
59 lines (41 loc) · 1.39 KB
/
GLUTWindow.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
/* Copyright (c) Dietmar Planitzer, 1998, 2002 - 2003 */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
#import "macx_glut.h"
@class GLUTView;
@interface GLUTWindow : NSWindow
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
<NSWindowDelegate>
#endif
{
@private
GLUTWindow * _nextFullscreenWindow; /* weak ref */
NSString * _imagePath;
NSMutableSet * _viewStorage;
int _enabledMouseMovedEvents;
BOOL _isFullscreen;
}
+ (id)windowByMorphingWindow: (GLUTWindow *)aWindow operation: (int)op arguments: (NSDictionary *)dict;
- (id)initWithContentRect: (NSRect)rect
pixelFormat: (NSOpenGLPixelFormat *)pixelFormat
windowID: (int)winid
gameMode: (BOOL)gameMode
fullscreenStereo: (BOOL)pfStereo
treatAsSingle: (BOOL)treatAsSingle;
- (void)enableMouseMovedEvents;
- (void)disableMouseMovedEvents;
- (BOOL)isFullscreen;
- (BOOL)isAffectedByFullscreenWindow;
- (IBAction)save: (id)sender;
- (IBAction)saveAs: (id)sender;
- (IBAction)copy: (id)sender;
- (NSData *)contentsAsDataOfType: (NSString *)pboardType;
@end
// Window morphing operations
enum {
kGLUTMorphOperationFullscreen,
kGLUTMorphOperationRegular
};
// Windoww morphing operands
extern NSString *GLUTWindowFrame; // kGLUTMorphOperationRegular