aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libgui/gui.h')
-rw-r--r--libs/libgui/gui.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/libgui/gui.h b/libs/libgui/gui.h
index ff475ae..5190155 100644
--- a/libs/libgui/gui.h
+++ b/libs/libgui/gui.h
@@ -13,10 +13,19 @@ enum gui_listener {
GUI_LISTEN_MOUSECLICK,
};
+enum gui_layer {
+ GUI_LAYER_BG,
+ GUI_LAYER_FG,
+};
+
res gui_new_window(void);
res gui_redraw_window(u32 id);
-res gui_fill(u32 win_id, u32 widget_id, u32 c);
+res gui_fill(u32 win_id, u32 widget_id, enum gui_layer layer, u32 c);
+res gui_load_image(u32 win_id, u32 widget_id, enum gui_layer layer, vec2 pos, vec2 size,
+ const char *path);
+res gui_load_image_filter(u32 win_id, u32 widget_id, enum gui_layer layer, vec2 pos, vec2 size,
+ enum gfx_filter filter, const char *path);
res gui_add_widget(u32 win_id, u32 widget_id, vec2 size, vec2 pos);
res gui_new_widget(u32 win_id, vec2 size, vec2 pos);