Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE GraphicsWindowProcCallbackData::
18GraphicsWindowProcCallbackData(GraphicsWindow* graphicsWindow){
19 _graphicsWindow = graphicsWindow;
20}
21
22/**
23 * Returns the GraphicsWindow that generated this event.
24 */
26get_graphics_window() const {
27 return _graphicsWindow;
28}
29
30#ifdef WIN32
31
32/**
33 * Returns the Windows proc hwnd parameter.
34 */
35INLINE uintptr_t GraphicsWindowProcCallbackData::
36get_hwnd() const {
37 return _hwnd;
38}
39
40/**
41 * Returns the Windows proc msg parameter.
42 */
43INLINE int GraphicsWindowProcCallbackData::
44get_msg() const {
45 return _msg;
46}
47
48/**
49 * Returns the Windows proc wparam parameter.
50 */
51INLINE int GraphicsWindowProcCallbackData::
52get_wparam() const {
53 return _wparam;
54}
55
56/**
57 * Returns the Windows proc lparam parameter.
58 */
59INLINE int GraphicsWindowProcCallbackData::
60get_lparam() const {
61 return _lparam;
62}
63
64/**
65 * Sets the Windows proc hwnd parameter.
66 */
67INLINE void GraphicsWindowProcCallbackData::
68set_hwnd(uintptr_t hwnd) {
69 _hwnd = hwnd;
70}
71
72/**
73 * Sets the Windows proc msg parameter.
74 */
75INLINE void GraphicsWindowProcCallbackData::
76set_msg(int msg) {
77 _msg = msg;
78}
79
80/**
81 * Sets the Windows proc wparam parameter.
82 */
83INLINE void GraphicsWindowProcCallbackData::
84set_wparam(int wparam) {
85 _wparam = wparam;
86}
87
88/**
89 * Sets the Windows proc lparam parameter.
90 */
91INLINE void GraphicsWindowProcCallbackData::
92set_lparam(int lparam) {
93 _lparam = lparam;
94}
95
96#endif
GraphicsWindow * get_graphics_window() const
Returns the GraphicsWindow that generated this event.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...