Panda3D
 All Classes Functions Variables Enumerations
windowHandle.I
00001 // Filename: windowHandle.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: WindowHandle::Constructor
00018 //       Access: Published
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE WindowHandle::
00022 WindowHandle(OSHandle *os_handle) : _os_handle(os_handle) {
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: WindowHandle::Copy Constructor
00027 //       Access: Published
00028 //  Description:
00029 ////////////////////////////////////////////////////////////////////
00030 INLINE WindowHandle::
00031 WindowHandle(const WindowHandle &copy) : _os_handle(copy._os_handle) {
00032 }
00033 
00034 ////////////////////////////////////////////////////////////////////
00035 //     Function: WindowHandle::get_os_handle
00036 //       Access: Published
00037 //  Description: Returns the OS-specific handle stored internally to
00038 //               the WindowHandle wrapper.
00039 ////////////////////////////////////////////////////////////////////
00040 INLINE WindowHandle::OSHandle *WindowHandle::
00041 get_os_handle() const {
00042   return _os_handle;
00043 }
00044 
00045 ////////////////////////////////////////////////////////////////////
00046 //     Function: WindowHandle::set_os_handle
00047 //       Access: Published
00048 //  Description: Changes the OS-specific handle stored internally to
00049 //               the WindowHandle wrapper.
00050 ////////////////////////////////////////////////////////////////////
00051 INLINE void WindowHandle::
00052 set_os_handle(OSHandle *os_handle) {
00053   _os_handle = os_handle;
00054 }
00055 
00056 
00057 ////////////////////////////////////////////////////////////////////
00058 //     Function: WindowHandle::OSHandle::Constructor
00059 //       Access: Protected
00060 //  Description: The base class of OSHandle doesn't have a usable
00061 //               constructor.  Always construct an instance of some
00062 //               specialized type, that stores the appropriate kind of
00063 //               window handle for each OS.
00064 ////////////////////////////////////////////////////////////////////
00065 INLINE WindowHandle::OSHandle::
00066 OSHandle() {
00067 }
 All Classes Functions Variables Enumerations