C# Класс MBC.App.Terminal.Modules.TerminalModule

The base class for a TerminalModule. Used for providing different states of the terminal application. Provides various methods to display information in a TerminalModule buffer. Direct output via the Console class is not to be used.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Align ( ) : void
AlignToCoord ( int x, int y ) : bool
AlignToLine ( int line ) : bool
InputEntered ( string input ) : void
IsLayoutSelected ( ControlLayout layout ) : bool
KeyPressed ( ConsoleKeyInfo key ) : bool
NewLine ( int n = 1 ) : void
NextLayout ( ) : void
PreviousLayout ( ) : void
RefreshDisplay ( int x, int y, int w, int h ) : void
WriteCenteredText ( string text ) : void
WriteCharRepeat ( char c, int n ) : void
WriteChars ( char c ) : void
WriteText ( string txt ) : void

Защищенные методы

Метод Описание
AddControlLayout ( ControlLayout ctrl ) : void
Display ( ) : void
RemoveControlLayout ( ControlLayout ctrl ) : void

Описание методов

AddControlLayout() защищенный Метод

protected AddControlLayout ( ControlLayout ctrl ) : void
ctrl MBC.App.Terminal.Layouts.ControlLayout
Результат void

Align() публичный Метод

public Align ( ) : void
Результат void

AlignToCoord() публичный Метод

public AlignToCoord ( int x, int y ) : bool
x int
y int
Результат bool

AlignToLine() публичный Метод

public AlignToLine ( int line ) : bool
line int
Результат bool

Display() защищенный абстрактный Метод

protected abstract Display ( ) : void
Результат void

InputEntered() публичный Метод

public InputEntered ( string input ) : void
input string
Результат void

IsLayoutSelected() публичный Метод

public IsLayoutSelected ( ControlLayout layout ) : bool
layout MBC.App.Terminal.Layouts.ControlLayout
Результат bool

KeyPressed() публичный Метод

public KeyPressed ( ConsoleKeyInfo key ) : bool
key System.ConsoleKeyInfo
Результат bool

NewLine() публичный Метод

public NewLine ( int n = 1 ) : void
n int
Результат void

NextLayout() публичный Метод

public NextLayout ( ) : void
Результат void

PreviousLayout() публичный Метод

public PreviousLayout ( ) : void
Результат void

RefreshDisplay() публичный Метод

public RefreshDisplay ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
Результат void

RemoveControlLayout() защищенный Метод

protected RemoveControlLayout ( ControlLayout ctrl ) : void
ctrl MBC.App.Terminal.Layouts.ControlLayout
Результат void

WriteCenteredText() публичный Метод

public WriteCenteredText ( string text ) : void
text string
Результат void

WriteCharRepeat() публичный Метод

public WriteCharRepeat ( char c, int n ) : void
c char
n int
Результат void

WriteChars() публичный Метод

public WriteChars ( char c ) : void
c char
Результат void

WriteText() публичный Метод

public WriteText ( string txt ) : void
txt string
Результат void