C# Class FlatRedBall.Gui.ScrollBar

Summary description for ScrollBar.
Inheritance: Window
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat int

ScrollBar() public méthode

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.
Résultat System

ScrollBar() public méthode

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.
Résultat System

SetScrollPosition() public méthode

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.
Résultat void

SetSkin() public méthode

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

TestCollision() public méthode

public TestCollision ( Cursor cursor ) : void
cursor Cursor
Résultat void