summaryrefslogtreecommitdiff
path: root/scene/gui/scroll_bar.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-19 18:01:33 +0200
committerGitHub <noreply@github.com>2017-08-19 18:01:33 +0200
commit395544b4d09c3c28b3988eb42c567951974351dd (patch)
treee814d6d485e65f88523820c40277ff19947c592c /scene/gui/scroll_bar.h
parentce85179e5df30f2670f9a7f2089d13e1676ebdd1 (diff)
parenta142c9a2f0be65218058c35b94202fbc4fd2c84c (diff)
Merge pull request #10447 from Paulb23/smooth_scrolling
Added smooth scrolling to TextEdit
Diffstat (limited to 'scene/gui/scroll_bar.h')
-rw-r--r--scene/gui/scroll_bar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/scroll_bar.h b/scene/gui/scroll_bar.h
index 8310e12590..e22d4da46d 100644
--- a/scene/gui/scroll_bar.h
+++ b/scene/gui/scroll_bar.h
@@ -83,6 +83,10 @@ class ScrollBar : public Range {
bool drag_slave_touching_deaccel;
bool click_handled;
+ bool scrolling;
+ double target_scroll;
+ bool smooth_scroll_enabled;
+
void _drag_slave_exit();
void _drag_slave_input(const Ref<InputEvent> &p_input);
@@ -100,6 +104,9 @@ public:
void set_drag_slave(const NodePath &p_path);
NodePath get_drag_slave() const;
+ void set_smooth_scroll_enabled(bool p_enable);
+ bool is_smooth_scroll_enabled() const;
+
virtual Size2 get_minimum_size() const;
ScrollBar(Orientation p_orientation = VERTICAL);
~ScrollBar();