Control to show a tree of items. This shows a tree of items that can be selected, expanded and collapsed. The tree can have multiple columns with custom controls like text editing, buttons and popups. It can be useful for structural displaying and interactions. Trees are built via code, using [TreeItem] objects to create the structure. They have a single root but multiple root can be simulated if a dummy hidden root is added. [codeblock] func _ready(): var tree = Tree.new() var root = tree.create_item() tree.set_hide_root(true) var child1 = tree.create_item(root) var child2 = tree.create_item(root) var subchild1 = tree.create_item(child1) subchild1.set_text(0, "Subchild1") [/codeblock] Get whether the column titles are being shown. Clear the tree. This erases all of the items. Create an item in the tree and add it as the last child of [code]parent[/code]. If parent is not given, it will be added as the last child of the root, or it'll the be the root itself if the tree is empty. Make the current selected item visible. This will scroll the tree to make sure the selected item is in sight. Get whether a right click can select items. Get the column index under the given point. Get the title of the given column. Get the width of the given column in pixels. Get the amount of columns. Get the rectangle for custom popups. Helper to create custom cell controls that display a popup. See [method TreeItem.set_cell_mode]. Get the flags of the current drop mode. Get the current edited item. This is only available for custom cell mode. Get the column of the cell for the current edited icon. This is only available for custom cell mode. Get the rectangle area of the the specified item. If column is specified, only get the position and size of that column, otherwise get the rectangle containing all columns. Get the tree item at the specified position (relative to the tree origin position). Get the next selected item after the given one. Get the index of the last pressed button. Get the root item of the tree. Get the current scrolling position. Get the currently selected item. Get the column number of the current selection. Get whether the folding arrow is hidden. Set whether or not a right mouse button click can select items. Set whether a column will have the "Expand" flag of [Control]. Set the minimum width of a column. Set the title of a column. Set whether the column titles visibility. Set the amount of columns. Set the drop mode as an OR combination of flags. See [code]DROP_MODE_*[/code] constants. Set whether the folding arrow should be hidden. Set whether the root of the tree should be hidden. Set the selection mode. Use one of the [code]SELECT_*[/code] constants. Emitted when a button on the tree was pressed (see [method TreeItem.add_button]). Emitted when a cell is selected. Emitted when a cell with the [code]CELL_MODE_CUSTOM[/code] is clicked to be edited. Emitted when the right mouse button is pressed if RMB selection is active and the tree is empty. Emitted when an item is activated (double-clicked). Emitted when an item is collapsed by a click on the folding arrow. Emitted when an item is editted. Emitted when an item is selected with right mouse button. Emitted when an item is selected with right mouse button.