diff options
author | Marvin Borner | 2021-05-21 22:41:11 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-21 22:41:11 +0200 |
commit | 93174e167a6aa313fca43f4cb0e9b975e1618468 (patch) | |
tree | 6fbed7871cb24f38cc714e6838ac6a6cc0f4fc36 /libs/libgui/gui.h | |
parent | 11cdf24db63af9a22786e81e69247f15cc196b0c (diff) |
Better window destroying
Diffstat (limited to 'libs/libgui/gui.h')
-rw-r--r-- | libs/libgui/gui.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/libgui/gui.h b/libs/libgui/gui.h index 66c6733..d9087f1 100644 --- a/libs/libgui/gui.h +++ b/libs/libgui/gui.h @@ -8,6 +8,8 @@ #include <libgui/gfx.h> #include <vec.h> +#define GUI_MAIN 0 // First widget is the main widget + enum gui_listener { GUI_LISTEN_MOUSEMOVE, GUI_LISTEN_MOUSECLICK, @@ -61,8 +63,7 @@ void gui_draw_line(u32 win_id, u32 widget_id, enum gui_layer layer, vec2 pos1, v * Widget operations */ -void gui_add_widget(u32 *widget, u32 win_id, u32 widget_id, vec2 pos, vec2 size); -void gui_new_widget(u32 *widget, u32 win_id, vec2 pos, vec2 size); +u32 gui_new_widget(u32 win_id, u32 widget_id, vec2 pos, vec2 size); void gui_listen_widget(u32 win_id, u32 widget_id, enum gui_listener listener, u32 func); void gui_redraw_widget(u32 win_id, u32 widget_id); |