Panda3D
windowHandle.I
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 windowHandle.I
10  * @author drose
11  * @date 2009-09-30
12  */
13 
14 /**
15  *
16  */
17 INLINE WindowHandle::
18 WindowHandle(OSHandle *os_handle) : _os_handle(os_handle) {
19 }
20 
21 /**
22  *
23  */
24 INLINE WindowHandle::
25 WindowHandle(const WindowHandle &copy) : _os_handle(copy._os_handle) {
26 }
27 
28 /**
29  * Returns the OS-specific handle stored internally to the WindowHandle
30  * wrapper.
31  */
32 INLINE WindowHandle::OSHandle *WindowHandle::
33 get_os_handle() const {
34  return _os_handle;
35 }
36 
37 /**
38  * Changes the OS-specific handle stored internally to the WindowHandle
39  * wrapper.
40  */
41 INLINE void WindowHandle::
42 set_os_handle(OSHandle *os_handle) {
43  _os_handle = os_handle;
44 }
45 
46 
47 /**
48  * The base class of OSHandle doesn't have a usable constructor. Always
49  * construct an instance of some specialized type, that stores the appropriate
50  * kind of window handle for each OS.
51  */
52 INLINE WindowHandle::OSHandle::
53 OSHandle() {
54 }
This object represents a window on the desktop, not necessarily a Panda window.
Definition: windowHandle.h:34
set_os_handle
Changes the OS-specific handle stored internally to the WindowHandle wrapper.
Definition: windowHandle.h:44