Panda3D
graphicsWindowProcCallbackData.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file graphicsWindowProcCallbackData.I
10  * @author Walt Destler
11  * @date 2010-06
12  */
13 
14 /**
15  *
16  */
17 INLINE GraphicsWindowProcCallbackData::
18 GraphicsWindowProcCallbackData(GraphicsWindow* graphicsWindow){
19  _graphicsWindow = graphicsWindow;
20 }
21 
22 /**
23  * Returns the GraphicsWindow that generated this event.
24  */
27  return _graphicsWindow;
28 }
29 
30 #ifdef WIN32
31 
32 /**
33  * Returns the Windows proc hwnd parameter.
34  */
35 INLINE uintptr_t GraphicsWindowProcCallbackData::
36 get_hwnd() const {
37  return _hwnd;
38 }
39 
40 /**
41  * Returns the Windows proc msg parameter.
42  */
43 INLINE int GraphicsWindowProcCallbackData::
44 get_msg() const {
45  return _msg;
46 }
47 
48 /**
49  * Returns the Windows proc wparam parameter.
50  */
51 INLINE int GraphicsWindowProcCallbackData::
52 get_wparam() const {
53  return _wparam;
54 }
55 
56 /**
57  * Returns the Windows proc lparam parameter.
58  */
59 INLINE int GraphicsWindowProcCallbackData::
60 get_lparam() const {
61  return _lparam;
62 }
63 
64 /**
65  * Sets the Windows proc hwnd parameter.
66  */
67 INLINE void GraphicsWindowProcCallbackData::
68 set_hwnd(uintptr_t hwnd) {
69  _hwnd = hwnd;
70 }
71 
72 /**
73  * Sets the Windows proc msg parameter.
74  */
75 INLINE void GraphicsWindowProcCallbackData::
76 set_msg(int msg) {
77  _msg = msg;
78 }
79 
80 /**
81  * Sets the Windows proc wparam parameter.
82  */
83 INLINE void GraphicsWindowProcCallbackData::
84 set_wparam(int wparam) {
85  _wparam = wparam;
86 }
87 
88 /**
89  * Sets the Windows proc lparam parameter.
90  */
91 INLINE void GraphicsWindowProcCallbackData::
92 set_lparam(int lparam) {
93  _lparam = lparam;
94 }
95 
96 #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.