]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/android/window_platform.h
Android support
[libs/gui.git] / source / graphics / android / window_platform.h
1 #ifndef MSP_GRAPHICS_WINDOW_PLATFORM_H_
2 #define MSP_GRAPHICS_WINDOW_PLATFORM_H_
3
4 #include <android/input.h>
5 #include <android/native_window.h>
6
7 namespace Msp {
8 namespace Graphics {
9
10 typedef ANativeWindow *WindowHandle;
11
12 enum AndroidEventType
13 {
14         INPUT_EVENT,
15         WINDOW_CREATED,
16         WINDOW_RESIZED,
17         WINDOW_DESTROYED
18 };
19
20 struct PlatformWindowPrivate
21 {
22         mutable sigc::signal<void, WindowHandle> signal_window_acquired;
23         mutable sigc::signal<void> signal_window_lost;
24 };
25
26 struct PlatformEvent
27 {
28         AndroidEventType type;
29         AInputEvent *aevent;
30 };
31
32 } // namespace Graphics
33 } // namespace Msp
34
35 #endif