2 #include "window_private.h"
4 #include "display_private.h"
11 void Window::platform_init()
15 void Window::platform_cleanup()
19 void Window::set_title(const string &)
23 void Window::platform_reconfigure(bool)
27 void Window::show_cursor(bool)
31 void Window::warp_pointer(int, int)
35 void Window::platform_set_touch_input()
39 void Window::platform_show()
43 void Window::platform_hide()
47 bool Window::event(const Event &evnt)
52 signal_input_event.emit(evnt);
55 priv->window = display.get_private().native_window;
56 display.remove_window(*this);
57 display.add_window(*this);
58 priv->signal_window_acquired.emit(priv->window);
59 signal_got_focus.emit();
62 options.width = ANativeWindow_getWidth(priv->window);
63 options.height = ANativeWindow_getHeight(priv->window);
64 signal_resize.emit(options.width, options.height);
66 case WINDOW_DESTROYED:
67 signal_lost_focus.emit();
68 priv->signal_window_lost.emit();
69 priv->window = nullptr;
70 display.remove_window(*this);
71 display.add_window(*this);
80 } // namespace Graphics