class Godot::TreeItem

Defined in:

lapis.cr
libgodot/generated/classes/classes_part5.cr

Constructors

Instance Method Summary

Instance methods inherited from class Godot::Object

==(other : Godot::Object) : Bool
==(other : Nil) : Bool
==
, _godot_call_tool_button(button_name : String) : Void _godot_call_tool_button, _godot_call_virtual(method_name : String, delta : Float64) : Void _godot_call_virtual, _godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void _godot_call_virtual_with_data, _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void _godot_get_property, _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void _godot_set_property, add_user_signal(signal : String, arguments : Godot::Array) : Void add_user_signal, alive? : Bool alive?, await_signal(signal_name : String, timeout_sec : Float64 | Nil = nil) : Array(Variant) await_signal, call(method : String, *args) : Pointer(Void) call, call_bool(method : String, *args) : Bool call_bool, call_deferred(method : String, *args) : Pointer(Void) call_deferred, call_f64(method : String, *args) : Float64 call_f64, call_i64(method : String, *args) : Int64 call_i64, call_obj(method : String, *args) : Node | Nil call_obj, call_obj_as(type : T.class, method : String, *args) : T | Nil forall T call_obj_as, call_str(method : String, *args) : String call_str, callv(method : String, arg_array : Godot::Array) : Pointer(Void) callv, can_translate_messages : Bool can_translate_messages, cancel_free : Void cancel_free, check_alive! : Void check_alive!, connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil) : SignalSubscription
connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(signal_name : String, listener_target : Godot::Object, method_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None) : SignalSubscription
connect(signal : String, callable : Pointer(Void), flags : Int64) : Int64
connect
, connect_one_shot(signal_name : String, &block : Array(Variant) -> Void) : SignalSubscription connect_one_shot, destroy : Void destroy, destroyed? : Bool destroyed?, disconnect(signal : String, callable : Pointer(Void)) : Void
disconnect(signal_name : String) : Void
disconnect
, editor_hint? : Bool editor_hint?, emit_signal(name : String) : Void
emit_signal(name : String, *args) : Void
emit_signal
, free : Void free, get(property : String) : Pointer(Void) get, get_class : String get_class, get_incoming_connections : Godot::Array get_incoming_connections, get_indexed(property_path : NodePath) : Pointer(Void) get_indexed, get_instance_id : Int64 get_instance_id, get_meta(name : String, default : Pointer(Void)) : Pointer(Void) get_meta, get_meta_list : Godot::Array get_meta_list, get_method_argument_count(method : String) : Int64 get_method_argument_count, get_method_list : Godot::Array get_method_list, get_property_list : Godot::Array get_property_list, get_script : Pointer(Void) get_script, get_signal_connection_list(signal : String) : Godot::Array get_signal_connection_list, get_signal_list : Godot::Array get_signal_list, get_translation_domain : String get_translation_domain, has_connections(signal : String) : Bool has_connections, has_meta(name : String) : Bool has_meta, has_method(method : String) : Bool has_method, has_signal(signal : String) : Bool has_signal, has_signal?(signal_name : String) : Bool has_signal?, has_user_signal(signal : String) : Bool has_user_signal, hash(hasher) hash, if_alive : self | Nil if_alive, instance_id : UInt64 instance_id, is_blocking_signals : Bool is_blocking_signals, is_class(godot_class : String) : Bool is_class, is_connected(signal : String, callable : Pointer(Void)) : Bool is_connected, is_queued_for_deletion : Bool is_queued_for_deletion, is_valid? : Bool is_valid?, link_class_script : Void link_class_script, notification(what : Int64, reversed : Bool) : Void notification, notify_property_list_changed : Void notify_property_list_changed, pointer : Pointer(Void) pointer, pointer=(val : Pointer(Void)) pointer=, print(*args) print, printerr(*args) printerr, property_can_revert(property : String) : Bool property_can_revert, property_get_revert(property : String) : Pointer(Void) property_get_revert, puts(*args) puts, remove_meta(name : String) : Void remove_meta, remove_user_signal(signal : String) : Void remove_user_signal, set(property : String, value : Pointer(Void)) : Void set, set_block_signals(enable : Bool) : Void set_block_signals, set_deferred(property : String, value : Pointer(Void)) : Void set_deferred, set_indexed(property_path : NodePath, value : Pointer(Void)) : Void set_indexed, set_message_translation(enable : Bool) : Void set_message_translation, set_meta(name : String, value : Pointer(Void)) : Void set_meta, set_script(script : Pointer(Void)) : Void set_script, set_translation_domain(domain : String) : Void set_translation_domain, signal(name : String) : Godot::BoundSignal signal, signal_connection_count(signal_name : String) : Int32 signal_connection_count, signal_target_id : UInt64 signal_target_id, to_s(io : IO) : Void to_s, to_string : String to_string, to_unsafe : Pointer(Void) to_unsafe, tr(message : String, context : String) : String tr, tr_n(message : String, plural_message : String, n : Int64, context : String) : String tr_n

Constructor methods inherited from class Godot::Object

new(pointer : Pointer(Void) = Pointer(Void).null) new

Class methods inherited from class Godot::Object

_godot_has_virtual_method(method_name : String) : Bool _godot_has_virtual_method, is_instance_id_valid(id : Int | UInt64) : Bool is_instance_id_valid

Constructor Detail

def self.new(pointer : Pointer(Void) = Pointer(Void).null) #

[View source]

Instance Method Detail

def add_button(column : Int64, button : Texture2D, id : Int64, disabled : Bool, tooltip_text : String, description : String) : Void #

[View source]
def add_child(child : TreeItem) : Void #

[View source]
def clear_buttons : Void #

[View source]
def clear_custom_bg_color(column : Int64) : Void #

[View source]
def clear_custom_color(column : Int64) : Void #

[View source]
def collapsed #

Property #collapsed getter


[View source]
def collapsed=(val) #

Property #collapsed setter


[View source]
def collapsed? #

[View source]
def create_child(index : Int64) : TreeItem #

[View source]
def custom_minimum_height #

Property #custom_minimum_height getter


[View source]
def custom_minimum_height=(val : Int) #

Property #custom_minimum_height setter


[View source]
def deselect(column : Int64) : Void #

[View source]
def disable_folding #

Property #disable_folding getter


[View source]
def disable_folding=(val) #

Property #disable_folding setter


[View source]
def disable_folding? #

[View source]
def erase_button(column : Int64, button_index : Int64) : Void #

[View source]
def get_auto_translate_mode(column : Int64) : Int64 #

[View source]
def get_autowrap_mode(column : Int64) : Int64 #

[View source]
def get_autowrap_trim_flags(column : Int64) : Int64 #

[View source]
def get_button(column : Int64, button_index : Int64) : Texture2D #

[View source]
def get_button_by_id(column : Int64, id : Int64) : Int64 #

[View source]
def get_button_color(column : Int64, id : Int64) : Color #

[View source]
def get_button_count(column : Int64) : Int64 #

[View source]
def get_button_id(column : Int64, button_index : Int64) : Int64 #

[View source]
def get_button_tooltip_text(column : Int64, button_index : Int64) : String #

[View source]
def get_cell_mode(column : Int64) : Int64 #

[View source]
def get_child(index : Int64) : TreeItem #

[View source]
def get_child_count : Int64 #

[View source]
def get_children : Array(TreeItem) #

Returns an Array containing all child TreeItems of this item.


[View source]
def get_custom_bg_color(column : Int64) : Color #

[View source]
def get_custom_color(column : Int64) : Color #

[View source]
def get_custom_draw_callback(column : Int64) : Pointer(Void) #

[View source]
def get_custom_font(column : Int64) : Font #

[View source]
def get_custom_font_size(column : Int64) : Int64 #

[View source]
def get_custom_minimum_height : Int64 #

[View source]
def get_custom_stylebox(column : Int64) : StyleBox #

[View source]
def get_description(column : Int64) : String #

[View source]
def get_expand_right(column : Int64) : Bool #

[View source]
def get_first_child : TreeItem #

[View source]
def get_icon(column : Int64) : Texture2D #

[View source]
def get_icon_max_width(column : Int64) : Int64 #

[View source]
def get_icon_modulate(column : Int64) : Color #

[View source]
def get_icon_overlay(column : Int64) : Texture2D #

[View source]
def get_icon_region(column : Int64) : Rect2 #

[View source]
def get_index : Int64 #

[View source]
def get_language(column : Int64) : String #

[View source]
def get_metadata(column : Int64) : Pointer(Void) #

[View source]
def get_next : TreeItem #

[View source]
def get_next_in_tree(wrap : Bool) : TreeItem #

[View source]
def get_next_visible(wrap : Bool) : TreeItem #

[View source]
def get_parent : TreeItem #

[View source]
def get_prev : TreeItem #

[View source]
def get_prev_in_tree(wrap : Bool) : TreeItem #

[View source]
def get_prev_visible(wrap : Bool) : TreeItem #

[View source]
def get_range(column : Int64) : Float64 #

[View source]
def get_range_config(column : Int64) : Pointer(Void) #

[View source]
def get_structured_text_bidi_override(column : Int64) : Int64 #

[View source]
def get_structured_text_bidi_override_options(column : Int64) : Godot::Array #

[View source]
def get_suffix(column : Int64) : String #

[View source]
def get_text(column : Int64) : String #

[View source]
def get_text_alignment(column : Int64) : Int64 #

[View source]
def get_text_direction(column : Int64) : Int64 #

[View source]
def get_text_overrun_behavior(column : Int64) : Int64 #

[View source]
def get_tooltip_text(column : Int64) : String #

[View source]
def get_tree : Tree #

[View source]
def is_accepting_children : Bool #

[View source]
def is_any_collapsed(only_visible : Bool) : Bool #

[View source]
def is_button_disabled(column : Int64, button_index : Int64) : Bool #

[View source]
def is_checked(column : Int64) : Bool #

[View source]
def is_collapsed : Bool #

[View source]
def is_custom_set_as_button(column : Int64) : Bool #

[View source]
def is_edit_multiline(column : Int64) : Bool #

[View source]
def is_editable(column : Int64) : Bool #

[View source]
def is_folding_disabled : Bool #

[View source]
def is_indeterminate(column : Int64) : Bool #

[View source]
def is_selectable(column : Int64) : Bool #

[View source]
def is_selected(column : Int64) : Bool #

[View source]
def is_visible : Bool #

[View source]
def is_visible_in_tree : Bool #

[View source]
def move_after(item : TreeItem) : Void #

[View source]
def move_before(item : TreeItem) : Void #

[View source]
def propagate_check(column : Int64, emit_signal : Bool) : Void #

[View source]
def remove_child(child : TreeItem) : Void #

[View source]
def select_val(column : Int64, set_as_cursor : Bool) : Void #

[View source]
def set_accept_children(allowed : Bool) : Void #

[View source]
def set_auto_translate_mode(column : Int64, mode : Int64) : Void #

[View source]
def set_autowrap_mode(column : Int64, autowrap_mode : Int64) : Void #

[View source]
def set_autowrap_trim_flags(column : Int64, flags : Int64) : Void #

[View source]
def set_button(column : Int64, button_index : Int64, button : Texture2D) : Void #

[View source]
def set_button_color(column : Int64, button_index : Int64, color : Color) : Void #

[View source]
def set_button_description(column : Int64, button_index : Int64, description : String) : Void #

[View source]
def set_button_disabled(column : Int64, button_index : Int64, disabled : Bool) : Void #

[View source]
def set_button_tooltip_text(column : Int64, button_index : Int64, tooltip : String) : Void #

[View source]
def set_cell_mode(column : Int64, mode : Int64) : Void #

[View source]
def set_checked(column : Int64, checked : Bool) : Void #

[View source]
def set_collapsed(enable : Bool) : Void #

[View source]
def set_collapsed_recursive(enable : Bool) : Void #

[View source]
def set_custom_as_button(column : Int64, enable : Bool) : Void #

[View source]
def set_custom_bg_color(column : Int64, color : Color, just_outline : Bool) : Void #

[View source]
def set_custom_color(column : Int64, color : Color) : Void #

[View source]
def set_custom_draw(column : Int64, object : Godot::Object, callback : String) : Void #

[View source]
def set_custom_draw_callback(column : Int64, callback : Pointer(Void)) : Void #

[View source]
def set_custom_font(column : Int64, font : Font) : Void #

[View source]
def set_custom_font_size(column : Int64, font_size : Int64) : Void #

[View source]
def set_custom_minimum_height(height : Int64) : Void #

[View source]
def set_custom_stylebox(column : Int64, stylebox : StyleBox) : Void #

[View source]
def set_description(column : Int64, description : String) : Void #

[View source]
def set_disable_folding(disable : Bool) : Void #

[View source]
def set_edit_multiline(column : Int64, multiline : Bool) : Void #

[View source]
def set_editable(column : Int64, enabled : Bool) : Void #

[View source]
def set_expand_right(column : Int64, enable : Bool) : Void #

[View source]
def set_icon(column : Int64, texture : Texture2D) : Void #

[View source]
def set_icon_max_width(column : Int64, width : Int64) : Void #

[View source]
def set_icon_modulate(column : Int64, modulate : Color) : Void #

[View source]
def set_icon_overlay(column : Int64, texture : Texture2D) : Void #

[View source]
def set_icon_region(column : Int64, region : Rect2) : Void #

[View source]
def set_indeterminate(column : Int64, indeterminate : Bool) : Void #

[View source]
def set_language(column : Int64, language : String) : Void #

[View source]
def set_metadata(column : Int64, meta : Pointer(Void)) : Void #

[View source]
def set_range(column : Int64, value : Float64) : Void #

[View source]
def set_range_config(column : Int64, min : Float64, max : Float64, step : Float64, expr : Bool) : Void #

[View source]
def set_selectable(column : Int64, selectable : Bool) : Void #

[View source]
def set_structured_text_bidi_override(column : Int64, parser : Int64) : Void #

[View source]
def set_structured_text_bidi_override_options(column : Int64, args : Godot::Array) : Void #

[View source]
def set_suffix(column : Int64, text : String) : Void #

[View source]
def set_text(column : Int64, text : String) : Void #

[View source]
def set_text_alignment(column : Int64, text_alignment : Int64) : Void #

[View source]
def set_text_direction(column : Int64, direction : Int64) : Void #

[View source]
def set_text_overrun_behavior(column : Int64, overrun_behavior : Int64) : Void #

[View source]
def set_tooltip_text(column : Int64, tooltip : String) : Void #

[View source]
def set_visible(enable : Bool) : Void #

[View source]
def uncollapse_tree : Void #

[View source]
def visible #

Property #visible getter


[View source]
def visible=(val) #

Property #visible setter


[View source]
def visible? #

[View source]