diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-28 20:10:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-01-11 15:23:39 +0100 |
commit | a338adecd93b328816b4a3ff51bfb278377c7cf9 (patch) | |
tree | 6abd7791bae10213d34b7a2928f08f4f77190fc0 /include/mgui/scrollview.h | |
parent | 44e987c8521a99519350a42292bcfcd28451dcbd (diff) |
Diffstat (limited to 'include/mgui/scrollview.h')
-rw-r--r-- | include/mgui/scrollview.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mgui/scrollview.h b/include/mgui/scrollview.h index dded990..76ae6d5 100644 --- a/include/mgui/scrollview.h +++ b/include/mgui/scrollview.h @@ -9,9 +9,13 @@ typedef struct { mgl_vec2i position; mgl_vec2i scroll; mgl_vec2f mouse_scroll; + mgl_vec2f scrollbar_pos; + mgl_vec2f scrollbar_size; + mgl_vec2f scrollbar_move_prev_pos; + bool moving_scrollbar; } mgui_scrollview; -mgui_scrollview* mgui_scrollview_create(); +mgui_scrollview* mgui_scrollview_create(void); void mgui_scrollview_destroy(mgui_scrollview *scrollview); mgui_widget* mgui_scrollview_to_widget(mgui_scrollview *list); mgui_scrollview* mgui_widget_to_scrollview(mgui_widget *widget); |