Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
TreeItem¶
Inherits: Object
Control for a single item inside a Tree.
Description¶
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 Object.free.
Note: The ID values used for buttons are limited to 32 bits, not full 64 bits of int. This has a range of -2^32
to 2^32 - 1
, i.e. -2147483648
to 2147483647
.
Properties¶
Methods¶
void |
add_button ( int column, Texture2D button, int id=-1, bool disabled=false, String tooltip_text="" ) |
void |
call_recursive ( StringName method, ... ) vararg |
void |
clear_custom_bg_color ( int column ) |
void |
clear_custom_color ( int column ) |
create_child ( int index=-1 ) |
|
void |
|
void |
erase_button ( int column, int button_index ) |
get_button ( int column, int button_index ) const |
|
get_button_by_id ( int column, int id ) const |
|
get_button_count ( int column ) const |
|
get_button_id ( int column, int button_index ) const |
|
get_button_tooltip_text ( int column, int button_index ) const |
|
get_cell_mode ( int column ) const |
|
get_child_count ( ) |
|
get_children ( ) |
|
get_custom_bg_color ( int column ) const |
|
get_custom_color ( int column ) const |
|
get_custom_font ( int column ) const |
|
get_custom_font_size ( int column ) const |
|
get_expand_right ( int column ) const |
|
get_first_child ( ) const |
|
get_icon_max_width ( int column ) const |
|
get_icon_modulate ( int column ) const |
|
get_icon_region ( int column ) const |
|
get_index ( ) |
|
get_language ( int column ) const |
|
get_metadata ( int column ) const |
|
get_next ( ) const |
|
get_next_in_tree ( bool wrap=false ) |
|
get_next_visible ( bool wrap=false ) |
|
get_parent ( ) const |
|
get_prev ( ) |
|
get_prev_in_tree ( bool wrap=false ) |
|
get_prev_visible ( bool wrap=false ) |
|
get_range_config ( int column ) |
|
get_structured_text_bidi_override ( int column ) const |
|
get_structured_text_bidi_override_options ( int column ) const |
|
get_suffix ( int column ) const |
|
get_text_alignment ( int column ) const |
|
get_text_direction ( int column ) const |
|
get_tooltip_text ( int column ) const |
|
get_tree ( ) const |
|
is_any_collapsed ( bool only_visible=false ) |
|
is_button_disabled ( int column, int button_index ) const |
|
is_checked ( int column ) const |
|
is_custom_set_as_button ( int column ) const |
|
is_edit_multiline ( int column ) const |
|
is_editable ( int column ) |
|
is_indeterminate ( int column ) const |
|
is_selectable ( int column ) const |
|
is_selected ( int column ) |
|
void |
move_after ( TreeItem item ) |
void |
move_before ( TreeItem item ) |
void |
propagate_check ( int column, bool emit_signal=true ) |
void |
remove_child ( TreeItem child ) |
void |
|
void |
set_button ( int column, int button_index, Texture2D button ) |
void |
set_button_color ( int column, int button_index, Color color ) |
void |
set_button_disabled ( int column, int button_index, bool disabled ) |
void |
set_cell_mode ( int column, TreeCellMode mode ) |
void |
set_checked ( int column, bool checked ) |
void |
set_collapsed_recursive ( bool enable ) |
void |
set_custom_as_button ( int column, bool enable ) |
void |
set_custom_bg_color ( int column, Color color, bool just_outline=false ) |
void |
set_custom_color ( int column, Color color ) |
void |
set_custom_draw ( int column, Object object, StringName callback ) |
void |
set_custom_font ( int column, Font font ) |
void |
set_custom_font_size ( int column, int font_size ) |
void |
set_edit_multiline ( int column, bool multiline ) |
void |
set_editable ( int column, bool enabled ) |
void |
set_expand_right ( int column, bool enable ) |
void |
|
void |
set_icon_max_width ( int column, int width ) |
void |
set_icon_modulate ( int column, Color modulate ) |
void |
set_icon_region ( int column, Rect2 region ) |
void |
set_indeterminate ( int column, bool indeterminate ) |
void |
set_language ( int column, String language ) |
void |
set_metadata ( int column, Variant meta ) |
void |
|
void |
set_range_config ( int column, float min, float max, float step, bool expr=false ) |