Panda3D
graphicsWindowProc.h
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 graphicsWindowProc.h
10  * @author Bei Yang
11  * @date 2010-03
12  */
13 
14 #ifndef GRAPHICSWINDOWPROC_H
15 #define GRAPHICSWINDOWPROC_H
16 
17 #include "pandabase.h"
18 
19 #ifdef WIN32
20 #ifndef WIN32_LEAN_AND_MEAN
21 #define WIN32_LEAN_AND_MEAN 1
22 #endif
23 #include <windows.h>
24 #endif
25 
26 class GraphicsWindow;
27 
28 /**
29  * Defines an interface for storing platform-specific window processor
30  * methods.
31  */
32 class EXPCL_PANDA_DISPLAY GraphicsWindowProc {
33 public:
35  virtual ~GraphicsWindowProc() = default;
36 #if defined(__WIN32__) || defined(_WIN32)
37  virtual LONG wnd_proc(GraphicsWindow* graphicsWindow, HWND hwnd,
38  UINT msg, WPARAM wparam, LPARAM lparam);
39 #endif
40  // purely virtual class
41 };
42 
43 #endif // GRAPHICSWINDOWPROC_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
Defines an interface for storing platform-specific window processor methods.