Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE WindowHandle::
18WindowHandle(OSHandle *os_handle) : _os_handle(os_handle) {
19}
20
21/**
22 *
23 */
24INLINE WindowHandle::
25WindowHandle(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 */
33get_os_handle() const {
34 return _os_handle;
35}
36
37/**
38 * Changes the OS-specific handle stored internally to the WindowHandle
39 * wrapper.
40 */
41INLINE void WindowHandle::
42set_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 */
52INLINE WindowHandle::OSHandle::
53OSHandle() {
54}
This object represents a window on the desktop, not necessarily a Panda window.
set_os_handle
Changes the OS-specific handle stored internally to the WindowHandle wrapper.
get_os_handle
Returns the OS-specific handle stored internally to the WindowHandle wrapper.