C# Класс StdPaint.Painter

Allows drawing to the console buffer.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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