C# Class System.WindowsConsoleDriver

Inheritance: IConsoleDriver
Mostra file Open project: runefs/Marvin

Public Methods

Method 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

Method 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 method

public Beep ( int frequency, int duration ) : void
frequency int
duration int
return void

Clear() public method

public Clear ( ) : void
return void

Init() public method

public Init ( ) : void
return void

MoveBufferArea() public method

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

ReadKey() public method

public ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool
return ConsoleKeyInfo

ReadLine() public method

public ReadLine ( ) : string
return string

ResetColor() public method

public ResetColor ( ) : void
return void

SetBufferSize() public method

public SetBufferSize ( int width, int height ) : void
width int
height int
return void

SetCursorPosition() public method

public SetCursorPosition ( int left, int top ) : void
left int
top int
return void

SetWindowPosition() public method

public SetWindowPosition ( int left, int top ) : void
left int
top int
return void

SetWindowSize() public method

public SetWindowSize ( int width, int height ) : void
width int
height int
return void

WindowsConsoleDriver() public method

public WindowsConsoleDriver ( ) : System.Runtime.InteropServices
return System.Runtime.InteropServices