1 #ifndef MSP_GRAPHICS_DISPLAY_PLATFORM_H_
2 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
4 #include <android/input.h>
5 #include <android/native_window.h>
6 #include <sigc++/trackable.h>
7 #include <msp/core/mutex.h>
8 #include "window_private.h"
13 typedef void *DisplayHandle;
15 struct PlatformDisplayPrivate: public sigc::trackable
17 AInputQueue *input_queue;
18 std::list<Window::Event> events;
20 WindowHandle native_window;
23 void push_event(AndroidEventType);
24 void native_window_created(ANativeWindow *);
25 void native_window_resized(ANativeWindow *);
26 void native_window_destroyed(ANativeWindow *);
27 void input_queue_created(AInputQueue *);
28 void input_queue_destroyed(AInputQueue *);
31 } // namespace Graphics