[b]Note:[/b] The ID values used for buttons are limited to 32 bits, not full 64 bits of [int]. This has a range of [code]-2^32[/code] to [code]2^32 - 1[/code], i.e. [code]-2147483648[/code] to [code]2147483647[/code].
Adds a button with [Texture] [code]button[/code] at column [code]column[/code]. The [code]id[/code] is used to identify the button. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately before this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code].
If [code]wrap[/code] 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 [code]null[/code].
</description>
</method>
<methodname="get_parent">
<returntype="TreeItem"/>
<description>
Returns the parent TreeItem or a null object if there is none.
If [code]wrap[/code] 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 [code]null[/code].
</description>
</method>
<methodname="get_range"qualifiers="const">
<returntype="float"/>
<argumentindex="0"name="column"type="int"/>
<description>
Returns the value of a [constant CELL_MODE_RANGE] column.
</description>
</method>
<methodname="get_range_config">
<returntype="Dictionary"/>
<argumentindex="0"name="column"type="int"/>
<description>
Returns a dictionary containing the range parameters for a given column. The keys are "min", "max", "step", and "expr".
</description>
</method>
<methodname="get_suffix"qualifiers="const">
<returntype="String"/>
<argumentindex="0"name="column"type="int"/>
<description>
Gets the suffix string shown after the column value.
Returns [code]true[/code] if column [code]column[/code] is editable.
</description>
</method>
<methodname="is_selectable"qualifiers="const">
<returntype="bool"/>
<argumentindex="0"name="column"type="int"/>
<description>
Returns [code]true[/code] if column [code]column[/code] is selectable.
</description>
</method>
<methodname="is_selected">
<returntype="bool"/>
<argumentindex="0"name="column"type="int"/>
<description>
Returns [code]true[/code] if column [code]column[/code] is selected.
</description>
</method>
<methodname="move_to_bottom">
<returntype="void"/>
<description>
Moves this TreeItem to the bottom in the [Tree] hierarchy.
</description>
</method>
<methodname="move_to_top">
<returntype="void"/>
<description>
Moves this TreeItem to the top in the [Tree] hierarchy.
</description>
</method>
<methodname="remove_child">
<returntype="void"/>
<argumentindex="0"name="child"type="Object"/>
<description>
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 [method Object.free].
</description>
</method>
<methodname="select">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<description>
Selects the column [code]column[/code].
</description>
</method>
<methodname="set_button">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="button_idx"type="int"/>
<argumentindex="2"name="button"type="Texture"/>
<description>
Sets the given column's button [Texture] at index [code]button_idx[/code] to [code]button[/code].
</description>
</method>
<methodname="set_button_disabled">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="button_idx"type="int"/>
<argumentindex="2"name="disabled"type="bool"/>
<description>
If [code]true[/code], disables the button at index [code]button_idx[/code] in column [code]column[/code].
If [code]true[/code], column [code]column[/code] is editable.
</description>
</method>
<methodname="set_expand_right">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="enable"type="bool"/>
<description>
If [code]true[/code], column [code]column[/code] is expanded to the right.
</description>
</method>
<methodname="set_icon">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="texture"type="Texture"/>
<description>
Sets the given column's icon [Texture].
</description>
</method>
<methodname="set_icon_max_width">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="width"type="int"/>
<description>
Sets the given column's icon's maximum width.
</description>
</method>
<methodname="set_icon_modulate">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="modulate"type="Color"/>
<description>
Modulates the given column's icon with [code]modulate[/code].
</description>
</method>
<methodname="set_icon_region">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="region"type="Rect2"/>
<description>
Sets the given column's icon's texture region.
</description>
</method>
<methodname="set_metadata">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="meta"type="Variant"/>
<description>
Sets the metadata value for the given column, which can be retrieved later using [method get_metadata]. This can be used, for example, to store a reference to the original data.
</description>
</method>
<methodname="set_range">
<returntype="void"/>
<argumentindex="0"name="column"type="int"/>
<argumentindex="1"name="value"type="float"/>
<description>
Sets the value of a [constant CELL_MODE_RANGE] column.