// MIT License, Copyright (c) 2020 Marvin Borner // Some GUI functions #ifndef GUI_H #define GUI_H #include #include #include // Generalized font struct struct font { char *chars; int height; int width; int char_size; }; struct window { int x; int y; u16 width; u16 height; u8 *fb; }; void gui_init(char *font_path); /** * Wrappers */ #define gui_new_window() \ (msg_send(1, MSG_NEW_WINDOW, NULL), (struct window *)msg_receive_loop()->data) #endif