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, Placement, int, int, CharFormat?, params ILineElement[])

Initializes a new line screen with default chars

public TuiConnectedLinesScreen(int xs, int ys, Placement p, int x, int y, CharFormat? f, params ILineElement[] i)

Parameters

xs int

The x size

ys int

The y size

p Placement
x int
y int
f CharFormat

The default format

i ILineElement[]

The lined elements

TuiConnectedLinesScreen(int, int, CharFormat?, params ILineElement[])

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

public TuiConnectedLinesScreen(int xs, int ys, CharFormat? f, params ILineElement[] i)

Parameters

xs int

The x size

ys int

The y size

f CharFormat

The default format

i ILineElement[]

The lined elements

TuiConnectedLinesScreen(string, int, int, Placement, int, int, CharFormat?, params ILineElement[])

Initializes a new line screen

public TuiConnectedLinesScreen(string chars, int xs, int ys, Placement p, int x, int y, CharFormat? f, params ILineElement[] i)

Parameters

chars string

The line charachters

xs int

The x size

ys int

The y size

p Placement
x int
y int
f CharFormat

The default format

i ILineElement[]

The lined elements

Exceptions

ArgumentException

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

TuiConnectedLinesScreen(string, int, int, CharFormat?, params ILineElement[])

Initializes a new line screen with top left position

public TuiConnectedLinesScreen(string chars, int xs, int ys, CharFormat? f, params ILineElement[] i)

Parameters

chars string

The line charachters

xs int

The x size

ys int

The y size

f CharFormat

The default format

i ILineElement[]

The lined elements

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