ItemList

Inherits: Control < CanvasItem < Node < Object

Category: Core

Brief Description

Member Functions

void add_icon_item ( Texture icon, bool selectable=true )
void add_item ( String text, Texture icon=NULL, bool selectable=true )
void clear ( )
void ensure_current_is_visible ( )
int get_fixed_column_width ( ) const
int get_icon_mode ( ) const
int get_item_count ( ) const
Color get_item_custom_bg_color ( int idx ) const
Texture get_item_icon ( int idx ) const
void get_item_metadata ( int idx ) const
String get_item_text ( int idx ) const
String get_item_tooltip ( int idx ) const
int get_max_columns ( ) const
int get_max_text_lines ( ) const
Vector2 get_min_icon_size ( ) const
int get_select_mode ( ) const
bool is_item_disabled ( int idx ) const
bool is_item_selectable ( int idx ) const
bool is_selected ( int idx ) const
void remove_item ( int idx )
void select ( int idx, bool single=true )
void set_fixed_column_width ( int width )
void set_icon_mode ( int mode )
void set_item_custom_bg_color ( int idx, Color custom_bg_color )
void set_item_disabled ( int idx, bool disabled )
void set_item_icon ( int idx, Texture icon )
void set_item_metadata ( int idx, var metadata )
void set_item_selectable ( int idx, bool selectable )
void set_item_text ( int idx, String text )
void set_item_tooltip ( int idx, String tooltip )
void set_max_columns ( int amount )
void set_max_text_lines ( int lines )
void set_min_icon_size ( Vector2 size )
void set_select_mode ( int mode )
void sort_items_by_text ( )
void unselect ( int idx )

Signals

  • item_activated ( int index )
  • item_selected ( int index )
  • multi_selected ( int index, bool selected )

Numeric Constants

  • ICON_MODE_TOP = 0
  • ICON_MODE_LEFT = 1
  • SELECT_SINGLE = 0
  • SELECT_MULTI = 1

Member Function Description

  • void add_icon_item ( Texture icon, bool selectable=true )
  • void clear ( )
  • void ensure_current_is_visible ( )
  • int get_fixed_column_width ( ) const
  • int get_icon_mode ( ) const
  • int get_item_count ( ) const
  • Color get_item_custom_bg_color ( int idx ) const
  • void get_item_metadata ( int idx ) const
  • int get_max_columns ( ) const
  • int get_max_text_lines ( ) const
  • Vector2 get_min_icon_size ( ) const
  • int get_select_mode ( ) const
  • bool is_item_disabled ( int idx ) const
  • bool is_item_selectable ( int idx ) const
  • bool is_selected ( int idx ) const
  • void remove_item ( int idx )
  • void select ( int idx, bool single=true )
  • void set_fixed_column_width ( int width )
  • void set_icon_mode ( int mode )
  • void set_item_custom_bg_color ( int idx, Color custom_bg_color )
  • void set_item_disabled ( int idx, bool disabled )
  • void set_item_metadata ( int idx, var metadata )
  • void set_item_selectable ( int idx, bool selectable )
  • void set_item_text ( int idx, String text )
  • void set_item_tooltip ( int idx, String tooltip )
  • void set_max_columns ( int amount )
  • void set_max_text_lines ( int lines )
  • void set_min_icon_size ( Vector2 size )
  • void set_select_mode ( int mode )
  • void sort_items_by_text ( )
  • void unselect ( int idx )