aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/gui.h
diff options
context:
space:
mode:
authorMarvin Borner2021-03-30 18:46:38 +0200
committerMarvin Borner2021-03-30 18:46:38 +0200
commitf86158c6b7b1d9f2cfd7f7f05e0576de643b9c5a (patch)
tree7568047711328c2c9f190c0ac795328c3997c724 /libs/libgui/gui.h
parent870c337671456f5bdfed3a5d996abe627ef66e76 (diff)
Widget fg/bg and gfx filters
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);