C# Class Flood.GUI.ControlInternal.ScrollBarBar

Scrollbar bar.
Inheritance: Flood.GUI.ControlInternal.Dragger
显示文件 Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
ScrollBarBar ( Control parent ) : Flood.GUI.Controls

Initializes a new instance of the ScrollBarBar class.

Protected Methods

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

OnMouseMoved ( int x, int y, int dx, int dy ) : void

Handler invoked on mouse moved event.

Render ( Skins skin ) : void

Renders the control using specified skin.

Method Details

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

OnMouseMoved() protected method

Handler invoked on mouse moved event.
protected OnMouseMoved ( int x, int y, int dx, int dy ) : void
x int X coordinate.
y int Y coordinate.
dx int X change.
dy int Y change.
return void

Render() protected method

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

ScrollBarBar() public method

Initializes a new instance of the ScrollBarBar class.
public ScrollBarBar ( Control parent ) : Flood.GUI.Controls
parent Flood.GUI.Controls.Control Parent control.
return Flood.GUI.Controls