aboutsummaryrefslogtreecommitdiff
path: root/include/mgui/button.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-12-02 16:48:23 +0100
committerdec05eba <dec05eba@protonmail.com>2021-12-02 16:48:23 +0100
commit9644f3c05b808a3cac3892aae36ffca2cce9357d (patch)
tree6f4b575c3e7fc21bea91a9721291aa8f97aa1c9c /include/mgui/button.h
parentdf3eb74930491458f97a3328a68bf8526fef3caf (diff)
Resize list widgets to the list width for vertical lists
Diffstat (limited to 'include/mgui/button.h')
-rw-r--r--include/mgui/button.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mgui/button.h b/include/mgui/button.h
index 864d3c6..aefc3fe 100644
--- a/include/mgui/button.h
+++ b/include/mgui/button.h
@@ -16,6 +16,7 @@ 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_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);