summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.h
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-04-18 15:23:31 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-04-18 18:51:36 +0800
commitc78e9c3fbd828458935855a717db67c2794fcb16 (patch)
treeb6a1bb7e129b8fb4b17376653f694a01dd1b8b1e /scene/gui/tree.h
parent2543d192c3f74640393f245e48fdf70e241dbe37 (diff)
downloadredot-engine-c78e9c3fbd828458935855a717db67c2794fcb16.tar.gz
Fix TreeItem button handling
- Fix incorrect tooltip and `get_button_id_at_position()` when column title is visible and when RTL layout is used - Take `button_margin`, `h_separation`, and `item_margin` into account
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r--scene/gui/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h
index c7c266a2e7..311055a2f8 100644
--- a/scene/gui/tree.h
+++ b/scene/gui/tree.h
@@ -645,6 +645,8 @@ private:
TreeItem *_find_item_at_pos(TreeItem *p_item, const Point2 &p_pos, int &r_column, int &h, int &section) const;
+ void _find_button_at_pos(const Point2 &p_pos, TreeItem *&r_item, int &r_column, int &r_index) const;
+
/* float drag_speed;
float drag_accum;