diff options
Diffstat (limited to 'include/mgui/label.h')
-rw-r--r-- | include/mgui/label.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 */ |