C# Class Flood.GUI.Controls.HorizontalSlider

Horizontal slider.
Inheritance: Slider
Datei anzeigen Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
HorizontalSlider ( Control parent )

Initializes a new instance of the HorizontalSlider class.

Protected Methods

Method Description
CalculateValue ( ) : float
Layout ( Skins skin ) : void

Lays out the control's interior according to alignment, padding, dock etc.

OnMouseClickedLeft ( int x, int y, bool down ) : void

Handler invoked on mouse click (left) event.

Render ( Skins skin ) : void

Renders the control using specified skin.

UpdateBarFromValue ( ) : void

Method Details

CalculateValue() protected method

protected CalculateValue ( ) : float
return float

HorizontalSlider() public method

Initializes a new instance of the HorizontalSlider class.
public HorizontalSlider ( Control parent )
parent Control Parent control.

Layout() protected method

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
return void

OnMouseClickedLeft() protected method

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
return void

Render() protected method

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
return void

UpdateBarFromValue() protected method

protected UpdateBarFromValue ( ) : void
return void