C# Class Mono.Terminal.Button

Inheritance: Widget
Datei anzeigen Open project: mono/mono-curses Class Usage Examples

Public Methods

Method 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

Method Description
CheckKey ( int key ) : bool

Method Details

Button() public method

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
return System

Button() public method

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
return System

Button() public method

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
return System

Button() public method

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
return System

PositionCursor() public method

public PositionCursor ( ) : void
return void

ProcessColdKey() public method

public ProcessColdKey ( int key ) : bool
key int
return bool

ProcessHotKey() public method

public ProcessHotKey ( int key ) : bool
key int
return bool

ProcessKey() public method

public ProcessKey ( int c ) : bool
c int
return bool

ProcessMouse() public method

public ProcessMouse ( Curses ev ) : void
ev Curses
return void

Redraw() public method

public Redraw ( ) : void
return void