C# Class SadConsole.Controls.SelectionButton

Inheritance: SadConsole.Controls.Button
Datei anzeigen Open project: Thraka/SadConsole Class Usage Examples

Public Methods

Method 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 method

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.
return bool

SelectNext() public method

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

SelectPrevious() public method

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

SelectionButton() public method

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

SetNextSelection() public method

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.
return SelectionButton