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 <msp/core/mutex.h>
7 #include "window_private.h"
12 typedef void *DisplayHandle;
14 struct PlatformDisplayPrivate
16 AInputQueue *input_queue;
17 std::list<Window::Event> events;
19 WindowHandle native_window;
22 void push_event(AndroidEventType);
23 void native_window_created(ANativeWindow *);
24 void native_window_resized(ANativeWindow *);
25 void native_window_destroyed(ANativeWindow *);
26 void input_queue_created(AInputQueue *);
27 void input_queue_destroyed(AInputQueue *);
30 } // namespace Graphics