- addButton
void addButton(long column, Texture button, long button_idx, bool disabled, StringArg4 tooltip)
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.
- clearCustomBgColor
void clearCustomBgColor(long column)
Resets the background color for the given column to default.
- clearCustomColor
void clearCustomColor(long column)
Resets the color for the given column to default.
- deselect
void deselect(long column)
Deselects the given column.
- eraseButton
void eraseButton(long column, long button_idx)
Removes the button at index button_idx in column column.
- getButton
Ref!Texture getButton(long column, long button_idx)
Returns the Texture of the button at index button_idx in column column.
- getButtonCount
long getButtonCount(long 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.
- getCellMode
TreeItem.TreeCellMode getCellMode(long column)
Returns the column's cell mode. See CELL_MODE_* constants.
- getChildren
TreeItem getChildren()
Returns the TreeItem's child items.
- getCustomBgColor
Color getCustomBgColor(long column)
Returns the custom background color of column column.
- getCustomMinimumHeight
long getCustomMinimumHeight()
- getExpandRight
bool getExpandRight(long column)
Returns true if expand_right is set.
- getIcon
Ref!Texture getIcon(long column)
Returns the given column's icon Texture. Error if no icon is set.
- getIconMaxWidth
long getIconMaxWidth(long column)
Returns the column's icon's maximum width.
- getIconRegion
Rect2 getIconRegion(long column)
Returns the icon Texture region as Rect2.
- getMetadata
Variant getMetadata(long column)
- getNext
TreeItem getNext()
Returns the next TreeItem in the tree.
- getNextVisible
TreeItem getNextVisible()
Returns the next visible TreeItem in the tree.
- getParent
TreeItem getParent()
Returns the parent TreeItem.
- getPrev
TreeItem getPrev()
Returns the previous TreeItem in the tree.
- getPrevVisible
TreeItem getPrevVisible()
Returns the previous visible TreeItem in the tree.
- getRange
double getRange(long column)
- getRangeConfig
Dictionary getRangeConfig(long column)
- getText
String getText(long column)
Returns the given column's text.
- getTextAlign
TreeItem.TextAlign getTextAlign(long column)
Returns the given column's text alignment.
- getTooltip
String getTooltip(long column)
Returns the given column's tooltip.
- isButtonDisabled
bool isButtonDisabled(long column, long button_idx)
Returns true if the button at index button_idx for the given column is disabled.
- isChecked
bool isChecked(long column)
Returns true if the given column is checked.
- isCollapsed
bool isCollapsed()
- isCustomSetAsButton
bool isCustomSetAsButton(long column)
- isEditable
bool isEditable(long column)
Returns true if column column is editable.
- isFoldingDisabled
bool isFoldingDisabled()
- isSelectable
bool isSelectable(long column)
Returns true if column column is selectable.
- isSelected
bool isSelected(long column)
Returns true if column column is selected.
- moveToBottom
void moveToBottom()
Moves this TreeItem to the bottom in the Tree hierarchy.
- moveToTop
void moveToTop()
Moves this TreeItem to the top in the Tree hierarchy.
- opAssign
TreeItem opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(TreeItem other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeChild
void removeChild(GodotObject child)
Removes the given child TreeItem.
- select
void select(long column)
Selects the column column.
- setButton
void setButton(long column, long button_idx, Texture button)
Sets the given column's button Texture at index button_idx to button.
- setCellMode
void setCellMode(long column, long mode)
Sets the given column's cell mode to mode. See CELL_MODE_* constants.
- setChecked
void setChecked(long column, bool checked)
If true the column column is checked.
- setCollapsed
void setCollapsed(bool enable)
- setCustomAsButton
void setCustomAsButton(long column, bool enable)
- setCustomBgColor
void setCustomBgColor(long column, Color color, bool just_outline)
Sets the given column's custom background color and whether to just use it as an outline.
- setCustomColor
void setCustomColor(long column, Color color)
Sets the given column's custom color.
- setCustomDraw
void setCustomDraw(long column, GodotObject object, StringArg2 callback)
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.
- setCustomMinimumHeight
void setCustomMinimumHeight(long height)
- setDisableFolding
void setDisableFolding(bool disable)
- setEditable
void setEditable(long column, bool enabled)
If true column column is editable.
- setExpandRight
void setExpandRight(long column, bool enable)
If true column column is expanded to the right.
- setIcon
void setIcon(long column, Texture texture)
Sets the given column's icon Texture.
- setIconMaxWidth
void setIconMaxWidth(long column, long width)
Sets the given column's icon's maximum width.
- setIconRegion
void setIconRegion(long column, Rect2 region)
Sets the given column's icon's texture region.
- setMetadata
void setMetadata(long column, VariantArg1 meta)
- setRange
void setRange(long column, double value)
- setRangeConfig
void setRangeConfig(long column, double min, double max, double step, bool expr)
- setSelectable
void setSelectable(long column, bool selectable)
If true the given column is selectable.
- setText
void setText(long column, StringArg1 text)
- setTextAlign
void setTextAlign(long column, long text_align)
Sets the given column's text alignment. See ALIGN_* constants.
- setTooltip
void setTooltip(long column, StringArg1 tooltip)
Sets the given column's tooltip text.
Control for a single item inside a Tree.
May have child TreeItems and be styled as well as contain buttons.