aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/widgets.h
diff options
context:
space:
mode:
authorMarvin Borner2021-06-23 22:05:11 +0200
committerMarvin Borner2021-06-23 22:05:11 +0200
commitaf338d77ee7f6469530233a70ccb450171ec5c66 (patch)
treec02c86bc53908e62fee829ea8416854f229c7233 /libs/libgui/widgets.h
parent73a55007a44d23be40be681c4882fd6ad1e30b60 (diff)
Started widgets and layout stuff
Diffstat (limited to 'libs/libgui/widgets.h')
-rw-r--r--libs/libgui/widgets.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/libgui/widgets.h b/libs/libgui/widgets.h
new file mode 100644
index 0000000..64862f0
--- /dev/null
+++ b/libs/libgui/widgets.h
@@ -0,0 +1,14 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#ifndef WIDGETS_H
+#define WIDGETS_H
+
+#include <libgui/gfx.h>
+#include <libgui/gui.h>
+
+void gui_button_custom(u32 window, u32 widget, vec2 pos, enum font_type font_type, u32 bg, u32 fg,
+ void (*click)(struct gui_event_mouse *event), const char *text);
+void gui_button(u32 window, u32 widget, void (*click)(struct gui_event_mouse *event),
+ const char *text);
+
+#endif