C# Class IrcShark.Extensions.Terminal.ConsoleTerminal.Handler

The Handler struct is used to save a special key and its handlermethod.
Afficher le fichier Open project: hapm/IrcShark

Méthodes publiques

Свойство Type Description
CKI System.ConsoleKeyInfo
KeyHandler KeyHandler

Méthodes publiques

Méthode Description
Alt ( char c, ConsoleKey k, KeyHandler h ) : Handler

Creates a Handler, that reacts on a key pressed in combination with the alt key.

Control ( char c, KeyHandler h ) : Handler

Creates a Handler, that reacts on a key pressed in combination with the control key.

Handler ( ConsoleKey key, KeyHandler h ) : System

Initializes a new instance of the Handler struct.

Handler ( ConsoleKeyInfo cki, KeyHandler h ) : System

Initializes a new instance of the Handler struct.

Handler ( char c, KeyHandler h ) : System

Initializes a new instance of the Handler struct.

Method Details

Alt() public static méthode

Creates a Handler, that reacts on a key pressed in combination with the alt key.
public static Alt ( char c, ConsoleKey k, KeyHandler h ) : Handler
c char The character of the key to look for.
k ConsoleKey
h KeyHandler The handler to call.
Résultat Handler

Control() public static méthode

Creates a Handler, that reacts on a key pressed in combination with the control key.
public static Control ( char c, KeyHandler h ) : Handler
c char The character of the key to look for.
h KeyHandler The handler to call.
Résultat Handler

Handler() public méthode

Initializes a new instance of the Handler struct.
public Handler ( ConsoleKey key, KeyHandler h ) : System
key ConsoleKey The key to look for.
h KeyHandler The handler to call.
Résultat System

Handler() public méthode

Initializes a new instance of the Handler struct.
public Handler ( ConsoleKeyInfo cki, KeyHandler h ) : System
cki System.ConsoleKeyInfo The key combination to look for.
h KeyHandler The handler to call.
Résultat System

Handler() public méthode

Initializes a new instance of the Handler struct.
public Handler ( char c, KeyHandler h ) : System
c char The character of the key to look for.
h KeyHandler The handler to call.
Résultat System

Property Details

CKI public_oe property

Saves the key, that is watched.
public ConsoleKeyInfo,System CKI
Résultat System.ConsoleKeyInfo

KeyHandler public_oe property

Saves the handler that is called when the key is pressed.
public KeyHandler KeyHandler
Résultat KeyHandler