37 glm::ivec2& fullscreen_size;
38 glm::vec2& content_scale;
42 const std::function<void(uint32_t)>& framebuffer_resize_callback;
43 WindowFrameActivity* frame_activity =
nullptr;
53 enum class MouseButtonAction
59 static void HandleWindowSize(State state,
int width,
int height);
60 static void HandleWindowClose(State state);
61 static void HandleKeyAction(State state, pixelbullet::input::KeyCode key_code, KeyAction action);
62 static void HandleTextInput(State state,
char32_t codepoint);
63 static void HandleMouseButtonAction(State state, pixelbullet::input::MouseCode button, MouseButtonAction action);
64 static void HandleMouseScroll(State state,
float x_offset,
float y_offset);
65 static void HandleCursorPosition(State state,
float x_pos,
float y_pos);
66 static void HandleFramebufferSize(State state,
int width,
int height);
67 static void HandleContentScale(State state,
float x_scale,
float y_scale);
68 static void HandleFocusChanged(State state,
bool focused);
69 static void HandleWindowMoved(State state,
int x,
int y);