C# Класс FlatRedBall.Gui.ScrollBar

Summary description for ScrollBar.
Наследование: Window
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetNumDown() публичный Метод

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
Результат int

ScrollBar() публичный Метод

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.
Результат System

ScrollBar() публичный Метод

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.
Результат System

SetScrollPosition() публичный Метод

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.
Результат void

SetSkin() публичный Метод

Sets the ScrollBar's skin and refreshes its appearance.
public SetSkin ( GuiSkin guiSkin ) : void
guiSkin GuiSkin The GuiSkin to set.
Результат void

TestCollision() публичный Метод

public TestCollision ( Cursor cursor ) : void
cursor Cursor
Результат void