- dirty
bool dirty(Coord pos)
Is a cell dirty? Dirty means that the cell has some content
or style change that has not been written to the terminal yet.
Writes of identical content to what was last displayed do not
cause a cell to become dirty -- only *different* content does.
- fill
void fill(Cell c)
Undocumented in source. Be warned that the author may not have intended to support it.
- fill
void fill(string s)
Fill the entire contents, but leave any text styles undisturbed.
- fill
void fill(string s, Style style)
Fill the entires contents, including the given style.
- get
Cell get(Coord pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- isLegal
bool isLegal(Coord pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- opDollar
int opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndex
Cell opIndex(Coord pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndex
Cell opIndex(size_t x, size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndexAssign
void opIndexAssign(Cell c, size_t x, size_t y)
Set content for the cell.
- opIndexAssign
void opIndexAssign(Cell c, Coord pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndexAssign
void opIndexAssign(string s, Coord pos)
Set content for the cell, preserving existing styling.
- opIndexAssign
void opIndexAssign(Style style, Coord pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndexAssign
void opIndexAssign(string s, size_t x, size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndexAssign
void opIndexAssign(Style v, size_t x, size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
- resize
void resize(Coord size)
Resize the cell buffer. Existing contents will be preserved,
provided that they still fit. Contents that no longer fit will
be clipped (lost). Newly added cells will be initialized to empty
content. The entire set of contents are marked dirty, because
presumably everything needs to be redrawn when this happens.
- resize
void resize(int cols, int rows)
Undocumented in source. Be warned that the author may not have intended to support it.
- setAllDirty
void setAllDirty(bool b)
Mark all cells as either dirty or clean.
- setDirty
void setDirty(Coord pos, bool b)
Mark a cell as either dirty or clean.
- size
Coord size()
Undocumented in source. Be warned that the author may not have intended to support it.
CellBuffer is a logical grid of cells containing content to display on screen. It uses double buffering which can be used to reduce redrawing content on screen, which can have a very noticeable impact on performance and responsiveness.
It behaves something like a two-dimensional array, but offers some conveniences. Values returned from the indexing are constant, but new values can be assigned.