diff options
author | Marvin Borner | 2020-08-09 16:51:01 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-09 16:51:01 +0200 |
commit | 162d024a53e1e31e00ff0b6f47dd4590edebc551 (patch) | |
tree | 711d3886c300dfaddffdafaa89b690b45eb2101d /kernel/inc/gui.h | |
parent | 79f2fa136f26a0b87917336e089485712ee49bd6 (diff) |
Heavy restructuring of libc, kernel and apps
Diffstat (limited to 'kernel/inc/gui.h')
-rw-r--r-- | kernel/inc/gui.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kernel/inc/gui.h b/kernel/inc/gui.h new file mode 100644 index 0000000..760bcb9 --- /dev/null +++ b/kernel/inc/gui.h @@ -0,0 +1,22 @@ +// MIT License, Copyright (c) 2020 Marvin Borner +// Some GUI functions + +#ifndef GUI_H +#define GUI_H + +#include <def.h> + +// Generalized font struct +struct font { + char *chars; + int height; + int width; + int char_size; +}; + +void gui_write(int x, int y, const u32 c[3], char *text); +void gui_term_write_char(char ch); +void gui_term_write(char *text); +void gui_init(char *font_path); + +#endif |