Panda3D
cocoaGraphicsWindow.I
1 // Filename: cocoaGraphicsWindow.I
2 // Created by: rdb (14May12)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: CocoaGraphicsWindow::get_nswindow
18 // Access: Public
19 // Description: Returns a pointer to the underlying NSWindow.
20 ////////////////////////////////////////////////////////////////////
21 INLINE NSWindow *CocoaGraphicsWindow::
22 get_nswindow() const {
23  return _window;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: CocoaGraphicsWindow::get_nsview
28 // Access: Public
29 // Description: Returns a pointer to the underlying NSView.
30 ////////////////////////////////////////////////////////////////////
31 INLINE NSView *CocoaGraphicsWindow::
32 get_nsview() const {
33  return _view;
34 }
NSView * get_nsview() const
Returns a pointer to the underlying NSView.
NSWindow * get_nswindow() const
Returns a pointer to the underlying NSWindow.