diff options
Diffstat (limited to 'libgui/inc/gui.h')
-rw-r--r-- | libgui/inc/gui.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgui/inc/gui.h b/libgui/inc/gui.h index 8e925d6..cf0020d 100644 --- a/libgui/inc/gui.h +++ b/libgui/inc/gui.h @@ -13,7 +13,7 @@ #define MAX_INPUT_LENGTH 100 // TODO: Improve event types (maybe as struct header) -enum window_event_type { GUI_KEYBOARD = GFX_MAX + 1, GUI_MOUSE, GUI_MAX }; +enum window_event_type { GUI_KEYBOARD = GFX_MAX + 1, GUI_MOUSE, GUI_RESIZE, GUI_MAX }; enum element_type { GUI_TYPE_ROOT, GUI_TYPE_CONTAINER, @@ -101,6 +101,10 @@ struct gui_event_mouse { int but3; }; +struct gui_event_resize { + struct context *new_ctx; +}; + struct element *gui_init(const char *title, u32 width, u32 height, u32 color_bg); void gui_event_loop(struct element *container); struct element *gui_add_button(struct element *container, int x, int y, enum font_type font_type, |