]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/window_priv.h
24d71a3a0df46d53f24e83ba5de5e50737436cc5
[libs/gui.git] / source / gbase / window_priv.h
1 #ifndef MSP_GBASE_WINDOW_PRIV_H_
2 #define MSP_GBASE_WINDOW_PRIV_H_
3
4 #ifdef WIN32
5 #include <windows.h>
6 #else
7 #include <X11/Xlib.h>
8 #endif
9
10 namespace Msp {
11 namespace Graphics {
12
13 #ifdef WIN32
14 typedef HWND WindowHandle;
15 #else
16 typedef ::Window WindowHandle;
17 #endif
18
19 struct Window::Private
20 {
21         WindowHandle window;
22 #ifndef WIN32
23         Atom wm_delete_window;
24         Cursor invisible_cursor;
25 #endif
26 };
27
28 struct Window::Event
29 {
30 #ifdef WIN32
31         UINT msg;
32         WPARAM wparam;
33         LPARAM lparam;
34 #else
35         XEvent xevent;
36 #endif
37 };
38
39 } // namespace Graphics
40 } // namespace Msp
41
42 #endif