Table of Contents

Class TuiConnectedLinesScreen

Namespace
AshConsoleGraphics
Assembly
AshConsoleGraphics.dll

Screen with elements that connect like lines

public class TuiConnectedLinesScreen : TuiScreen, IEnumerable<TuiElement>, IEnumerable
Inheritance
TuiConnectedLinesScreen
Implements
Inherited Members

Constructors

TuiConnectedLinesScreen(int, int, IEnumerable<ILineElement>, Placement, int, int, CharFormat?)

Initializes a new line screen with default chars

public TuiConnectedLinesScreen(int xs, int ys, IEnumerable<ILineElement> i, Placement p, int x, int y, CharFormat? f)

Parameters

xs int

The x size

ys int

The y size

i IEnumerable<ILineElement>

The lined elements

p Placement
x int
y int
f CharFormat

The default format

TuiConnectedLinesScreen(int, int, IEnumerable<ILineElement>, CharFormat?)

Initializes a new line screen with top left position and default chars

public TuiConnectedLinesScreen(int xs, int ys, IEnumerable<ILineElement> i, CharFormat? f)

Parameters

xs int

The x size

ys int

The y size

i IEnumerable<ILineElement>

The lined elements

f CharFormat

The default format

TuiConnectedLinesScreen(string, int, int, IEnumerable<ILineElement>, Placement, int, int, CharFormat?)

Initializes a new line screen

public TuiConnectedLinesScreen(string chars, int xs, int ys, IEnumerable<ILineElement> i, Placement p, int x, int y, CharFormat? f)

Parameters

chars string

The line charachters

xs int

The x size

ys int

The y size

i IEnumerable<ILineElement>

The lined elements

p Placement
x int
y int
f CharFormat

The default format

Exceptions

ArgumentException

Thrown when chars is null or it is not 16 chars long

TuiConnectedLinesScreen(string, int, int, IEnumerable<ILineElement>, CharFormat?)

Initializes a new line screen with top left position

public TuiConnectedLinesScreen(string chars, int xs, int ys, IEnumerable<ILineElement> i, CharFormat? f)

Parameters

chars string

The line charachters

xs int

The x size

ys int

The y size

i IEnumerable<ILineElement>

The lined elements

f CharFormat

The default format

Exceptions

ArgumentException

Thrown when chars is null or it is not 16 chars long

Properties

Chars

The 16 connected line charachters. An example would be "·───│┌┐┬│└┘┴│├┤┼"

public char[] Chars { get; set; }

Property Value

char[]

Methods

GenerateBuffer()

The method that generates the element's buffer

protected override Buffer GenerateBuffer()

Returns

Buffer