C# 클래스 SadConsole.Controls.SelectionButton

상속: SadConsole.Controls.Button
파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

공개 메소드들

메소드 설명
ProcessKeyboard ( Input info ) : bool

Focuses the previous or next selection button depending on if the UP or DOWN arrow keys were pressed.

SelectNext ( ) : SelectionButton

Selects the next selection button.

SelectPrevious ( ) : SelectionButton

Selects the previous selection button.

SelectionButton ( int width ) : System

Creates a new Selection Button with a specific width and height.

SetNextSelection ( SelectionButton &nextSelection, bool setPreviousOnNext = true ) : SelectionButton

Sets the next selection button and optionally sets the previous of the referenced selection to this button.

메소드 상세

ProcessKeyboard() 공개 메소드

Focuses the previous or next selection button depending on if the UP or DOWN arrow keys were pressed.
public ProcessKeyboard ( Input info ) : bool
info Input The keyboard state.
리턴 bool

SelectNext() 공개 메소드

Selects the next selection button.
public SelectNext ( ) : SelectionButton
리턴 SelectionButton

SelectPrevious() 공개 메소드

Selects the previous selection button.
public SelectPrevious ( ) : SelectionButton
리턴 SelectionButton

SelectionButton() 공개 메소드

Creates a new Selection Button with a specific width and height.
public SelectionButton ( int width ) : System
width int The width of the selection button.
리턴 System

SetNextSelection() 공개 메소드

Sets the next selection button and optionally sets the previous of the referenced selection to this button.
public SetNextSelection ( SelectionButton &nextSelection, bool setPreviousOnNext = true ) : SelectionButton
nextSelection SelectionButton The selection button to be used as next.
setPreviousOnNext bool Sets the PreviousSelection property on the instance to current selection button. Defaults to true.
리턴 SelectionButton