Skip to content
reduz edited this page Feb 23, 2014 · 13 revisions

TabContainer

####Inherits: Control ####Category: Core

Brief Description

Tabbed Container.

Member Functions

Signals

  • tab&#95changed ( int tab )

Description

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.

Member Function Description

  • int get&#95tab&#95count ( ) const

Return the amount of tabs.

  • void set&#95current&#95tab ( int tab_idx )

Bring a tab (and the Control it represents) to the front, and hide the rest.

  • int get&#95current&#95tab ( ) const

Return the current tab that is being showed.

  • void set&#95tab&#95align ( int align )

Set tab alignment, from the ALIGN_* enum. Moves tabs to the left, right or center.

  • int get&#95tab&#95align ( ) const

Return tab alignment, from the ALIGN_* enum

  • void set&#95tabs&#95visible ( bool visible )

Set whether the tabs should be visible or hidden.

  • bool are&#95tabs&#95visible ( ) const

Return whether the tabs should be visible or hidden.

  • void set&#95tab&#95title ( 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.

  • String get&#95tab&#95title ( int tab_idx ) const

Return the title for the tab. Tab titles are by default the children node name, but this can be overriden.

  • void set&#95tab&#95icon ( int tab_idx, Texture icon )

Set an icon for a tab.

Clone this wiki locally