Panda3D

nativeWindowHandle.I

00001 // Filename: nativeWindowHandle.I
00002 // Created by:  drose (30Sep09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: NativeWindowHandle::IntHandle::Constructor
00018 //       Access: Public
00019 //  Description: 
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE NativeWindowHandle::IntHandle::
00022 IntHandle(size_t handle) : _handle(handle) {
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: NativeWindowHandle::IntHandle::get_handle
00027 //       Access: Public
00028 //  Description: 
00029 ////////////////////////////////////////////////////////////////////
00030 INLINE size_t NativeWindowHandle::IntHandle::
00031 get_handle() const {
00032   return _handle;
00033 }
00034 
00035 ////////////////////////////////////////////////////////////////////
00036 //     Function: NativeWindowHandle::SubprocessHandle::Constructor
00037 //       Access: Public
00038 //  Description: 
00039 ////////////////////////////////////////////////////////////////////
00040 INLINE NativeWindowHandle::SubprocessHandle::
00041 SubprocessHandle(const Filename &filename) : _filename(filename) {
00042 }
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //     Function: NativeWindowHandle::SubprocessHandle::get_filename
00046 //       Access: Public
00047 //  Description: 
00048 ////////////////////////////////////////////////////////////////////
00049 INLINE const Filename &NativeWindowHandle::SubprocessHandle::
00050 get_filename() const {
00051   return _filename;
00052 }
00053 
00054 #if defined(HAVE_X11) && !defined(CPPPARSER)
00055 ////////////////////////////////////////////////////////////////////
00056 //     Function: NativeWindowHandle::X11Handle::Constructor
00057 //       Access: Public
00058 //  Description: 
00059 ////////////////////////////////////////////////////////////////////
00060 INLINE NativeWindowHandle::X11Handle::
00061 X11Handle(X11_Window handle) : _handle(handle) {
00062 }
00063 #endif  // HAVE_X11
00064 
00065 #if defined(HAVE_X11) && !defined(CPPPARSER)
00066 ////////////////////////////////////////////////////////////////////
00067 //     Function: NativeWindowHandle::X11Handle::get_handle
00068 //       Access: Public
00069 //  Description: 
00070 ////////////////////////////////////////////////////////////////////
00071 INLINE X11_Window NativeWindowHandle::X11Handle::
00072 get_handle() const {
00073   return _handle;
00074 }
00075 #endif  // HAVE_X11
00076 
00077 #if defined(WIN32) && !defined(CPPPARSER)
00078 ////////////////////////////////////////////////////////////////////
00079 //     Function: NativeWindowHandle::WinHandle::Constructor
00080 //       Access: Public
00081 //  Description: 
00082 ////////////////////////////////////////////////////////////////////
00083 INLINE NativeWindowHandle::WinHandle::
00084 WinHandle(HWND handle) : _handle(handle) {
00085 }
00086 #endif  // WIN32
00087 
00088 #if defined(WIN32) && !defined(CPPPARSER)
00089 ////////////////////////////////////////////////////////////////////
00090 //     Function: NativeWindowHandle::WinHandle::get_handle
00091 //       Access: Public
00092 //  Description: 
00093 ////////////////////////////////////////////////////////////////////
00094 INLINE HWND NativeWindowHandle::WinHandle::
00095 get_handle() const {
00096   return _handle;
00097 }
00098 #endif  // WIN32
 All Classes Functions Variables Enumerations