C# Class SadConsole.Controls.SelectionButton

Inheritance: SadConsole.Controls.Button
Afficher le fichier Open project: Thraka/SadConsole Class Usage Examples

Méthodes publiques

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

Method Details

ProcessKeyboard() public méthode

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

SelectNext() public méthode

Selects the next selection button.
public SelectNext ( ) : SelectionButton
Résultat SelectionButton

SelectPrevious() public méthode

Selects the previous selection button.
public SelectPrevious ( ) : SelectionButton
Résultat SelectionButton

SelectionButton() public méthode

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

SetNextSelection() public méthode

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