aboutsummaryrefslogtreecommitdiff
path: root/include/mgui/label.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-12-14 23:48:34 +0100
committerdec05eba <dec05eba@protonmail.com>2021-12-15 10:30:34 +0100
commit0417619b36dc7f4b004caa64a65570f1344d1c8d (patch)
tree10c4b9bbe5bd7c16322495890c3324cd76d584c8 /include/mgui/label.h
parent396686a09ef471499c11256b8516c2702f761060 (diff)
Layout, expand, etc
Diffstat (limited to 'include/mgui/label.h')
-rw-r--r--include/mgui/label.h7
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 */