TreeItem¶
Inherits: Object
Category: Core
Brief Description¶
Member Functions¶
void | add_button ( int column, Texture button, int button_idx=-1, bool disabled=false ) |
void | clear_custom_bg_color ( int column ) |
void | clear_custom_color ( int column ) |
void | deselect ( int column ) |
void | erase_button ( int column, int button_idx ) |
Texture | get_button ( int column, int button_idx ) const |
int | get_button_count ( int column ) const |
int | get_cell_mode ( int column ) const |
TreeItem | get_children ( ) |
Color | get_custom_bg_color ( int column ) const |
Texture | get_icon ( int column ) const |
int | get_icon_max_width ( int column ) const |
Rect2 | get_icon_region ( int column ) const |
void | get_metadata ( int column ) const |
TreeItem | get_next ( ) |
TreeItem | get_next_visible ( ) |
TreeItem | get_parent ( ) |
TreeItem | get_prev ( ) |
TreeItem | get_prev_visible ( ) |
float | get_range ( int column ) const |
Dictionary | get_range_config ( int column ) |
String | get_text ( int column ) const |
String | get_tooltip ( int column ) const |
bool | is_button_disabled ( int column, int button_idx ) const |
bool | is_checked ( int column ) const |
bool | is_collapsed ( ) |
bool | is_editable ( int column ) |
bool | is_selectable ( int column ) const |
bool | is_selected ( int column ) |
void | move_to_bottom ( ) |
void | move_to_top ( ) |
TreeItem | remove_child ( Object child ) |
void | select ( int column ) |
void | set_cell_mode ( int column, int mode ) |
void | set_checked ( int column, bool checked ) |
void | set_collapsed ( bool enable ) |
void | set_custom_bg_color ( int column, Color color ) |
void | set_custom_color ( int column, Color color ) |
void | set_custom_draw ( int column, Object object, String callback ) |
void | set_editable ( int column, bool enabled ) |
void | set_icon ( int column, Texture texture ) |
void | set_icon_max_width ( int column, int width ) |
void | set_icon_region ( int column, Rect2 region ) |
void | set_metadata ( int column, var meta ) |
void | set_range ( int column, float value ) |
void | set_range_config ( int column, float min, float max, float step, bool expr=false ) |
void | set_selectable ( int column, bool selectable ) |
void | set_text ( int column, String text ) |
void | set_tooltip ( int column, String tooltip ) |
Numeric Constants¶
- CELL_MODE_STRING = 0
- CELL_MODE_CHECK = 1
- CELL_MODE_RANGE = 2
- CELL_MODE_ICON = 3
- CELL_MODE_CUSTOM = 4
Member Function Description¶
- void clear_custom_bg_color ( int column )
- void clear_custom_color ( int column )
- void deselect ( int column )
- TreeItem get_children ( )
- void get_metadata ( int column ) const
- TreeItem get_next ( )
- TreeItem get_next_visible ( )
- TreeItem get_parent ( )
- TreeItem get_prev ( )
- TreeItem get_prev_visible ( )
- Dictionary get_range_config ( int column )
- bool is_collapsed ( )
- void move_to_bottom ( )
- void move_to_top ( )
- void select ( int column )
- void set_collapsed ( bool enable )
- void set_metadata ( int column, var meta )