C# 클래스 FlatRedBall.Gui.ScrollBar

Summary description for ScrollBar.
상속: Window
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 메소드들

메소드 설명
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