diff options
Diffstat (limited to 'include/mgui/scrollview.h')
-rw-r--r-- | include/mgui/scrollview.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/mgui/scrollview.h b/include/mgui/scrollview.h index 1b3d109..dded990 100644 --- a/include/mgui/scrollview.h +++ b/include/mgui/scrollview.h @@ -6,9 +6,7 @@ typedef struct { mgui_widget widget; mgui_widget *child; - mgl_vec2i child_size; mgl_vec2i position; - mgl_vec2i size; mgl_vec2i scroll; mgl_vec2f mouse_scroll; } mgui_scrollview; @@ -20,10 +18,9 @@ mgui_scrollview* mgui_widget_to_scrollview(mgui_widget *widget); void mgui_scrollview_set_child(mgui_scrollview *self, mgui_widget *child); void mgui_scrollview_set_position(mgui_scrollview *self, mgl_vec2i position); +void mgui_scrollview_calculate_size(mgui_scrollview *self, mgl_vec2i max_size); void mgui_scrollview_set_size(mgui_scrollview *self, mgl_vec2i size); -void mgui_scrollview_set_width(mgui_scrollview *self, int width); void mgui_scrollview_on_event(mgui_scrollview *self, mgl_window *window, mgl_event *event); -/* Returns the size of the widget */ -mgl_vec2i mgui_scrollview_draw(mgui_scrollview *self, mgl_window *window); +void mgui_scrollview_draw(mgui_scrollview *self, mgl_window *window); #endif /* MGUI_SCROLLVIEW_H */ |