Panda3D
 All Classes Functions Variables Enumerations
nativeWindowHandle.I
1 // Filename: nativeWindowHandle.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: NativeWindowHandle::IntHandle::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE NativeWindowHandle::IntHandle::
22 IntHandle(size_t handle) : _handle(handle) {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: NativeWindowHandle::IntHandle::get_handle
27 // Access: Public
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE size_t NativeWindowHandle::IntHandle::
31 get_handle() const {
32  return _handle;
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: NativeWindowHandle::SubprocessHandle::Constructor
37 // Access: Public
38 // Description:
39 ////////////////////////////////////////////////////////////////////
40 INLINE NativeWindowHandle::SubprocessHandle::
41 SubprocessHandle(const Filename &filename) : _filename(filename) {
42 }
43 
44 ////////////////////////////////////////////////////////////////////
45 // Function: NativeWindowHandle::SubprocessHandle::get_filename
46 // Access: Public
47 // Description:
48 ////////////////////////////////////////////////////////////////////
49 INLINE const Filename &NativeWindowHandle::SubprocessHandle::
50 get_filename() const {
51  return _filename;
52 }
53 
54 #if defined(HAVE_X11) && !defined(CPPPARSER)
55 ////////////////////////////////////////////////////////////////////
56 // Function: NativeWindowHandle::X11Handle::Constructor
57 // Access: Public
58 // Description:
59 ////////////////////////////////////////////////////////////////////
60 INLINE NativeWindowHandle::X11Handle::
61 X11Handle(X11_Window handle) : _handle(handle) {
62 }
63 #endif // HAVE_X11
64 
65 #if defined(HAVE_X11) && !defined(CPPPARSER)
66 ////////////////////////////////////////////////////////////////////
67 // Function: NativeWindowHandle::X11Handle::get_handle
68 // Access: Public
69 // Description:
70 ////////////////////////////////////////////////////////////////////
71 INLINE X11_Window NativeWindowHandle::X11Handle::
72 get_handle() const {
73  return _handle;
74 }
75 #endif // HAVE_X11
76 
77 #if defined(WIN32) && !defined(CPPPARSER)
78 ////////////////////////////////////////////////////////////////////
79 // Function: NativeWindowHandle::WinHandle::Constructor
80 // Access: Public
81 // Description:
82 ////////////////////////////////////////////////////////////////////
83 INLINE NativeWindowHandle::WinHandle::
84 WinHandle(HWND handle) : _handle(handle) {
85 }
86 #endif // WIN32
87 
88 #if defined(WIN32) && !defined(CPPPARSER)
89 ////////////////////////////////////////////////////////////////////
90 // Function: NativeWindowHandle::WinHandle::get_handle
91 // Access: Public
92 // Description:
93 ////////////////////////////////////////////////////////////////////
94 INLINE HWND NativeWindowHandle::WinHandle::
95 get_handle() const {
96  return _handle;
97 }
98 #endif // WIN32
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44