diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-12-02 16:48:23 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-12-02 16:48:23 +0100 |
commit | 9644f3c05b808a3cac3892aae36ffca2cce9357d (patch) | |
tree | 6f4b575c3e7fc21bea91a9721291aa8f97aa1c9c /include/mgui/widget.h | |
parent | df3eb74930491458f97a3328a68bf8526fef3caf (diff) |
Resize list widgets to the list width for vertical lists
Diffstat (limited to 'include/mgui/widget.h')
-rw-r--r-- | include/mgui/widget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mgui/widget.h b/include/mgui/widget.h index 4ff394c..c831325 100644 --- a/include/mgui/widget.h +++ b/include/mgui/widget.h @@ -25,8 +25,11 @@ struct mgui_widget { }; void mgui_widget_init(mgui_widget *self, mgui_widget_type type); + void mgui_widget_set_margin(mgui_widget *self, int left, int top, int right, int bottom); void mgui_widget_set_position(mgui_widget *self, mgl_vec2i position); +void mgui_widget_set_width(mgui_widget *self, int width); + void mgui_widget_on_event(mgui_widget *self, mgl_window *window, mgl_event *event); /* Returns the size of the widget */ mgl_vec2i mgui_widget_draw(mgui_widget *self, mgl_window *window); |