C# Class Flood.GUI.Controls.TabControl

Inheritance: Control
Datei anzeigen Open project: FloodProject/flood Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
PostLayout ( Skins skin ) : void

Function invoked after layout.

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

Private Methods

Method 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 method

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

AddPage() public method

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).
return void

PostLayout() protected method

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

RemovePage() public method

public RemovePage ( TabButton button ) : void
button TabButton
return void

ScrollPressedLeft() protected method

protected ScrollPressedLeft ( Control control ) : void
control Control
return void

ScrollPressedRight() protected method

protected ScrollPressedRight ( Control control ) : void
control Control
return void

TabControl() public method

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