Panda3D
 All Classes Functions Variables Enumerations
windowHandle.I
1 // Filename: windowHandle.I
2 // Created by: drose (30Sep09)
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: WindowHandle::Constructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE WindowHandle::
22 WindowHandle(OSHandle *os_handle) : _os_handle(os_handle) {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: WindowHandle::Copy Constructor
27 // Access: Published
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE WindowHandle::
31 WindowHandle(const WindowHandle &copy) : _os_handle(copy._os_handle) {
32 }
33 
34 ////////////////////////////////////////////////////////////////////
35 // Function: WindowHandle::get_os_handle
36 // Access: Published
37 // Description: Returns the OS-specific handle stored internally to
38 // the WindowHandle wrapper.
39 ////////////////////////////////////////////////////////////////////
41 get_os_handle() const {
42  return _os_handle;
43 }
44 
45 ////////////////////////////////////////////////////////////////////
46 // Function: WindowHandle::set_os_handle
47 // Access: Published
48 // Description: Changes the OS-specific handle stored internally to
49 // the WindowHandle wrapper.
50 ////////////////////////////////////////////////////////////////////
51 INLINE void WindowHandle::
52 set_os_handle(OSHandle *os_handle) {
53  _os_handle = os_handle;
54 }
55 
56 
57 ////////////////////////////////////////////////////////////////////
58 // Function: WindowHandle::OSHandle::Constructor
59 // Access: Protected
60 // Description: The base class of OSHandle doesn't have a usable
61 // constructor. Always construct an instance of some
62 // specialized type, that stores the appropriate kind of
63 // window handle for each OS.
64 ////////////////////////////////////////////////////////////////////
65 INLINE WindowHandle::OSHandle::
66 OSHandle() {
67 }
This object represents a window on the desktop, not necessarily a Panda window.
Definition: windowHandle.h:40
void set_os_handle(OSHandle *os_handle)
Changes the OS-specific handle stored internally to the WindowHandle wrapper.
Definition: windowHandle.I:52
OSHandle * get_os_handle() const
Returns the OS-specific handle stored internally to the WindowHandle wrapper.
Definition: windowHandle.I:41