diff options
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 |