C# Class Mono.Terminal.Button

Inheritance: Widget
Afficher le fichier Open project: mono/mono-curses Class Usage Examples

Méthodes publiques

Méthode Description
Button ( int x, int y, string s ) : System

Public constructor, creates a button based on the given text at the given position.

The size of the button is computed based on the text length. This button is not a default button.

Button ( int x, int y, string s, bool is_default ) : System

Public constructor, creates a button based on the given text at the given position.

If the value for is_default is true, a special decoration is used, and the enter key on a dialog would implicitly activate this button.

Button ( string s ) : System

Public constructor, creates a button based on the given text at position 0,0

The size of the button is computed based on the text length. This button is not a default button.

Button ( string s, bool is_default ) : System

Public constructor, creates a button based on the given text.

If the value for is_default is true, a special decoration is used, and the enter key on a dialog would implicitly activate this button.

PositionCursor ( ) : void
ProcessColdKey ( int key ) : bool
ProcessHotKey ( int key ) : bool
ProcessKey ( int c ) : bool
ProcessMouse ( Curses ev ) : void
Redraw ( ) : void

Private Methods

Méthode Description
CheckKey ( int key ) : bool

Method Details

Button() public méthode

Public constructor, creates a button based on the given text at the given position.
The size of the button is computed based on the text length. This button is not a default button.
public Button ( int x, int y, string s ) : System
x int
y int
s string
Résultat System

Button() public méthode

Public constructor, creates a button based on the given text at the given position.
If the value for is_default is true, a special decoration is used, and the enter key on a dialog would implicitly activate this button.
public Button ( int x, int y, string s, bool is_default ) : System
x int
y int
s string
is_default bool
Résultat System

Button() public méthode

Public constructor, creates a button based on the given text at position 0,0
The size of the button is computed based on the text length. This button is not a default button.
public Button ( string s ) : System
s string
Résultat System

Button() public méthode

Public constructor, creates a button based on the given text.
If the value for is_default is true, a special decoration is used, and the enter key on a dialog would implicitly activate this button.
public Button ( string s, bool is_default ) : System
s string
is_default bool
Résultat System

PositionCursor() public méthode

public PositionCursor ( ) : void
Résultat void

ProcessColdKey() public méthode

public ProcessColdKey ( int key ) : bool
key int
Résultat bool

ProcessHotKey() public méthode

public ProcessHotKey ( int key ) : bool
key int
Résultat bool

ProcessKey() public méthode

public ProcessKey ( int c ) : bool
c int
Résultat bool

ProcessMouse() public méthode

public ProcessMouse ( Curses ev ) : void
ev Curses
Résultat void

Redraw() public méthode

public Redraw ( ) : void
Résultat void