aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/gui.h
diff options
context:
space:
mode:
authorMarvin Borner2021-03-28 14:01:53 +0200
committerMarvin Borner2021-03-28 14:01:53 +0200
commit60750501da4eb0c020e971b45ae3a964c903e12d (patch)
treefc95ff546a7acaa22327bd27dc098230f820c531 /libs/libgui/gui.h
parentba2c07447ba1278d8ad38ca58a8ae94c82d2d008 (diff)
Fun with widgets
Diffstat (limited to 'libs/libgui/gui.h')
-rw-r--r--libs/libgui/gui.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/libgui/gui.h b/libs/libgui/gui.h
index a3f74f8..511033f 100644
--- a/libs/libgui/gui.h
+++ b/libs/libgui/gui.h
@@ -5,9 +5,23 @@
#include <def.h>
#include <errno.h>
+#include <libgui/gfx.h>
+#include <vec.h>
+
+enum gui_listener { GUI_LISTEN_MOUSEMOVE };
res gui_new_window(void);
res gui_redraw_window(u32 id);
+
+res gui_fill(u32 win_id, u32 widget_id, u32 c);
+
+res gui_add_widget(u32 win_id, u32 widget_id, vec2 size, vec2 pos);
+res gui_new_widget(u32 win_id, vec2 size, vec2 pos);
+res gui_listen_widget(u32 win_id, u32 widget_id, enum gui_listener listener, u32 func);
+res gui_redraw_widget(u32 win_id, u32 widget_id);
+
+vec2 gui_window_size(u32 win_id);
+
void gui_loop(void);
#endif