aboutsummaryrefslogtreecommitdiff
path: root/libgui/inc
diff options
context:
space:
mode:
Diffstat (limited to 'libgui/inc')
-rw-r--r--libgui/inc/gui.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libgui/inc/gui.h b/libgui/inc/gui.h
index e0cffdf..e228772 100644
--- a/libgui/inc/gui.h
+++ b/libgui/inc/gui.h
@@ -26,11 +26,13 @@ struct window {
u32 pitch;
};
+void gui_write_char(struct window *win, int x, int y, const u32 c[3], char ch);
+void gui_write(struct window *win, int x, int y, const u32 c[3], char *text);
void gui_load_wallpaper(struct window *win, char *path);
void gui_win_on_win(struct window *dest, struct window *src, int x, int y);
-void gui_draw_rectangle(struct window *win, int x1, int y1, int x2, int y2, const u32 color[3]);
-void gui_fill(struct window *win, const u32 color[3]);
-void gui_border(struct window *win, const u32 color[3], u32 width);
+void gui_draw_rectangle(struct window *win, int x1, int y1, int x2, int y2, const u32 c[3]);
+void gui_fill(struct window *win, const u32 c[3]);
+void gui_border(struct window *win, const u32 c[3], u32 width);
void gui_init(char *font_path);
/**
@@ -39,5 +41,5 @@ void gui_init(char *font_path);
#define gui_new_window() \
(msg_send(2, MSG_NEW_WINDOW, NULL), (struct window *)msg_receive_loop()->data)
-
+#define gui_redraw() (msg_send(2, MSG_REDRAW, NULL)) // TODO: Partial redraw (optimisation)
#endif