aboutsummaryrefslogtreecommitdiff
path: root/libgui/inc/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgui/inc/gui.h')
-rw-r--r--libgui/inc/gui.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libgui/inc/gui.h b/libgui/inc/gui.h
new file mode 100644
index 0000000..52fe805
--- /dev/null
+++ b/libgui/inc/gui.h
@@ -0,0 +1,23 @@
+// MIT License, Copyright (c) 2020 Marvin Borner
+// Some GUI functions
+
+#ifndef GUI_H
+#define GUI_H
+
+#include <def.h>
+#include <vesa.h>
+
+// Generalized font struct
+struct font {
+ char *chars;
+ int height;
+ int width;
+ int char_size;
+};
+
+void gui_write(struct vbe *vbe, int x, int y, const u32 c[3], char *text);
+void gui_term_write_char(struct vbe *vbe, char ch);
+void gui_term_write(struct vbe *vbe, char *text);
+void gui_init(char *font_path);
+
+#endif