Panda3D
nativeWindowHandle.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 nativeWindowHandle.I
10  * @author drose
11  * @date 2009-09-30
12  */
13 
14 /**
15  *
16  */
17 INLINE NativeWindowHandle::IntHandle::
18 IntHandle(size_t handle) : _handle(handle) {
19 }
20 
21 /**
22  *
23  */
24 INLINE size_t NativeWindowHandle::IntHandle::
25 get_handle() const {
26  return _handle;
27 }
28 
29 /**
30  *
31  */
32 INLINE NativeWindowHandle::SubprocessHandle::
33 SubprocessHandle(const Filename &filename) : _filename(filename) {
34 }
35 
36 /**
37  *
38  */
39 INLINE const Filename &NativeWindowHandle::SubprocessHandle::
40 get_filename() const {
41  return _filename;
42 }
43 
44 #if defined(HAVE_X11) && !defined(CPPPARSER)
45 /**
46  *
47  */
48 INLINE NativeWindowHandle::X11Handle::
49 X11Handle(X11_Window handle) : _handle(handle) {
50 }
51 #endif // HAVE_X11
52 
53 #if defined(HAVE_X11) && !defined(CPPPARSER)
54 /**
55  *
56  */
57 INLINE X11_Window NativeWindowHandle::X11Handle::
58 get_handle() const {
59  return _handle;
60 }
61 #endif // HAVE_X11
62 
63 #if defined(WIN32) && !defined(CPPPARSER)
64 /**
65  *
66  */
67 INLINE NativeWindowHandle::WinHandle::
68 WinHandle(HWND handle) : _handle(handle) {
69 }
70 #endif // WIN32
71 
72 #if defined(WIN32) && !defined(CPPPARSER)
73 /**
74  *
75  */
76 INLINE HWND NativeWindowHandle::WinHandle::
77 get_handle() const {
78  return _handle;
79 }
80 #endif // WIN32
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39