diff options
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r-- | scene/gui/tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h index 75ce6b689d..e556790c43 100644 --- a/scene/gui/tree.h +++ b/scene/gui/tree.h @@ -724,8 +724,9 @@ public: int get_item_offset(TreeItem *p_item) const; Rect2 get_item_rect(TreeItem *p_item, int p_column = -1, int p_button = -1) const; - bool edit_selected(); + bool edit_selected(bool p_force_edit = false); bool is_editing(); + void set_editor_selection(int p_from_line, int p_to_line, int p_from_column = -1, int p_to_column = -1, int p_caret = 0); // First item that starts with the text, from the current focused item down and wraps around. TreeItem *search_item_text(const String &p_find, int *r_col = nullptr, bool p_selectable = false); |