C# Class Flood.GUI.Controls.VerticalSlider

Vertical slider.
Inheritance: Slider
显示文件 Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
VerticalSlider ( Control parent )

Initializes a new instance of the VerticalSlider 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

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

VerticalSlider() public method

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