Matrix

Used to store the widget's/terminal's display in a matrix

Constructors

this
this(uinteger matrixWidth, uinteger matrixHeight, Cell fill)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

changeSize
bool changeSize(uinteger matrixWidth, uinteger matrixHeight, Cell fill)

Change size of the matrix, width and height

clear
void clear(Cell fill)

Clear the matrix, and put fill in every cell

flushToTerminal
void flushToTerminal(QTerminal terminal)

Write contents of matrix to a QTerminal

insert
bool insert(Matrix toInsert, uinteger x, uinteger y)

insert a matrix into this one at a position

moveTo
bool moveTo(uinteger x, uinteger y)

move to a different position to write

read
Cell read(uinteger x, uinteger y)

read a cell from the matrix

readRow
Cell[] readRow(uinteger y)

read a complete row from matrix

resetWritePosition
void resetWritePosition()

sets write position to (0, 0)

setColors
void setColors(RGBColor textColor, RGBColor bgColor)

changes colors for whole matrix

write
void write(char[] c, RGBColor textColor, RGBColor bgColor)

used to write to matrix, call Matrix.setWriteLimits before this

Properties

height
uinteger height [@property getter]

returns number of rows/lines in matrix

width
uinteger width [@property getter]

returns number of columns in matrix

writePosX
uinteger writePosX [@property getter]

returns the point ox x-axis where next write will start from

writePosY
uinteger writePosY [@property getter]

returns the point ox y-axis where next write will start from

Meta