Panda3D
graphicsWindowProcCallbackData.I
1 // Filename: graphicsWindowProcCallbackData.I
2 // Created by: Walt Destler (June 2010)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function: GraphicsWindowProcCallbackData::Constructor
17 // Access: Public
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE GraphicsWindowProcCallbackData::
21 GraphicsWindowProcCallbackData(GraphicsWindow* graphicsWindow){
22  _graphicsWindow = graphicsWindow;
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: GraphicsWindowProcCallbackData::get_hwnd
27 // Access: Published
28 // Description: Returns the GraphicsWindow that generated this event.
29 ////////////////////////////////////////////////////////////////////
32  return _graphicsWindow;
33 }
34 
35 #ifdef WIN32
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: GraphicsWindowProcCallbackData::get_hwnd
39 // Access: Published
40 // Description: Returns the Windows proc hwnd parameter.
41 ////////////////////////////////////////////////////////////////////
42 INLINE int GraphicsWindowProcCallbackData::
43 get_hwnd() const {
44  return _hwnd;
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: GraphicsWindowProcCallbackData::get_msg
49 // Access: Published
50 // Description: Returns the Windows proc msg parameter.
51 ////////////////////////////////////////////////////////////////////
52 INLINE int GraphicsWindowProcCallbackData::
53 get_msg() const {
54  return _msg;
55 }
56 
57 ////////////////////////////////////////////////////////////////////
58 // Function: GraphicsWindowProcCallbackData::get_wparam
59 // Access: Published
60 // Description: Returns the Windows proc wparam parameter.
61 ////////////////////////////////////////////////////////////////////
62 INLINE int GraphicsWindowProcCallbackData::
63 get_wparam() const {
64  return _wparam;
65 }
66 
67 ////////////////////////////////////////////////////////////////////
68 // Function: GraphicsWindowProcCallbackData::get_lparam
69 // Access: Published
70 // Description: Returns the Windows proc lparam parameter.
71 ////////////////////////////////////////////////////////////////////
72 INLINE int GraphicsWindowProcCallbackData::
73 get_lparam() const {
74  return _lparam;
75 }
76 
77 ////////////////////////////////////////////////////////////////////
78 // Function: GraphicsWindowProcCallbackData::set_hwnd
79 // Access: Published
80 // Description: Sets the Windows proc hwnd parameter.
81 ////////////////////////////////////////////////////////////////////
82 INLINE void GraphicsWindowProcCallbackData::
83 set_hwnd(int hwnd) {
84  _hwnd = hwnd;
85 }
86 
87 ////////////////////////////////////////////////////////////////////
88 // Function: GraphicsWindowProcCallbackData::set_msg
89 // Access: Published
90 // Description: Sets the Windows proc msg parameter.
91 ////////////////////////////////////////////////////////////////////
92 INLINE void GraphicsWindowProcCallbackData::
93 set_msg(int msg) {
94  _msg = msg;
95 }
96 
97 ////////////////////////////////////////////////////////////////////
98 // Function: GraphicsWindowProcCallbackData::set_wparam
99 // Access: Published
100 // Description: Sets the Windows proc wparam parameter.
101 ////////////////////////////////////////////////////////////////////
102 INLINE void GraphicsWindowProcCallbackData::
103 set_wparam(int wparam) {
104  _wparam = wparam;
105 }
106 
107 ////////////////////////////////////////////////////////////////////
108 // Function: GraphicsWindowProcCallbackData::set_lparam
109 // Access: Published
110 // Description: Sets the Windows proc lparam parameter.
111 ////////////////////////////////////////////////////////////////////
112 INLINE void GraphicsWindowProcCallbackData::
113 set_lparam(int lparam) {
114  _lparam = lparam;
115 }
116 
117 #endif
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
GraphicsWindow * get_graphics_window() const
Returns the GraphicsWindow that generated this event.