aboutsummaryrefslogtreecommitdiff
path: root/include/gui/ScrollablePage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-11 19:19:10 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-11 19:19:10 +0200
commitcb04c11b2c29d973cdda9b0336024946bb3ca93d (patch)
tree791c067179a64d08531ada23fb2085695e68b14d /include/gui/ScrollablePage.hpp
parent234cc3391eba6be67964e5c98beeecd318b8e779 (diff)
Make checkbox nicer
Diffstat (limited to 'include/gui/ScrollablePage.hpp')
-rw-r--r--include/gui/ScrollablePage.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gui/ScrollablePage.hpp b/include/gui/ScrollablePage.hpp
index ade7c67..452d0e9 100644
--- a/include/gui/ScrollablePage.hpp
+++ b/include/gui/ScrollablePage.hpp
@@ -24,6 +24,10 @@ namespace gsr {
void reset_scroll();
private:
+ void apply_animation();
+ void limit_scroll(double child_height);
+ void limit_scroll_cursor(mgl::Window &window, double child_height, double scrollbar_empty_space);
+ void draw_scrollbar();
float get_scrollbar_width() const;
private:
mgl::vec2f size;