Table of Contents

Class TuiFrame

Namespace
AshConsoleGraphics
Assembly
AshConsoleGraphics.dll

An empty on the inside frame with 8 different charachters

public class TuiFrame : TuiElement, ILineElement
Inheritance
TuiFrame
Implements
Inherited Members

Constructors

TuiFrame(int, int, Placement, int, int, CharFormat?)

Initializes a new frame with the 8 default chars (single line)

public TuiFrame(int xs, int ys, Placement p, int x, int y, CharFormat? f = null)

Parameters

xs int

The x size

ys int

The y size

p Placement
x int
y int
f CharFormat

The format

TuiFrame(string, int, int, Placement, int, int, CharFormat?)

Initializes a new frame

public TuiFrame(string chars, int xs, int ys, Placement p, int x, int y, CharFormat? f = null)

Parameters

chars string

The 8 needed chars

xs int

The x size

ys int

The y size

p Placement
x int
y int
f CharFormat

The format

Properties

Chars

All the 8 needed chars. An example would be "┌┐└┘──││"

public char[] Chars { get; set; }

Property Value

char[]

Format

Charachter format

public CharFormat? Format { get; set; }

Property Value

CharFormat

Xsize

public int Xsize { get; set; }

Property Value

int

Ysize

public int Ysize { get; set; }

Property Value

int

Methods

GenerateBitBuffer()

public BitBuffer GenerateBitBuffer()

Returns

BitBuffer

GenerateBuffer()

The method that generates the element's buffer

protected override Buffer GenerateBuffer()

Returns

Buffer