Console Class

Definition

Line 37 of System.Windows/Console.cm

Inheritance

Constructors & Destructor

public Console(Constant backColor, Constant textColor, const Point& location, const Size& size, Dock dock, Anchors anchors)
public Console(const FontFamily& fontFamily, float fontSize, Constant backColor, Constant textColor, const Point& location, const Size& size, Dock dock, Anchors anchors)
public Console(const Point& location, const Size& size, Dock dock, Anchors anchors)

Member Functions

private nothrow void AddColor(Constant color, List<ColorCount>& colorLine)
public override void Clear()
public nothrow Event<ConsoleInputReadyEventHandler, EmptyEventArgs>& ConsoleInputReadyEvent()
private nothrow void DecrementCaretColorCount()
private nothrow void DecrementColorCount(List<ColorCount>& colorLine, int caretCol)
public inline nothrow Constant DefaultBackColor() const
public inline nothrow Constant DefaultTextColor() const
private nothrow void DeleteChar()
private void DrawLineText(Graphics& graphics, const String<uchar>& line, const List<ColorCount>& textColorLine, const PointF& origin)
public nothrow bool Eof() const
private SolidBrush* GetOrInsertBrush(Constant color)
private nothrow void IncrementCaretColorCount()
private nothrow void IncrementColorCount(List<ColorCount>& colorLine, int caretCol)
public nothrow const String<uchar>& InputLine() const
private nothrow void InsertChar(uchar ch)
protected virtual void OnConsoleInputReady()
protected override void OnKeyDown(KeyEventArgs& args)
protected override void OnKeyPress(KeyPressEventArgs& keyPressEventArgs)
private void OutputChar(Constant textColor, Constant backColor, int handle, uchar c)
protected override void PaintContent(Graphics& graphics, const Rect& clipRect)
private void PaintLineBackground(Graphics& graphics, const List<ColorCount>& backColorLine, const PointF& origin)
public nothrow void SetDefaultBackColor(Constant color)
public nothrow void SetDefaultTextColor(Constant color)
public void SetEof()
public void StartReadLine()
public void Write(int handle, const String<char>& text)

Member Variables

private List<List<ColorCount>> backColorLines
private HashMap<sbyte, SolidBrush*, Hasher<sbyte>, EqualTo<sbyte>> brushMap
private List<UniquePtr<SolidBrush>> brushes
private Event<ConsoleInputReadyEventHandler, EmptyEventArgs> consoleInputReadyEvent
private Constant defaultBackColor
private Constant defaultTextColor
private bool eof
private String<uchar> inputLine
private int startInputCol
private List<List<ColorCount>> textColorLines

Constructor& Destructor Details

Console Constructor

public Console(Constant backColor, Constant textColor, const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 51 of System.Windows/Console.cm


Console Constructor

public Console(const FontFamily& fontFamily, float fontSize, Constant backColor, Constant textColor, const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 39 of System.Windows/Console.cm


Console Constructor

public Console(const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 55 of System.Windows/Console.cm


Member Function Details

AddColor Member Function

private nothrow void AddColor(Constant color, List<ColorCount>& colorLine)

Definition
Line 368 of System.Windows/Console.cm


Clear Member Function

public override void Clear()

Definition
Line 220 of System.Windows/Console.cm


ConsoleInputReadyEvent Member Function

public nothrow Event<ConsoleInputReadyEventHandler, EmptyEventArgs>& ConsoleInputReadyEvent()

Definition
Line 441 of System.Windows/Console.cm


DecrementCaretColorCount Member Function

private nothrow void DecrementCaretColorCount()

Definition
Line 317 of System.Windows/Console.cm


DecrementColorCount Member Function

private nothrow void DecrementColorCount(List<ColorCount>& colorLine, int caretCol)

Definition
Line 326 of System.Windows/Console.cm


DefaultBackColor Member Function

public inline nothrow Constant DefaultBackColor()

Definition
Line 395 of System.Windows/Console.cm


DefaultTextColor Member Function

public inline nothrow Constant DefaultTextColor()

Definition
Line 410 of System.Windows/Console.cm


DeleteChar Member Function

private nothrow void DeleteChar()

Definition
Line 207 of System.Windows/Console.cm


DrawLineText Member Function

private void DrawLineText(Graphics& graphics, const String<uchar>& line, const List<ColorCount>& textColorLine, const PointF& origin)

Definition
Line 273 of System.Windows/Console.cm


Eof Member Function

public nothrow bool Eof()

Definition
Line 428 of System.Windows/Console.cm


GetOrInsertBrush Member Function

private SolidBrush* GetOrInsertBrush(Constant color)

Definition
Line 380 of System.Windows/Console.cm


IncrementCaretColorCount Member Function

private nothrow void IncrementCaretColorCount()

Definition
Line 289 of System.Windows/Console.cm


IncrementColorCount Member Function

private nothrow void IncrementColorCount(List<ColorCount>& colorLine, int caretCol)

Definition
Line 298 of System.Windows/Console.cm


InputLine Member Function

public nothrow const String<uchar>& InputLine()

Definition
Line 424 of System.Windows/Console.cm


InsertChar Member Function

private nothrow void InsertChar(uchar ch)

Definition
Line 177 of System.Windows/Console.cm


OnConsoleInputReady Member Function

protected virtual void OnConsoleInputReady()

Definition
Line 437 of System.Windows/Console.cm


OnKeyDown Member Function

protected override void OnKeyDown(KeyEventArgs& args)

Definition
Line 82 of System.Windows/Console.cm


OnKeyPress Member Function

protected override void OnKeyPress(KeyPressEventArgs& keyPressEventArgs)

Definition
Line 166 of System.Windows/Console.cm


OutputChar Member Function

private void OutputChar(Constant textColor, Constant backColor, int handle, uchar c)

Definition
Line 345 of System.Windows/Console.cm


PaintContent Member Function

protected override void PaintContent(Graphics& graphics, const Rect& clipRect)

Definition
Line 226 of System.Windows/Console.cm


PaintLineBackground Member Function

private void PaintLineBackground(Graphics& graphics, const List<ColorCount>& backColorLine, const PointF& origin)

Definition
Line 255 of System.Windows/Console.cm


SetDefaultBackColor Member Function

public nothrow void SetDefaultBackColor(Constant color)

Definition
Line 399 of System.Windows/Console.cm


SetDefaultTextColor Member Function

public nothrow void SetDefaultTextColor(Constant color)

Definition
Line 414 of System.Windows/Console.cm


SetEof Member Function

public void SetEof()

Definition
Line 432 of System.Windows/Console.cm


StartReadLine Member Function

public void StartReadLine()

Definition
Line 76 of System.Windows/Console.cm


Write Member Function

public void Write(int handle, const String<char>& text)

Definition
Line 59 of System.Windows/Console.cm