Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
TabBar¶
Inherits: Control < CanvasItem < Node < Object
A control that provides a horizontal bar with tabs.
Description¶
A control that provides a horizontal bar with tabs. Similar to TabContainer but is only in charge of drawing tabs, not interacting with children.
Properties¶
|
||
|
||
|
||
focus_mode |
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
void |
|
void |
clear_tabs ( ) |
void |
ensure_tab_visible ( int idx ) |
get_offset_buttons_visible ( ) const |
|
get_previous_tab ( ) const |
|
get_tab_button_icon ( int tab_idx ) const |
|
get_tab_icon ( int tab_idx ) const |
|
get_tab_icon_max_width ( int tab_idx ) const |
|
get_tab_idx_at_point ( Vector2 point ) const |
|
get_tab_language ( int tab_idx ) const |
|
get_tab_metadata ( int tab_idx ) const |
|
get_tab_offset ( ) const |
|
get_tab_rect ( int tab_idx ) const |
|
get_tab_text_direction ( int tab_idx ) const |
|
get_tab_title ( int tab_idx ) const |
|
is_tab_disabled ( int tab_idx ) const |
|
is_tab_hidden ( int tab_idx ) const |
|
void |
|
void |
remove_tab ( int tab_idx ) |
void |
set_tab_button_icon ( int tab_idx, Texture2D icon ) |
void |
set_tab_disabled ( int tab_idx, bool disabled ) |
void |
set_tab_hidden ( int tab_idx, bool hidden ) |
void |
set_tab_icon ( int tab_idx, Texture2D icon ) |
void |
set_tab_icon_max_width ( int tab_idx, int width ) |
void |
set_tab_language ( int tab_idx, String language ) |
void |
set_tab_metadata ( int tab_idx, Variant metadata ) |
void |
set_tab_text_direction ( int tab_idx, TextDirection direction ) |
void |
set_tab_title ( int tab_idx, String title ) |
Theme Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||