Control for a single item inside a [Tree]. Control for a single item inside a [Tree]. May have child [code]TreeItem[/code]s and be styled as well as contain buttons. Adds a button with [Texture] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code]. Resets the background color for the given column to default. Resets the color for the given column to default. Deselects the given column. Removes the button at index [code]button_idx[/code] in column [code]column[/code]. Returns the [Texture] of the button at index [code]button_idx[/code] in column [code]column[/code]. Returns the number of buttons in column [code]column[/code]. May be used to get the most recently added button's index, if no index was specified. Returns the column's cell mode. See [code]CELL_MODE_*[/code] constants. Returns the TreeItem's child items. Returns the custom background color of column [code]column[/code]. Returns [code]true[/code] if [code]expand_right[/code] is set. Returns the given column's icon [Texture]. Error if no icon is set. Returns the column's icon's maximum width. Returns the icon [Texture] region as [Rect2]. Returns the next TreeItem in the tree. Returns the next visible TreeItem in the tree. Returns the parent TreeItem. Returns the previous TreeItem in the tree. Returns the previous visible TreeItem in the tree. Returns the given column's text. Returns the given column's text alignment. Returns the given column's tooltip. Returns [code]true[/code] if the button at index [code]button_idx[/code] for the given column is disabled. Returns [code]true[/code] if the given column is checked. Returns [code]true[/code] if column [code]column[/code] is editable. Returns [code]true[/code] if column [code]column[/code] is selectable. Returns [code]true[/code] if column [code]column[/code] is selected. Moves this TreeItem to the bottom in the [Tree] hierarchy. Moves this TreeItem to the top in the [Tree] hierarchy. Removes the given child TreeItem. Selects the column [code]column[/code]. Sets the given column's button [Texture] at index [code]button_idx[/code] to [code]button[/code]. Sets the given column's cell mode to [code]mode[/code]. See [code]CELL_MODE_*[/code] constants. If [code]true[/code] the column [code]column[/code] is checked. Sets the given column's custom background color and whether to just use it as an outline. Sets the given column's custom color. Sets the given column's custom draw callback to [code]callback[/code] method on [code]object[/code]. The [code]callback[/code] should accept two arguments: the [TreeItem] that is drawn and its position and size as a [Rect2]. If [code]true[/code] column [code]column[/code] is editable. If [code]true[/code] column [code]column[/code] is expanded to the right. Sets the given column's icon [Texture]. Sets the given column's icon's maximum width. Sets the given column's icon's texture region. If [code]true[/code] the given column is selectable. Sets the given column's text alignment. See [code]ALIGN_*[/code] constants. Sets the given column's tooltip text. If [code]true[/code] the TreeItem is collapsed. The custom minimum height. If [code]true[/code] folding is disabled for this TreeItem. Cell contains a string. Cell can be checked. Cell contains a range. Cell contains a range expression. Cell contains an icon. Align text to the left. See [code]set_text_align()[/code]. Center text. See [code]set_text_align()[/code]. Align text to the right. See [code]set_text_align()[/code].