Adds a button with Texture button at column column. The button_idx 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 getButtonCount immediately after this method. Optionally, the button can be disabled and have a tooltip.
Calls the method on the actual TreeItem and its children recursively. Pass parameters as a comma separated list.
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 button_idx in column column.
Returns the Texture of the button at index button_idx in column column.
Returns the number of buttons in column column. May be used to get the most recently added button's index, if no index was specified.
Returns the tooltip string for the button at index button_idx in column column.
Returns the column's cell mode.
Returns the TreeItem's first child item or a null object if there is none.
Returns the custom background color of column column.
Returns the custom color of column column.
Returns true if expand_right 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 Color modulating the column's icon.
Returns the icon Texture region as Rect2.
Returns the metadata value that was set for the given column using setMetadata.
Returns the next TreeItem in the tree or a null object if there is none.
Returns the next visible TreeItem in the tree or a null object if there is none. If wrap is enabled, the method will wrap around to the first visible element in the tree when called on the last visible element, otherwise it returns null.
Returns the parent TreeItem or a null object if there is none.
Returns the previous TreeItem in the tree or a null object if there is none.
Returns the previous visible TreeItem in the tree or a null object if there is none. If wrap is enabled, the method will wrap around to the last visible element in the tree when called on the first visible element, otherwise it returns null.
Returns the value of a constant CELL_MODE_RANGE column.
Returns a dictionary containing the range parameters for a given column. The keys are "min", "max", "step", and "expr".
Gets the suffix string shown after the column value.
Returns the given column's text.
Returns the given column's text alignment.
Returns the given column's tooltip.
Returns true if the button at index button_idx for the given column is disabled.
Returns true if the given column is checked.
Returns true if column column is editable.
Returns true if column column is selectable.
Returns true if column column 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 and all its children from the Tree. Note that it doesn't free the item from memory, so it can be reused later. To completely remove a TreeItem use GodotObject.free.
Selects the column column.
Sets the given column's button Texture at index button_idx to button.
If true, disables the button at index button_idx in column column.
Sets the given column's cell mode to mode. See treecellmode constants.
If true, the column column 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 callback method on object. The callback should accept two arguments: the TreeItem that is drawn and its position and size as a Rect2.
If true, column column is editable.
If true, column column is expanded to the right.
Sets the given column's icon Texture.
Sets the given column's icon's maximum width.
Modulates the given column's icon with modulate.
Sets the given column's icon's texture region.
Sets the metadata value for the given column, which can be retrieved later using getMetadata. This can be used, for example, to store a reference to the original data.
Sets the value of a constant CELL_MODE_RANGE column.
Sets the range of accepted values for a column. The column must be in the constant CELL_MODE_RANGE mode. If expr is true, the edit mode slider will use an exponential scale as with Range.expEdit.
If true, the given column is selectable.
Sets a string to be shown after a column's value (for example, a unit abbreviation).
Sets the given column's text value.
Sets the given column's text alignment. See textalign for possible values.
Sets the given column's tooltip text.
If true, the TreeItem is collapsed.
The custom minimum height.
If true, folding is disabled for this TreeItem.
Construct a new instance of TreeItem. Note: use memnew!TreeItem instead.
Control for a single item inside a Tree.
May have child TreeItems and be styled as well as contain buttons. You can remove a TreeItem by using GodotObject.free.