C# Class FlatRedBall.Gui.ScrollBar

Summary description for ScrollBar.
Inheritance: Window
Mostrar archivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
GetNumDown ( ) : int

Gets the index of the first element shown in a list given the position of the position bar.

Prior to this method being called, the SetView function must be called and the Sensitivity property must be set.

ScrollBar ( Cursor cursor ) : System

Instantiates a new ScrollBar instance. The new instance will not automatically be added to the GuiManager.

ScrollBar ( GuiSkin guiSkin, Cursor cursor ) : System

Instantiates a new ScrollBar using a GuiSkin. The new instance will not automatically be added to the GuiManager.

SetScrollPosition ( int numDown ) : void

Sets the position bar so that it reflects the number down passed as the argument.

SetSkin ( GuiSkin guiSkin ) : void

Sets the ScrollBar's skin and refreshes its appearance.

TestCollision ( Cursor cursor ) : void

Private Methods

Method Description
DrawSelfAndChildren ( Camera camera ) : void
FixBar ( ) : void

Keeps the ScrollBar's position bar from overlapping the up and down buttons and keeps its horizontal position inside the ScrollBar.

GetNumberOfVerticesToDraw ( ) : int
OnDownButtonClick ( Window callingWindow ) : void
OnUpButtonClick ( Window callingWindow ) : void
RaisePositionBarMoveEvent ( ) : void
SetView ( double view ) : void

Method Details

GetNumDown() public method

Gets the index of the first element shown in a list given the position of the position bar.
Prior to this method being called, the SetView function must be called and the Sensitivity property must be set.
public GetNumDown ( ) : int
return int

ScrollBar() public method

Instantiates a new ScrollBar instance. The new instance will not automatically be added to the GuiManager.
public ScrollBar ( Cursor cursor ) : System
cursor Cursor The Cursor that the ScrollBar will interact with.
return System

ScrollBar() public method

Instantiates a new ScrollBar using a GuiSkin. The new instance will not automatically be added to the GuiManager.
public ScrollBar ( GuiSkin guiSkin, Cursor cursor ) : System
guiSkin GuiSkin The GuiSkin to customize the appearance of the ScrollBar.
cursor Cursor The Cursor that the ScrollBar will interact with.
return System

SetScrollPosition() public method

Sets the position bar so that it reflects the number down passed as the argument.
public SetScrollPosition ( int numDown ) : void
numDown int The number down to match with the PositionBar's position.
return void

SetSkin() public method

Sets the ScrollBar's skin and refreshes its appearance.
public SetSkin ( GuiSkin guiSkin ) : void
guiSkin GuiSkin The GuiSkin to set.
return void

TestCollision() public method

public TestCollision ( Cursor cursor ) : void
cursor Cursor
return void