forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_tabcontainer
reduz edited this page Feb 23, 2014
·
9 revisions
Inherits: control\ Category: Core\
Tabbed Container.
- int #get_tab_count(****) const
- void #set_current_tab( int tab_idx )
- int #get_current_tab(****) const
- void #set_tab_align( int align )
- int #get_tab_align(****) const
- void #set_tabs_visible( bool visible )
- bool #are_tabs_visible(****) const
- void #set_tab_title( int tab_idx, String title )
- String #get_tab_title( int tab_idx ) const
- void #set_tab_icon( int tab_idx, Texture icon )
- Texture #get_tab_icon( int tab_idx ) const
- tab_changed**(** int tab )
Tabbed Container. Contains several children controls, but shows only one at the same time. Clicking ont he top tabs allows to change the current visible one.\
Children controls of this one automatically.
== get_tab_count ==
- int #get_tab_count(****) const \ Return the amount of tabs. == set_current_tab ==
- void #set_current_tab( int tab_idx ) \ Bring a tab (and the Control it represents) to the front, and hide the rest. == get_current_tab ==
- int #get_current_tab(****) const \ Return the current tab that is being showed. == set_tab_align ==
- void #set_tab_align( int align ) \ Set tab alignment, from the ALIGN_* enum. Moves tabs to the left, right or center. == get_tab_align ==
- int #get_tab_align(****) const \ Return tab alignment, from the ALIGN_* enum == set_tabs_visible ==
- void #set_tabs_visible( bool visible ) \ Set whether the tabs should be visible or hidden. == are_tabs_visible ==
- bool #are_tabs_visible(****) const \ Return whether the tabs should be visible or hidden. == set_tab_title ==
- void #set_tab_title( int tab_idx, String title ) \ Set a title for the tab. Tab titles are by default the children node name, but this can be overriden. == get_tab_title ==
- String #get_tab_title( int tab_idx ) const \ Return the title for the tab. Tab titles are by default the children node name, but this can be overriden. == set_tab_icon ==
- void #set_tab_icon( int tab_idx, Texture icon ) \ Set an icon for a tab.