Panda3D
cocoaPandaWindow.h
1 // Filename: cocoaPandaWindow.h
2 // Created by: rdb (25May12)
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 
18 
19 @interface CocoaPandaWindow : NSWindow {
20  @private
21  CocoaGraphicsWindow *_graphicsWindow;
22 }
23 
24 - (id) initWithContentRect:(NSRect)rect styleMask:(NSUInteger)styleMask screen:(NSScreen*)screen window:(CocoaGraphicsWindow*)window;
25 - (BOOL) canBecomeKeyWindow;
26 - (BOOL) canBecomeMainWindow;
27 - (BOOL) acceptsFirstResponder;
28 - (BOOL) becomeFirstResponder;
29 - (BOOL) resignFirstResponder;
30 
31 @end
An interface to the Cocoa system for managing OpenGL windows under Mac OS X.