C# Class Flood.GUI.Controls.TabControl

Inheritance: Control
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Méthodes publiques

Méthode Description
AddPage ( String label, Control page = null ) : TabButton

Adds a new page/tab.

AddPage ( TabButton button ) : void

Adds a page/tab.

RemovePage ( TabButton button ) : void
TabControl ( Control parent ) : System

Initializes a new instance of the TabControl class.

Méthodes protégées

Méthode Description
PostLayout ( Skins skin ) : void

Function invoked after layout.

ScrollPressedLeft ( Control control ) : void
ScrollPressedRight ( Control control ) : void

Private Methods

Méthode Description
HandleOverflow ( ) : void
OnLoseTab ( TabButton button ) : void

Handler for tab removing.

OnTabPressed ( Control control ) : void

Handler for tab selection.

UnsubscribeTabEvent ( TabButton button ) : void

Method Details

AddPage() public méthode

Adds a new page/tab.
public AddPage ( String label, Control page = null ) : TabButton
label String Tab label.
page Control Page contents.
Résultat TabButton

AddPage() public méthode

Adds a page/tab.
public AddPage ( TabButton button ) : void
button TabButton Page to add. (well, it's a TabButton which is a parent to the page).
Résultat void

PostLayout() protected méthode

Function invoked after layout.
protected PostLayout ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

RemovePage() public méthode

public RemovePage ( TabButton button ) : void
button TabButton
Résultat void

ScrollPressedLeft() protected méthode

protected ScrollPressedLeft ( Control control ) : void
control Control
Résultat void

ScrollPressedRight() protected méthode

protected ScrollPressedRight ( Control control ) : void
control Control
Résultat void

TabControl() public méthode

Initializes a new instance of the TabControl class.
public TabControl ( Control parent ) : System
parent Control Parent control.
Résultat System