Tabs
Inherits: Control < CanvasItem < Node < Object
Category: Core
Brief Description
Tabs Control.
Member Functions
void | add_tab ( String title=””, Texture icon=NULL ) |
void | ensure_tab_visible ( int idx ) |
int | get_current_tab ( ) const |
int | get_tab_align ( ) const |
int | get_tab_count ( ) const |
Texture | get_tab_icon ( int tab_idx ) const |
String | get_tab_title ( int tab_idx ) const |
void | remove_tab ( int tab_idx ) |
void | set_current_tab ( int tab_idx ) |
void | set_tab_align ( int align ) |
void | set_tab_icon ( int tab_idx, Texture icon ) |
void | set_tab_title ( int tab_idx, String title ) |
Signals
Numeric Constants
- ALIGN_LEFT = 0
- ALIGN_CENTER = 1
- ALIGN_RIGHT = 2
- CLOSE_BUTTON_SHOW_ACTIVE_ONLY = 1
- CLOSE_BUTTON_SHOW_ALWAYS = 2
- CLOSE_BUTTON_SHOW_NEVER = 0
Description
Simple tabs control, similar to TabContainer but is only in charge of drawing tabs, not interact with children.
Member Function Description
void add_tab ( String title=””, Texture icon=NULL )
void ensure_tab_visible ( int idx )
int get_current_tab ( ) const
int get_tab_align ( ) const
int get_tab_count ( ) const
Texture get_tab_icon ( int tab_idx ) const
String get_tab_title ( int tab_idx ) const
void remove_tab ( int tab_idx )
void set_current_tab ( int tab_idx )
void set_tab_align ( int align )
void set_tab_icon ( int tab_idx, Texture icon )
void set_tab_title ( int tab_idx, String title )
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_tabs.html