C# Class System.WindowsConsoleDriver

Inheritance: IConsoleDriver
Afficher le fichier Open project: runefs/Marvin

Méthodes publiques

Méthode Description
Beep ( int frequency, int duration ) : void
Clear ( ) : void
Init ( ) : void
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
ReadKey ( bool intercept ) : ConsoleKeyInfo
ReadLine ( ) : string
ResetColor ( ) : void
SetBufferSize ( int width, int height ) : void
SetCursorPosition ( int left, int top ) : void
SetWindowPosition ( int left, int top ) : void
SetWindowSize ( int width, int height ) : void
WindowsConsoleDriver ( ) : System.Runtime.InteropServices

Private Methods

Méthode Description
FillConsoleOutputAttribute ( IntPtr handle, short c, int size, Coord coord, int &written ) : bool
FillConsoleOutputCharacter ( IntPtr handle, char c, int size, Coord coord, int &written ) : bool
GetAttrBackground ( int attr, ConsoleColor color ) : short
GetAttrForeground ( int attr, ConsoleColor color ) : short
GetBackground ( short attr ) : ConsoleColor
GetConsoleCursorInfo ( IntPtr handle, ConsoleCursorInfo &info ) : bool
GetConsoleMode ( IntPtr handle, int &mode ) : bool
GetConsoleScreenBufferInfo ( IntPtr handle, ConsoleScreenBufferInfo &info ) : bool
GetConsoleTitle ( StringBuilder sb, int size ) : int
GetForeground ( short attr ) : ConsoleColor
GetKeyState ( int virtKey ) : short
GetLargestConsoleWindowSize ( IntPtr handle ) : Coord
GetStdHandle ( Handles handle ) : IntPtr
PeekConsoleInput ( IntPtr handle, InputRecord &record, int length, int &eventsRead ) : bool
ReadConsoleInput ( IntPtr handle, InputRecord &record, int length, int &nread ) : bool
ReadConsoleOutput ( IntPtr handle, void buffer, Coord bsize, Coord bpos, SmallRect &region ) : bool
SetConsoleCursorInfo ( IntPtr handle, ConsoleCursorInfo &info ) : bool
SetConsoleCursorPosition ( IntPtr handle, Coord coord ) : bool
SetConsoleMode ( IntPtr handle, int mode ) : bool
SetConsoleScreenBufferSize ( IntPtr handle, Coord newSize ) : bool
SetConsoleTextAttribute ( IntPtr handle, short attribute ) : bool
SetConsoleTitle ( string title ) : bool
SetConsoleWindowInfo ( IntPtr handle, bool absolute, SmallRect &rect ) : bool
WriteConsoleOutput ( IntPtr handle, CharInfo buffer, Coord bsize, Coord bpos, SmallRect &region ) : bool
_Beep ( int frequency, int duration ) : void

Method Details

Beep() public méthode

public Beep ( int frequency, int duration ) : void
frequency int
duration int
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Init() public méthode

public Init ( ) : void
Résultat void

MoveBufferArea() public méthode

public MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
sourceLeft int
sourceTop int
sourceWidth int
sourceHeight int
targetLeft int
targetTop int
sourceChar Char
sourceForeColor ConsoleColor
sourceBackColor ConsoleColor
Résultat void

ReadKey() public méthode

public ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool
Résultat ConsoleKeyInfo

ReadLine() public méthode

public ReadLine ( ) : string
Résultat string

ResetColor() public méthode

public ResetColor ( ) : void
Résultat void

SetBufferSize() public méthode

public SetBufferSize ( int width, int height ) : void
width int
height int
Résultat void

SetCursorPosition() public méthode

public SetCursorPosition ( int left, int top ) : void
left int
top int
Résultat void

SetWindowPosition() public méthode

public SetWindowPosition ( int left, int top ) : void
left int
top int
Résultat void

SetWindowSize() public méthode

public SetWindowSize ( int width, int height ) : void
width int
height int
Résultat void

WindowsConsoleDriver() public méthode

public WindowsConsoleDriver ( ) : System.Runtime.InteropServices
Résultat System.Runtime.InteropServices