diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-25 13:39:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-25 13:39:33 +0200 |
commit | 3d5e8baa5f66547f1250950b10bd4108e30af423 (patch) | |
tree | 890101088903316749e2843829eb3aa6b67cd3ce /include/gui/ScrollablePage.hpp | |
parent | b8e6949dfb8a88c832e82f8b7e853fe0ed462da0 (diff) |
File chooser navigation
Diffstat (limited to 'include/gui/ScrollablePage.hpp')
-rw-r--r-- | include/gui/ScrollablePage.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gui/ScrollablePage.hpp b/include/gui/ScrollablePage.hpp index 09c618f..5a31b92 100644 --- a/include/gui/ScrollablePage.hpp +++ b/include/gui/ScrollablePage.hpp @@ -18,8 +18,12 @@ namespace gsr { void set_size(mgl::vec2f size); void add_widget(std::unique_ptr<Widget> widget); + + void reset_scroll(); private: mgl::vec2f size; SafeVector<std::unique_ptr<Widget>> widgets; + int scroll_target_y = 0; + double scroll_y = 0.0; }; }
\ No newline at end of file |