From df3eb74930491458f97a3328a68bf8526fef3caf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 2 Dec 2021 14:44:54 +0100 Subject: list set items position with rendering --- include/mgui/list.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/mgui/list.h') diff --git a/include/mgui/list.h b/include/mgui/list.h index 1da326d..82efaf8 100644 --- a/include/mgui/list.h +++ b/include/mgui/list.h @@ -28,6 +28,7 @@ mgui_list* mgui_widget_to_list(mgui_widget *widget); void mgui_list_set_position(mgui_list *self, mgl_vec2i position); void mgui_list_append(mgui_list *self, mgui_widget *widget); void mgui_list_on_event(mgui_list *self, mgl_window *window, mgl_event *event); -void mgui_list_draw(mgui_list *self, mgl_window *window); +/* Returns the size of the widget */ +mgl_vec2i mgui_list_draw(mgui_list *self, mgl_window *window); #endif /* MGUI_LIST_H */ -- cgit v1.2.3