Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE NativeWindowHandle::IntHandle::
18IntHandle(size_t handle) : _handle(handle) {
19}
20
21/**
22 *
23 */
24INLINE size_t NativeWindowHandle::IntHandle::
25get_handle() const {
26 return _handle;
27}
28
29/**
30 *
31 */
32INLINE NativeWindowHandle::SubprocessHandle::
33SubprocessHandle(const Filename &filename) : _filename(filename) {
34}
35
36/**
37 *
38 */
39INLINE const Filename &NativeWindowHandle::SubprocessHandle::
40get_filename() const {
41 return _filename;
42}
43
44#if defined(HAVE_X11) && !defined(CPPPARSER)
45/**
46 *
47 */
48INLINE NativeWindowHandle::X11Handle::
49X11Handle(X11_Window handle) : _handle(handle) {
50}
51#endif // HAVE_X11
52
53#if defined(HAVE_X11) && !defined(CPPPARSER)
54/**
55 *
56 */
57INLINE X11_Window NativeWindowHandle::X11Handle::
58get_handle() const {
59 return _handle;
60}
61#endif // HAVE_X11
62
63#if defined(WIN32) && !defined(CPPPARSER)
64/**
65 *
66 */
67INLINE NativeWindowHandle::WinHandle::
68WinHandle(HWND handle) : _handle(handle) {
69}
70#endif // WIN32
71
72#if defined(WIN32) && !defined(CPPPARSER)
73/**
74 *
75 */
76INLINE HWND NativeWindowHandle::WinHandle::
77get_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:44