Tree

Inherits: Control < CanvasItem < Node < Object

Category: Core

Brief Description

Member Functions

bool are_column_titles_visible ( ) const
void clear ( )
TreeItem create_item ( TreeItem parent=NULL )
void ensure_cursor_is_visible ( )
String get_column_title ( int column ) const
int get_column_width ( int column ) const
int get_columns ( ) const
Rect2 get_custom_popup_rect ( ) const
TreeItem get_edited ( ) const
int get_edited_column ( ) const
Rect2 get_item_area_rect ( TreeItem item, int column=-1 ) const
TreeItem get_next_selected ( TreeItem from )
int get_pressed_button ( ) const
TreeItem get_root ( )
Vector2 get_scroll ( ) const
TreeItem get_selected ( ) const
int get_selected_column ( ) const
bool is_folding_hidden ( ) const
void set_column_expand ( int column, bool expand )
void set_column_min_width ( int column, int min_width )
void set_column_title ( int column, String title )
void set_column_titles_visible ( bool visible )
void set_columns ( int amount )
void set_hide_folding ( bool hide )
void set_hide_root ( bool enable )
void set_select_mode ( int mode )

Signals

  • button_pressed ( Object item, int column, int id )
  • cell_selected ( )
  • custom_popup_edited ( bool arrow_clicked )
  • item_activated ( )
  • item_collapsed ( Object item )
  • item_edited ( )
  • item_selected ( )
  • multi_selected ( Object item, int column, bool selected )

Numeric Constants

  • SELECT_SINGLE = 0
  • SELECT_ROW = 1
  • SELECT_MULTI = 2

Member Function Description

  • bool are_column_titles_visible ( ) const
  • void clear ( )
  • void ensure_cursor_is_visible ( )
  • String get_column_title ( int column ) const
  • int get_column_width ( int column ) const
  • int get_columns ( ) const
  • Rect2 get_custom_popup_rect ( ) const
  • int get_edited_column ( ) const
  • int get_pressed_button ( ) const
  • int get_selected_column ( ) const
  • bool is_folding_hidden ( ) const
  • void set_column_expand ( int column, bool expand )
  • void set_column_min_width ( int column, int min_width )
  • void set_column_title ( int column, String title )
  • void set_column_titles_visible ( bool visible )
  • void set_columns ( int amount )
  • void set_hide_folding ( bool hide )
  • void set_hide_root ( bool enable )
  • void set_select_mode ( int mode )