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.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/libs/libgui/gui.h b/libs/libgui/gui.h
index 9473bd9..c7dc24f 100644
--- a/libs/libgui/gui.h
+++ b/libs/libgui/gui.h
@@ -18,20 +18,25 @@ enum gui_layer {
GUI_LAYER_FG,
};
-res gui_new_window(u32 *id);
-res gui_redraw_window(u32 id);
-
-res gui_clear(u32 win_id, u32 widget_id, enum gui_layer layer);
-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) NONNULL;
-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) NONNULL;
-
-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);
-res gui_listen_widget(u32 win_id, u32 widget_id, enum gui_listener listener, u32 func);
-res gui_redraw_widget(u32 win_id, u32 widget_id);
+void gui_new_custom_window(u32 *id, vec2 pos, vec2 size);
+void gui_new_window(u32 *id);
+void gui_redraw_window(u32 id);
+
+void gui_clear(u32 win_id, u32 widget_id, enum gui_layer layer);
+void gui_fill(u32 win_id, u32 widget_id, enum gui_layer layer, u32 c);
+void gui_write(u32 win_id, u32 widget_id, enum gui_layer layer, vec2 pos, enum font_type font_type,
+ u32 c, const char *text);
+void gui_load_image(u32 win_id, u32 widget_id, enum gui_layer layer, vec2 pos, vec2 size,
+ const char *path) NONNULL;
+void 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) NONNULL;
+
+void gui_add_widget(u32 *widget, u32 win_id, u32 widget_id, vec2 pos, vec2 size);
+void gui_new_widget(u32 *widget, u32 win_id, vec2 pos, vec2 size);
+void gui_listen_widget(u32 win_id, u32 widget_id, enum gui_listener listener, u32 func);
+void gui_redraw_widget(u32 win_id, u32 widget_id);
+
+void gui_popup(const char *text);
vec2 gui_window_size(u32 win_id);