summaryrefslogtreecommitdiff
path: root/userland/libgui/libgui.h
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libgui/libgui.h')
-rw-r--r--userland/libgui/libgui.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/userland/libgui/libgui.h b/userland/libgui/libgui.h
index cb8d9a7..1c3ac95 100644
--- a/userland/libgui/libgui.h
+++ b/userland/libgui/libgui.h
@@ -5,6 +5,7 @@
#define WINDOWSERVER_EVENT_KEYPRESS 0
#define WINDOWSERVER_EVENT_WINDOW_EXIT 1
+#define WINDOWSERVER_EVENT_WINDOW_RESIZE 2
typedef struct {
int ws_socket;
@@ -25,7 +26,10 @@ struct KEY_EVENT {
typedef struct {
int type;
- struct KEY_EVENT ev;
+ union {
+ struct KEY_EVENT ev;
+ int vector[2];
+ };
} WS_EVENT;
GUI_Window *GUI_CreateWindow(uint32_t x, uint32_t y, uint32_t sx, uint32_t sy);
@@ -35,4 +39,5 @@ void GUI_OverwriteFont(GUI_Window *w, uint32_t px, uint32_t py,
const uint32_t color);
void GUI_ClearScreen(GUI_Window *w, uint32_t color);
void GUI_EventLoop(GUI_Window *w, void (*event_handler)(WS_EVENT ev));
+void GUI_Resize(GUI_Window *w, uint32_t sx, uint32_t sy);
#endif