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 ( |
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 |
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 ( |
||
OnUpButtonClick ( |
||
RaisePositionBarMoveEvent ( ) : void | ||
SetView ( double view ) : void |
public ScrollBar ( |
||
cursor | The Cursor that the ScrollBar will interact with. | |
return | System |
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 |
public SetScrollPosition ( int numDown ) : void | ||
numDown | int | The number down to match with the PositionBar's position. |
return | void |
public SetSkin ( GuiSkin guiSkin ) : void | ||
guiSkin | GuiSkin | The GuiSkin to set. |
return | void |
public TestCollision ( Cursor cursor ) : void | ||
cursor | Cursor | |
return | void |