]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/window_priv.h
ab1d54956a904730a2d0164040cc9e2e009562cf
[libs/gui.git] / source / gbase / window_priv.h
1 /* $Id$
2
3 This file is part of libmspgbase
4 Copyright © 2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GBASE_WINDOW_PRIV_H_
9 #define MSP_GBASE_WINDOW_PRIV_H_
10
11 #ifdef WIN32
12 #include <windows.h>
13 #else
14 #include <X11/Xlib.h>
15 #endif
16
17 namespace Msp {
18 namespace Graphics {
19
20 #ifdef WIN32
21 typedef HWND WindowHandle;
22 #else
23 typedef ::Window WindowHandle;
24 #endif
25
26 struct Window::Private
27 {
28         WindowHandle window;
29 #ifndef WIN32
30         Atom wm_delete_window;
31         Cursor invisible_cursor;
32 #endif
33 };
34
35 struct Window::Event
36 {
37 #ifdef WIN32
38         UINT msg;
39         WPARAM wparam;
40         LPARAM lparam;
41 #else
42         XEvent xevent;
43 #endif
44 };
45
46 } // namespace Graphics
47 } // namespace Msp
48
49 #endif