15 #include "nativeWindowHandle.h"
18 TypeHandle NativeWindowHandle::IntHandle::_type_handle;
19 TypeHandle NativeWindowHandle::SubprocessHandle::_type_handle;
21 #if defined(HAVE_X11) && !defined(CPPPARSER)
22 TypeHandle NativeWindowHandle::X11Handle::_type_handle;
24 #if defined(WIN32) && !defined(CPPPARSER)
25 TypeHandle NativeWindowHandle::WinHandle::_type_handle;
39 make_int(
size_t window) {
56 make_subprocess(const
Filename &filename) {
60 #if defined(HAVE_X11) && !defined(CPPPARSER)
68 make_x11(X11_Window window) {
73 #if defined(WIN32) && !defined(CPPPARSER)
81 make_win(HWND window) {
103 void NativeWindowHandle::IntHandle::
104 output(ostream &out)
const {
105 out <<
"(" << _handle <<
")";
113 void NativeWindowHandle::SubprocessHandle::
114 output(ostream &out)
const {
115 out <<
"(" << _filename <<
")";
118 #if defined(HAVE_X11) && !defined(CPPPARSER)
126 size_t NativeWindowHandle::X11Handle::
127 get_int_handle()
const {
128 return (
size_t)_handle;
132 #if defined(HAVE_X11) && !defined(CPPPARSER)
138 void NativeWindowHandle::X11Handle::
139 output(ostream &out)
const {
144 #if defined(WIN32) && !defined(CPPPARSER)
152 size_t NativeWindowHandle::WinHandle::
153 get_int_handle()
const {
154 return (
size_t)_handle;
158 #if defined(WIN32) && !defined(CPPPARSER)
164 void NativeWindowHandle::WinHandle::
165 output(ostream &out)
const {
This object represents a window on the desktop, not necessarily a Panda window.
The name of a file, such as a texture file or an Egg file.
This subclass of WindowHandle exists to allow simple creation of a WindowHandle of the appropriate ty...
virtual size_t get_int_handle() const
Returns the OS-specific handle converted to an integer, if this is possible for the particular repres...
TypeHandle is the identifier used to differentiate C++ class types.