aboutsummaryrefslogtreecommitdiff
path: root/include/mgui/widget.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-12-02 14:44:54 +0100
committerdec05eba <dec05eba@protonmail.com>2021-12-02 14:44:54 +0100
commitdf3eb74930491458f97a3328a68bf8526fef3caf (patch)
tree129dbc6e6d1c7c65af25d13427f92c45271f433e /include/mgui/widget.h
parent14770f42df291753a240def91fb488a904a909c1 (diff)
list set items position with rendering
Diffstat (limited to 'include/mgui/widget.h')
-rw-r--r--include/mgui/widget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mgui/widget.h b/include/mgui/widget.h
index 60f850c..4ff394c 100644
--- a/include/mgui/widget.h
+++ b/include/mgui/widget.h
@@ -28,6 +28,7 @@ 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_on_event(mgui_widget *self, mgl_window *window, mgl_event *event);
-void mgui_widget_draw(mgui_widget *self, mgl_window *window);
+/* Returns the size of the widget */
+mgl_vec2i mgui_widget_draw(mgui_widget *self, mgl_window *window);
#endif /* MGUI_WIDGET_H */