C# 클래스 StdPaint.Painter

Allows drawing to the console buffer.
파일 보기 프로젝트 열기: TheBerkin/StdPaint

공개 프로퍼티들

프로퍼티 타입 설명
Elements List

공개 메소드들

메소드 설명
Clear ( BufferColor clearColor = BufferColor.Black ) : void

Clears the active buffer to the specified attributes.

IsKeyDown ( Keys key ) : bool

Returns whether a specific key is pressed.

Run ( int width, int height, int bufferRefreshRate ) : void

Starts the Painter with the specified size and refresh rate.

Stop ( ) : void

Stops the Painter.

비공개 메소드들

메소드 설명
AddHooks ( ) : void
ConsoleCloseEvent ( uint code ) : bool
GraphicsDrawThread ( ) : void
GraphicsRenderThread ( ) : void
InBounds ( int x, int y ) : bool
KeyboardHookCallback ( int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr
MouseHookCallback ( int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr

메소드 상세

Clear() 공개 정적인 메소드

Clears the active buffer to the specified attributes.
public static Clear ( BufferColor clearColor = BufferColor.Black ) : void
clearColor BufferColor The attributes to fill the buffer with.
리턴 void

IsKeyDown() 공개 정적인 메소드

Returns whether a specific key is pressed.
public static IsKeyDown ( Keys key ) : bool
key Keys The key to check.
리턴 bool

Run() 공개 정적인 메소드

Starts the Painter with the specified size and refresh rate.
public static Run ( int width, int height, int bufferRefreshRate ) : void
width int The width of the console, in units.
height int The height of the console, in units.
bufferRefreshRate int The refresh rate for the back buffer.
리턴 void

Stop() 공개 정적인 메소드

Stops the Painter.
public static Stop ( ) : void
리턴 void

프로퍼티 상세

Elements 공개적으로 정적으로 프로퍼티

Contains the GUI elements currently being displayed by the engine.
public static List Elements
리턴 List