TreeItem

gdext.classes.TreeItem
See theTreeItem companion object
abstract class TreeItem extends Object

Generated wrapper for Godot's TreeItem, extends Object.

Attributes

Companion
object
Graph
Supertypes
class Object
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final def addButton(column: Long, button: Texture2D, id: Long, disabled: Boolean, tooltip_text: String, description: String): Unit

TreeItem.add_button

TreeItem.add_button

Attributes

final def addChild(child: TreeItem): Unit

TreeItem.add_child

TreeItem.add_child

Attributes

final def clearButtons(): Unit

TreeItem.clear_buttons

TreeItem.clear_buttons

Attributes

final def clearCustomBgColor(column: Long): Unit

TreeItem.clear_custom_bg_color

TreeItem.clear_custom_bg_color

Attributes

final def clearCustomColor(column: Long): Unit

TreeItem.clear_custom_color

TreeItem.clear_custom_color

Attributes

final def createChild(index: Long): TreeItem

TreeItem.create_child

TreeItem.create_child

Attributes

final def deselect(column: Long): Unit

TreeItem.deselect

TreeItem.deselect

Attributes

final def eraseButton(column: Long, button_index: Long): Unit

TreeItem.erase_button

TreeItem.erase_button

Attributes

final def getAutoTranslateMode(column: Long): Long

TreeItem.get_auto_translate_mode

TreeItem.get_auto_translate_mode

Attributes

final def getAutowrapMode(column: Long): Long

TreeItem.get_autowrap_mode

TreeItem.get_autowrap_mode

Attributes

final def getButton(column: Long, button_index: Long): Texture2D

TreeItem.get_button. Returns an owned reference: release it with unref() or inside Gd.scoped.

TreeItem.get_button. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

final def getButtonById(column: Long, id: Long): Long

TreeItem.get_button_by_id

TreeItem.get_button_by_id

Attributes

final def getButtonColor(column: Long, id: Long): Color

TreeItem.get_button_color

TreeItem.get_button_color

Attributes

final def getButtonCount(column: Long): Long

TreeItem.get_button_count

TreeItem.get_button_count

Attributes

final def getButtonId(column: Long, button_index: Long): Long

TreeItem.get_button_id

TreeItem.get_button_id

Attributes

final def getButtonTooltipText(column: Long, button_index: Long): String

TreeItem.get_button_tooltip_text

TreeItem.get_button_tooltip_text

Attributes

final def getCellMode(column: Long): Long

TreeItem.get_cell_mode

TreeItem.get_cell_mode

Attributes

final def getChild(index: Long): TreeItem

TreeItem.get_child

TreeItem.get_child

Attributes

final def getChildCount(): Long

TreeItem.get_child_count

TreeItem.get_child_count

Attributes

final def getCustomBgColor(column: Long): Color

TreeItem.get_custom_bg_color

TreeItem.get_custom_bg_color

Attributes

final def getCustomColor(column: Long): Color

TreeItem.get_custom_color

TreeItem.get_custom_color

Attributes

final def getCustomFont(column: Long): Font

TreeItem.get_custom_font. Returns an owned reference: release it with unref() or inside Gd.scoped.

TreeItem.get_custom_font. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

final def getCustomFontSize(column: Long): Long

TreeItem.get_custom_font_size

TreeItem.get_custom_font_size

Attributes

final def getCustomMinimumHeight(): Long

TreeItem.get_custom_minimum_height

TreeItem.get_custom_minimum_height

Attributes

final def getCustomStylebox(column: Long): StyleBox

TreeItem.get_custom_stylebox. Returns an owned reference: release it with unref() or inside Gd.scoped.

TreeItem.get_custom_stylebox. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

final def getDescription(column: Long): String

TreeItem.get_description

TreeItem.get_description

Attributes

final def getExpandRight(column: Long): Boolean

TreeItem.get_expand_right

TreeItem.get_expand_right

Attributes

final def getFirstChild(): TreeItem

TreeItem.get_first_child

TreeItem.get_first_child

Attributes

final def getIcon(column: Long): Texture2D

TreeItem.get_icon. Returns an owned reference: release it with unref() or inside Gd.scoped.

TreeItem.get_icon. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

final def getIconMaxWidth(column: Long): Long

TreeItem.get_icon_max_width

TreeItem.get_icon_max_width

Attributes

final def getIconModulate(column: Long): Color

TreeItem.get_icon_modulate

TreeItem.get_icon_modulate

Attributes

final def getIconOverlay(column: Long): Texture2D

TreeItem.get_icon_overlay. Returns an owned reference: release it with unref() or inside Gd.scoped.

TreeItem.get_icon_overlay. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

final def getIconRegion(column: Long): Rect2

TreeItem.get_icon_region

TreeItem.get_icon_region

Attributes

final def getIndex(): Long

TreeItem.get_index

TreeItem.get_index

Attributes

final def getLanguage(column: Long): String

TreeItem.get_language

TreeItem.get_language

Attributes

final def getNext(): TreeItem

TreeItem.get_next

TreeItem.get_next

Attributes

final def getNextInTree(wrap: Boolean): TreeItem

TreeItem.get_next_in_tree

TreeItem.get_next_in_tree

Attributes

final def getNextVisible(wrap: Boolean): TreeItem

TreeItem.get_next_visible

TreeItem.get_next_visible

Attributes

final def getParent(): TreeItem

TreeItem.get_parent

TreeItem.get_parent

Attributes

final def getPrev(): TreeItem

TreeItem.get_prev

TreeItem.get_prev

Attributes

final def getPrevInTree(wrap: Boolean): TreeItem

TreeItem.get_prev_in_tree

TreeItem.get_prev_in_tree

Attributes

final def getPrevVisible(wrap: Boolean): TreeItem

TreeItem.get_prev_visible

TreeItem.get_prev_visible

Attributes

final def getRange(column: Long): Double

TreeItem.get_range

TreeItem.get_range

Attributes

final def getStructuredTextBidiOverride(column: Long): Long

TreeItem.get_structured_text_bidi_override

TreeItem.get_structured_text_bidi_override

Attributes

final def getSuffix(column: Long): String

TreeItem.get_suffix

TreeItem.get_suffix

Attributes

final def getText(column: Long): String

TreeItem.get_text

TreeItem.get_text

Attributes

final def getTextAlignment(column: Long): Long

TreeItem.get_text_alignment

TreeItem.get_text_alignment

Attributes

final def getTextDirection(column: Long): Long

TreeItem.get_text_direction

TreeItem.get_text_direction

Attributes

final def getTextOverrunBehavior(column: Long): Long

TreeItem.get_text_overrun_behavior

TreeItem.get_text_overrun_behavior

Attributes

final def getTooltipText(column: Long): String

TreeItem.get_tooltip_text

TreeItem.get_tooltip_text

Attributes

final def getTree(): Tree

TreeItem.get_tree

TreeItem.get_tree

Attributes

override def godotClassName: String

The Godot class name for this instance. Engine wrappers override with the baked literal; user classes fall back to their Scala simple name (which is how registration names them).

The Godot class name for this instance. Engine wrappers override with the baked literal; user classes fall back to their Scala simple name (which is how registration names them).

Attributes

Definition Classes
final def isAnyCollapsed(only_visible: Boolean): Boolean

TreeItem.is_any_collapsed

TreeItem.is_any_collapsed

Attributes

final def isButtonDisabled(column: Long, button_index: Long): Boolean

TreeItem.is_button_disabled

TreeItem.is_button_disabled

Attributes

final def isChecked(column: Long): Boolean

TreeItem.is_checked

TreeItem.is_checked

Attributes

final def isCollapsed(): Boolean

TreeItem.is_collapsed

TreeItem.is_collapsed

Attributes

final def isCustomSetAsButton(column: Long): Boolean

TreeItem.is_custom_set_as_button

TreeItem.is_custom_set_as_button

Attributes

final def isEditMultiline(column: Long): Boolean

TreeItem.is_edit_multiline

TreeItem.is_edit_multiline

Attributes

final def isEditable(column: Long): Boolean

TreeItem.is_editable

TreeItem.is_editable

Attributes

final def isFoldingDisabled(): Boolean

TreeItem.is_folding_disabled

TreeItem.is_folding_disabled

Attributes

final def isIndeterminate(column: Long): Boolean

TreeItem.is_indeterminate

TreeItem.is_indeterminate

Attributes

final def isSelectable(column: Long): Boolean

TreeItem.is_selectable

TreeItem.is_selectable

Attributes

final def isSelected(column: Long): Boolean

TreeItem.is_selected

TreeItem.is_selected

Attributes

final def isVisible(): Boolean

TreeItem.is_visible

TreeItem.is_visible

Attributes

final def isVisibleInTree(): Boolean

TreeItem.is_visible_in_tree

TreeItem.is_visible_in_tree

Attributes

final def moveAfter(item: TreeItem): Unit

TreeItem.move_after

TreeItem.move_after

Attributes

final def moveBefore(item: TreeItem): Unit

TreeItem.move_before

TreeItem.move_before

Attributes

final def propagateCheck(column: Long, emit_signal: Boolean): Unit

TreeItem.propagate_check

TreeItem.propagate_check

Attributes

final def removeChild(child: TreeItem): Unit

TreeItem.remove_child

TreeItem.remove_child

Attributes

final def select(column: Long): Unit

TreeItem.select

TreeItem.select

Attributes

final def setAutoTranslateMode(column: Long, mode: Long): Unit

TreeItem.set_auto_translate_mode

TreeItem.set_auto_translate_mode

Attributes

final def setAutowrapMode(column: Long, autowrap_mode: Long): Unit

TreeItem.set_autowrap_mode

TreeItem.set_autowrap_mode

Attributes

final def setButton(column: Long, button_index: Long, button: Texture2D): Unit

TreeItem.set_button

TreeItem.set_button

Attributes

final def setButtonColor(column: Long, button_index: Long, color: Color): Unit

TreeItem.set_button_color

TreeItem.set_button_color

Attributes

final def setButtonDescription(column: Long, button_index: Long, description: String): Unit

TreeItem.set_button_description

TreeItem.set_button_description

Attributes

final def setButtonDisabled(column: Long, button_index: Long, disabled: Boolean): Unit

TreeItem.set_button_disabled

TreeItem.set_button_disabled

Attributes

final def setButtonTooltipText(column: Long, button_index: Long, tooltip: String): Unit

TreeItem.set_button_tooltip_text

TreeItem.set_button_tooltip_text

Attributes

final def setCellMode(column: Long, mode: Long): Unit

TreeItem.set_cell_mode

TreeItem.set_cell_mode

Attributes

final def setChecked(column: Long, checked: Boolean): Unit

TreeItem.set_checked

TreeItem.set_checked

Attributes

final def setCollapsed(enable: Boolean): Unit

TreeItem.set_collapsed

TreeItem.set_collapsed

Attributes

final def setCollapsedRecursive(enable: Boolean): Unit

TreeItem.set_collapsed_recursive

TreeItem.set_collapsed_recursive

Attributes

final def setCustomAsButton(column: Long, enable: Boolean): Unit

TreeItem.set_custom_as_button

TreeItem.set_custom_as_button

Attributes

final def setCustomBgColor(column: Long, color: Color, just_outline: Boolean): Unit

TreeItem.set_custom_bg_color

TreeItem.set_custom_bg_color

Attributes

final def setCustomColor(column: Long, color: Color): Unit

TreeItem.set_custom_color

TreeItem.set_custom_color

Attributes

final def setCustomDraw(column: Long, `object`: Object, callback: StringName): Unit

TreeItem.set_custom_draw

TreeItem.set_custom_draw

Attributes

final def setCustomFont(column: Long, font: Font): Unit

TreeItem.set_custom_font

TreeItem.set_custom_font

Attributes

final def setCustomFontSize(column: Long, font_size: Long): Unit

TreeItem.set_custom_font_size

TreeItem.set_custom_font_size

Attributes

final def setCustomMinimumHeight(height: Long): Unit

TreeItem.set_custom_minimum_height

TreeItem.set_custom_minimum_height

Attributes

final def setCustomStylebox(column: Long, stylebox: StyleBox): Unit

TreeItem.set_custom_stylebox

TreeItem.set_custom_stylebox

Attributes

final def setDescription(column: Long, description: String): Unit

TreeItem.set_description

TreeItem.set_description

Attributes

final def setDisableFolding(disable: Boolean): Unit

TreeItem.set_disable_folding

TreeItem.set_disable_folding

Attributes

final def setEditMultiline(column: Long, multiline: Boolean): Unit

TreeItem.set_edit_multiline

TreeItem.set_edit_multiline

Attributes

final def setEditable(column: Long, enabled: Boolean): Unit

TreeItem.set_editable

TreeItem.set_editable

Attributes

final def setExpandRight(column: Long, enable: Boolean): Unit

TreeItem.set_expand_right

TreeItem.set_expand_right

Attributes

final def setIcon(column: Long, texture: Texture2D): Unit

TreeItem.set_icon

TreeItem.set_icon

Attributes

final def setIconMaxWidth(column: Long, width: Long): Unit

TreeItem.set_icon_max_width

TreeItem.set_icon_max_width

Attributes

final def setIconModulate(column: Long, modulate: Color): Unit

TreeItem.set_icon_modulate

TreeItem.set_icon_modulate

Attributes

final def setIconOverlay(column: Long, texture: Texture2D): Unit

TreeItem.set_icon_overlay

TreeItem.set_icon_overlay

Attributes

final def setIconRegion(column: Long, region: Rect2): Unit

TreeItem.set_icon_region

TreeItem.set_icon_region

Attributes

final def setIndeterminate(column: Long, indeterminate: Boolean): Unit

TreeItem.set_indeterminate

TreeItem.set_indeterminate

Attributes

final def setLanguage(column: Long, language: String): Unit

TreeItem.set_language

TreeItem.set_language

Attributes

final def setRange(column: Long, value: Double): Unit

TreeItem.set_range

TreeItem.set_range

Attributes

final def setRangeConfig(column: Long, min: Double, max: Double, step: Double, expr: Boolean): Unit

TreeItem.set_range_config

TreeItem.set_range_config

Attributes

final def setSelectable(column: Long, selectable: Boolean): Unit

TreeItem.set_selectable

TreeItem.set_selectable

Attributes

final def setStructuredTextBidiOverride(column: Long, parser: Long): Unit

TreeItem.set_structured_text_bidi_override

TreeItem.set_structured_text_bidi_override

Attributes

final def setSuffix(column: Long, text: String): Unit

TreeItem.set_suffix

TreeItem.set_suffix

Attributes

final def setText(column: Long, text: String): Unit

TreeItem.set_text

TreeItem.set_text

Attributes

final def setTextAlignment(column: Long, text_alignment: Long): Unit

TreeItem.set_text_alignment

TreeItem.set_text_alignment

Attributes

final def setTextDirection(column: Long, direction: Long): Unit

TreeItem.set_text_direction

TreeItem.set_text_direction

Attributes

final def setTextOverrunBehavior(column: Long, overrun_behavior: Long): Unit

TreeItem.set_text_overrun_behavior

TreeItem.set_text_overrun_behavior

Attributes

final def setTooltipText(column: Long, tooltip: String): Unit

TreeItem.set_tooltip_text

TreeItem.set_tooltip_text

Attributes

final def setVisible(enable: Boolean): Unit

TreeItem.set_visible

TreeItem.set_visible

Attributes

final def uncollapseTree(): Unit

TreeItem.uncollapse_tree

TreeItem.uncollapse_tree

Attributes

Inherited methods

def _can_handle(obj: GodotObject): Boolean

EditorInspectorPlugin: can this plugin handle obj's inspector?

EditorInspectorPlugin: can this plugin handle obj's inspector?

Attributes

Inherited from:
GodotScriptClass
def _enter_tree(): Unit

EditorPlugin/Node: entered the (editor) tree.

EditorPlugin/Node: entered the (editor) tree.

Attributes

Inherited from:
GodotScriptClass
def _exit_tree(): Unit

EditorPlugin/Node: leaving the (editor) tree.

EditorPlugin/Node: leaving the (editor) tree.

Attributes

Inherited from:
GodotScriptClass
def _input(event: InputEvent): Unit

Called for every unhandled-or-not input event (Node._input).

Called for every unhandled-or-not input event (Node._input).

Attributes

Inherited from:
GodotScriptClass
def _parse_property(obj: GodotObject, varType: Long, name: String, hintType: Long, hintString: String, usage: Long, wide: Boolean): Boolean

EditorInspectorPlugin: inspect one property. Return true to take it over (after calling addPropertyEditor), false to let the default editor render.

EditorInspectorPlugin: inspect one property. Return true to take it over (after calling addPropertyEditor), false to let the default editor render.

Attributes

Inherited from:
GodotScriptClass
def _physics_process(delta: Double): Unit

Called every physics frame; delta is the fixed physics step.

Called every physics frame; delta is the fixed physics step.

Attributes

Inherited from:
GodotScriptClass
def _process(delta: Double): Unit

Called every rendered frame; delta is seconds since the last frame.

Called every rendered frame; delta is seconds since the last frame.

Attributes

Inherited from:
GodotScriptClass
def _ready(): Unit

Called when the node enters the scene tree and is ready.

Called when the node enters the scene tree and is ready.

Attributes

Inherited from:
GodotScriptClass
def _shortcut_input(event: InputEvent): Unit

Called for shortcut input before _unhandled_input (Node._shortcut_input).

Called for shortcut input before _unhandled_input (Node._shortcut_input).

Attributes

Inherited from:
GodotScriptClass
def _unhandled_input(event: InputEvent): Unit

Called for input not consumed by the UI (Node._unhandled_input).

Called for input not consumed by the UI (Node._unhandled_input).

Attributes

Inherited from:
GodotScriptClass
def _unhandled_key_input(event: InputEvent): Unit

Called for unhandled key input (Node._unhandled_key_input).

Called for unhandled key input (Node._unhandled_key_input).

Attributes

Inherited from:
GodotScriptClass
def _update_property(): Unit

EditorProperty: refresh the widget from the edited property's value.

EditorProperty: refresh the widget from the edited property's value.

Attributes

Inherited from:
GodotScriptClass
final def canTranslateMessages(): Boolean

Object.can_translate_messages

Object.can_translate_messages

Attributes

Inherited from:
Object
final def cancelFree(): Unit

Object.cancel_free

Object.cancel_free

Attributes

Inherited from:
Object
def cast[U <: GodotScriptClass](using meta: ClassMeta[U]): U

Cast to a (super- or sub-) class U. Returns null if the object is not actually a U. Uses object_cast_to with U's class tag — a real engine type check, not a Scala cast.

Cast to a (super- or sub-) class U. Returns null if the object is not actually a U. Uses object_cast_to with U's class tag — a real engine type check, not a Scala cast.

Attributes

Inherited from:
GodotScriptClass
def free(): Unit

Free a manually-managed object via object_destroy. No-op for reference-counted objects — use unref for those. The wrapper is dead afterwards: calling an engine method on it throws.

Free a manually-managed object via object_destroy. No-op for reference-counted objects — use unref for those. The wrapper is dead afterwards: calling an engine method on it throws.

Attributes

Inherited from:
GodotScriptClass
final def getInstanceId(): Long

Object.get_instance_id

Object.get_instance_id

Attributes

Inherited from:
Object
final def getMethodArgumentCount(method: StringName): Long

Object.get_method_argument_count

Object.get_method_argument_count

Attributes

Inherited from:
Object

Object.get_translation_domain

Object.get_translation_domain

Attributes

Inherited from:
Object
final def hasConnections(signal: StringName): Boolean

Object.has_connections

Object.has_connections

Attributes

Inherited from:
Object
final def hasMeta(name: StringName): Boolean

Object.has_meta

Object.has_meta

Attributes

Inherited from:
Object
final def hasMethod(method: StringName): Boolean

Object.has_method

Object.has_method

Attributes

Inherited from:
Object
final def hasSignal(signal: StringName): Boolean

Object.has_signal

Object.has_signal

Attributes

Inherited from:
Object
final def hasUserSignal(signal: StringName): Boolean

Object.has_user_signal

Object.has_user_signal

Attributes

Inherited from:
Object
final def hostObject: GodotObject

The engine-side object handle for this instance.

The engine-side object handle for this instance.

Attributes

Inherited from:
GodotScriptClass
final def instanceId: InstanceId

This object's stable Godot InstanceId (the null sentinel if unbound). Mirrors Object.get_instance_id, but typed — pass it to APIs that key off a node's identity.

This object's stable Godot InstanceId (the null sentinel if unbound). Mirrors Object.get_instance_id, but typed — pass it to APIs that key off a node's identity.

Attributes

Inherited from:
GodotScriptClass
final def isBlockingSignals(): Boolean

Object.is_blocking_signals

Object.is_blocking_signals

Attributes

Inherited from:
Object
final def isClass(`class`: String): Boolean

Object.is_class

Object.is_class

Attributes

Inherited from:
Object
final def isQueuedForDeletion(): Boolean

Object.is_queued_for_deletion

Object.is_queued_for_deletion

Attributes

Inherited from:
Object
final def isRefCounted: Boolean

True if this object is reference-counted (RefCounted subtree, e.g. a Resource) vs manually-managed (Object/Node subtree). Drives the lifetime methods below.

True if this object is reference-counted (RefCounted subtree, e.g. a Resource) vs manually-managed (Object/Node subtree). Drives the lifetime methods below.

Attributes

Inherited from:
GodotScriptClass
def keep(): this.type

Keep a reference adopted inside Gd.scoped past the end of the block: the caller now owns it and releases it with unref. Returns this.

Keep a reference adopted inside Gd.scoped past the end of the block: the caller now owns it and releases it with unref. Returns this.

Attributes

Inherited from:
GodotScriptClass
final def notification(what: Long, reversed: Boolean): Unit

Object.notification

Object.notification

Attributes

Inherited from:
Object
final def notifyPropertyListChanged(): Unit

Object.notify_property_list_changed

Object.notify_property_list_changed

Attributes

Inherited from:
Object
final def propertyCanRevert(property: StringName): Boolean

Object.property_can_revert

Object.property_can_revert

Attributes

Inherited from:
Object
def refInc(): this.type

Take one more reference on a reference-counted object, owned by this wrapper until a matching unref. No-op for manually-managed objects (nodes). Returns this. (Named refInc rather than reference to avoid clashing with the generated RefCounted.reference(): Boolean method.)

Take one more reference on a reference-counted object, owned by this wrapper until a matching unref. No-op for manually-managed objects (nodes). Returns this. (Named refInc rather than reference to avoid clashing with the generated RefCounted.reference(): Boolean method.)

Attributes

Inherited from:
GodotScriptClass
final def removeMeta(name: StringName): Unit

Object.remove_meta

Object.remove_meta

Attributes

Inherited from:
Object
final def removeUserSignal(signal: StringName): Unit

Object.remove_user_signal

Object.remove_user_signal

Attributes

Inherited from:
Object
final def setBlockSignals(enable: Boolean): Unit

Object.set_block_signals

Object.set_block_signals

Attributes

Inherited from:
Object
final def setMessageTranslation(enable: Boolean): Unit

Object.set_message_translation

Object.set_message_translation

Attributes

Inherited from:
Object
final def setTranslationDomain(domain: StringName): Unit

Object.set_translation_domain

Object.set_translation_domain

Attributes

Inherited from:
Object
final def tr(message: StringName, context: StringName): String

Object.tr

Object.tr

Attributes

Inherited from:
Object
final def trN(message: StringName, plural_message: StringName, n: Long, context: StringName): String

Object.tr_n

Object.tr_n

Attributes

Inherited from:
Object
def unref(): Unit

Release one reference this wrapper owns (an engine Ref<T> return, Gd.create, or refInc), destroying the object if it was the last reference. Does nothing when the wrapper owns no reference, so a borrowed object can never be freed from under the engine.

Release one reference this wrapper owns (an engine Ref<T> return, Gd.create, or refInc), destroying the object if it was the last reference. Does nothing when the wrapper owns no reference, so a borrowed object can never be freed from under the engine.

Attributes

Inherited from:
GodotScriptClass
final def withHost(o: GDExtensionObjectPtr): this.type

Set the handle and return this (fluent, for wrapping fetched objects).

Set the handle and return this (fluent, for wrapping fetched objects).

Attributes

Inherited from:
GodotScriptClass