summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r--scene/gui/tree.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h
index f125c4a781..42fc719f46 100644
--- a/scene/gui/tree.h
+++ b/scene/gui/tree.h
@@ -549,6 +549,13 @@ private:
int scroll_border = 0;
int scroll_speed = 0;
+
+ int scrollbar_margin_top = -1;
+ int scrollbar_margin_right = -1;
+ int scrollbar_margin_bottom = -1;
+ int scrollbar_margin_left = -1;
+ int scrollbar_h_separation = 0;
+ int scrollbar_v_separation = 0;
} theme_cache;
struct Cache {
@@ -635,6 +642,9 @@ private:
bool _scroll(bool p_horizontal, float p_pages);
+ Rect2 _get_scrollbar_layout_rect() const;
+ Rect2 _get_content_rect() const; // Considering the background stylebox and scrollbars.
+
protected:
virtual void _update_theme_item_cache() override;