From 0417619b36dc7f4b004caa64a65570f1344d1c8d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 14 Dec 2021 23:48:34 +0100 Subject: Layout, expand, etc --- include/mgui/label.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include/mgui/label.h') diff --git a/include/mgui/label.h b/include/mgui/label.h index 4b66ef8..ef1369b 100644 --- a/include/mgui/label.h +++ b/include/mgui/label.h @@ -10,8 +10,6 @@ typedef struct { char *str; size_t str_size; mgl_text text; - mgl_vec2i position; - int width; } mgui_label; mgui_label* mgui_label_create(const char *str, size_t size, unsigned char character_size); @@ -20,9 +18,8 @@ mgui_widget* mgui_label_to_widget(mgui_label *list); mgui_label* mgui_widget_to_label(mgui_widget *widget); void mgui_label_set_position(mgui_label *self, mgl_vec2i position); -void mgui_label_set_width(mgui_label *self, int width); +void mgui_label_calculate_size(mgui_label *self, mgl_vec2i max_size); void mgui_label_on_event(mgui_label *self, mgl_window *window, mgl_event *event); -/* Returns the size of the widget */ -mgl_vec2i mgui_label_draw(mgui_label *self, mgl_window *window); +void mgui_label_draw(mgui_label *self, mgl_window *window); #endif /* MGUI_LABEL_H */ -- cgit v1.2.3