Panda3D
Loading...
Searching...
No Matches
cocoaPandaWindowDelegate.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file cocoaPandaWindowDelegate.h
10 * @author rdb
11 * @date 2012-05-24
12 */
13
14#import <AppKit/NSWindow.h>
15
17
19
20#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
21@interface CocoaPandaWindowDelegate : NSObject<NSWindowDelegate> {
22#else
23@interface CocoaPandaWindowDelegate : NSObject {
24#endif
25 @private
26 CocoaGraphicsWindow *_graphicsWindow;
27}
28
29- (id) initWithGraphicsWindow:(CocoaGraphicsWindow*)window;
30- (void)windowDidMove:(NSNotification *)notification;
31- (void)windowDidResize:(NSNotification *)notification;
32- (void)windowDidMiniaturize:(NSNotification *)notification;
33- (void)windowDidDeminiaturize:(NSNotification *)notification;
34- (void)windowDidBecomeKey:(NSNotification *)notification;
35- (void)windowDidResignKey:(NSNotification *)notification;
36- (BOOL)windowShouldClose:(id)sender;
37- (void)windowWillClose:(id)sender;
38
39// TODO: handle fullscreen on Lion.
40
41@end
An interface to the Cocoa system for managing OpenGL windows under Mac OS X.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.