Panda3D
|
00001 // Filename: graphicsWindowProcCallbackData.I 00002 // Created by: Walt Destler (June 2010) 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 // Function: GraphicsWindowProcCallbackData::Constructor 00017 // Access: Public 00018 // Description: 00019 //////////////////////////////////////////////////////////////////// 00020 INLINE GraphicsWindowProcCallbackData:: 00021 GraphicsWindowProcCallbackData(GraphicsWindow* graphicsWindow){ 00022 _graphicsWindow = graphicsWindow; 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function: GraphicsWindowProcCallbackData::get_hwnd 00027 // Access: Published 00028 // Description: Returns the GraphicsWindow that generated this event. 00029 //////////////////////////////////////////////////////////////////// 00030 INLINE GraphicsWindow* GraphicsWindowProcCallbackData:: 00031 get_graphics_window() const { 00032 return _graphicsWindow; 00033 } 00034 00035 #ifdef WIN32 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: GraphicsWindowProcCallbackData::get_hwnd 00039 // Access: Published 00040 // Description: Returns the Windows proc hwnd parameter. 00041 //////////////////////////////////////////////////////////////////// 00042 INLINE int GraphicsWindowProcCallbackData:: 00043 get_hwnd() const { 00044 return _hwnd; 00045 } 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function: GraphicsWindowProcCallbackData::get_msg 00049 // Access: Published 00050 // Description: Returns the Windows proc msg parameter. 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE int GraphicsWindowProcCallbackData:: 00053 get_msg() const { 00054 return _msg; 00055 } 00056 00057 //////////////////////////////////////////////////////////////////// 00058 // Function: GraphicsWindowProcCallbackData::get_wparam 00059 // Access: Published 00060 // Description: Returns the Windows proc wparam parameter. 00061 //////////////////////////////////////////////////////////////////// 00062 INLINE int GraphicsWindowProcCallbackData:: 00063 get_wparam() const { 00064 return _wparam; 00065 } 00066 00067 //////////////////////////////////////////////////////////////////// 00068 // Function: GraphicsWindowProcCallbackData::get_lparam 00069 // Access: Published 00070 // Description: Returns the Windows proc lparam parameter. 00071 //////////////////////////////////////////////////////////////////// 00072 INLINE int GraphicsWindowProcCallbackData:: 00073 get_lparam() const { 00074 return _lparam; 00075 } 00076 00077 //////////////////////////////////////////////////////////////////// 00078 // Function: GraphicsWindowProcCallbackData::set_hwnd 00079 // Access: Published 00080 // Description: Sets the Windows proc hwnd parameter. 00081 //////////////////////////////////////////////////////////////////// 00082 INLINE void GraphicsWindowProcCallbackData:: 00083 set_hwnd(int hwnd) { 00084 _hwnd = hwnd; 00085 } 00086 00087 //////////////////////////////////////////////////////////////////// 00088 // Function: GraphicsWindowProcCallbackData::set_msg 00089 // Access: Published 00090 // Description: Sets the Windows proc msg parameter. 00091 //////////////////////////////////////////////////////////////////// 00092 INLINE void GraphicsWindowProcCallbackData:: 00093 set_msg(int msg) { 00094 _msg = msg; 00095 } 00096 00097 //////////////////////////////////////////////////////////////////// 00098 // Function: GraphicsWindowProcCallbackData::set_wparam 00099 // Access: Published 00100 // Description: Sets the Windows proc wparam parameter. 00101 //////////////////////////////////////////////////////////////////// 00102 INLINE void GraphicsWindowProcCallbackData:: 00103 set_wparam(int wparam) { 00104 _wparam = wparam; 00105 } 00106 00107 //////////////////////////////////////////////////////////////////// 00108 // Function: GraphicsWindowProcCallbackData::set_lparam 00109 // Access: Published 00110 // Description: Sets the Windows proc lparam parameter. 00111 //////////////////////////////////////////////////////////////////// 00112 INLINE void GraphicsWindowProcCallbackData:: 00113 set_lparam(int lparam) { 00114 _lparam = lparam; 00115 } 00116 00117 #endif