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
intThe x size
ys
intThe y size
i
IEnumerable<ILineElement>The lined elements
p
Placementx
inty
intf
CharFormatThe 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
intThe x size
ys
intThe y size
i
IEnumerable<ILineElement>The lined elements
f
CharFormatThe 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
stringThe line charachters
xs
intThe x size
ys
intThe y size
i
IEnumerable<ILineElement>The lined elements
p
Placementx
inty
intf
CharFormatThe 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
stringThe line charachters
xs
intThe x size
ys
intThe y size
i
IEnumerable<ILineElement>The lined elements
f
CharFormatThe 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()