Class BitBuffer
- Namespace
- AshConsoleGraphics
- Assembly
- AshConsoleGraphics.dll
Buffer for elements that are connected lines
public class BitBuffer
- Inheritance
-
BitBuffer
- Inherited Members
Constructors
BitBuffer(int, int)
Initializes a new empty buffer with its size
public BitBuffer(int x, int y)
Parameters
Properties
Xsize
public int Xsize { get; }
Property Value
Ysize
public int Ysize { get; }
Property Value
Methods
AddBuffer(int, int, BitBuffer)
Adds a whole buffer
public void AddBuffer(int x, int y, BitBuffer b)
Parameters
x
intThe x position of the buffer, top left corner
y
intThe y position of the buffer, top left corner
b
BitBufferThe other buffer
SetAllTrue()
Sets the whole buffer to true and returns itself
public BitBuffer SetAllTrue()
Returns
SetBit(int, int, bool)
Sets a bit
public void SetBit(int x, int y, bool b)
Parameters
ToBuffer(char[], CharFormat?)
Transforms itself to a normal buffer of connected lines
public Buffer ToBuffer(char[] chars, CharFormat? def)
Parameters
chars
char[]16 charachters that are the coneccted line. An example would be "·───│┌┐┬│└┘┴│├┤┼"
def
CharFormatThe default format