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