diff options
author | Marvin Borner | 2020-08-22 23:31:47 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-22 23:31:47 +0200 |
commit | b667ea0fbd26af222f828199e7b9a7e62ad98081 (patch) | |
tree | 90dac52e2cf0a898da0097e9b1375506309b673f /libgui/inc | |
parent | 32f63ffc96f7f7ec6c504b8f50292316f026dd21 (diff) |
Some window fb and yield implementation
Diffstat (limited to 'libgui/inc')
-rw-r--r-- | libgui/inc/gui.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libgui/inc/gui.h b/libgui/inc/gui.h index acef037..5f35372 100644 --- a/libgui/inc/gui.h +++ b/libgui/inc/gui.h @@ -16,12 +16,21 @@ struct font { int char_size; }; -void gui_write(struct vbe *vbe, int x, int y, const u32 c[3], char *text); +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); + +#define gui_new_window() \ + (msg_send(1, MSG_NEW_WINDOW, NULL), (struct window *)msg_receive_loop()->data) #endif |