diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-12-14 23:48:34 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-12-15 10:30:34 +0100 |
commit | 0417619b36dc7f4b004caa64a65570f1344d1c8d (patch) | |
tree | 10c4b9bbe5bd7c16322495890c3324cd76d584c8 /include/mgui/button.h | |
parent | 396686a09ef471499c11256b8516c2702f761060 (diff) |
Layout, expand, etc
Diffstat (limited to 'include/mgui/button.h')
-rw-r--r-- | include/mgui/button.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mgui/button.h b/include/mgui/button.h index 986cb9c..f8e223c 100644 --- a/include/mgui/button.h +++ b/include/mgui/button.h @@ -20,9 +20,8 @@ mgui_widget* mgui_button_to_widget(mgui_button *list); mgui_button* mgui_widget_to_button(mgui_widget *widget); void mgui_button_set_position(mgui_button *self, mgl_vec2i position); -void mgui_button_set_width(mgui_button *self, int width); +void mgui_button_calculate_size(mgui_button *self, mgl_vec2i max_size); void mgui_button_on_event(mgui_button *self, mgl_window *window, mgl_event *event); -/* Returns the size of the widget */ -mgl_vec2i mgui_button_draw(mgui_button *self, mgl_window *window); +void mgui_button_draw(mgui_button *self, mgl_window *window); #endif /* MGUI_BUTTON_H */ |