C# 클래스 IrcShark.Extensions.Terminal.ConsoleTerminal.Handler

The Handler struct is used to save a special key and its handlermethod.
파일 보기 프로젝트 열기: hapm/IrcShark

공개 프로퍼티들

프로퍼티 타입 설명
CKI System.ConsoleKeyInfo
KeyHandler KeyHandler

공개 메소드들

메소드 설명
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.

메소드 상세

Alt() 공개 정적인 메소드

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.
리턴 Handler

Control() 공개 정적인 메소드

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.
리턴 Handler

Handler() 공개 메소드

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.
리턴 System

Handler() 공개 메소드

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.
리턴 System

Handler() 공개 메소드

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.
리턴 System

프로퍼티 상세

CKI 공개적으로 프로퍼티

Saves the key, that is watched.
public ConsoleKeyInfo,System CKI
리턴 System.ConsoleKeyInfo

KeyHandler 공개적으로 프로퍼티

Saves the handler that is called when the key is pressed.
public KeyHandler KeyHandler
리턴 KeyHandler