The cells of the screen and the place of the text cursor.
More...
#include <textgrid.h>
|
| TextCell & | At (int column, int row) |
| const TextCell & | At (int column, int row) const |
| void | Fill (int column, int row, int width, int height, std::uint8_t glyph, CgaColor foreground, CgaColor background) |
| | Fill a rectangle of cells with one character in two colours.
|
| void | Write (int column, int row, std::u32string_view text, CgaColor foreground, CgaColor background, int width=-1) |
| | Write text along a row, a cell for each code point, cut at width cells.
|
| void | WriteUtf8 (int column, int row, std::string_view text, CgaColor foreground, CgaColor background, int width=-1) |
| | Write UTF-8 text along a row, as Write() writes code points.
|
| void | Box (int column, int row, int width, int height, CgaColor foreground, CgaColor background, bool doubled) |
| | Draw the frame of a box with the lines of code page 437 and fill its inside.
|
| void | Shadow (int column, int row, int width, int height) |
| | Darken the cells one row below and two columns right of a box, as the shadow of a dialog of the QBASIC editor darkens the screen under it.
|
The cells of the screen and the place of the text cursor.
◆ At() [1/2]
| TextCell & coastline::TextGrid::At |
( |
int | column, |
|
|
int | row ) |
- Parameters
-
| column | The column, from 0 at the left. |
| row | The row, from 0 at the top. |
- Returns
- The cell, or a scratch cell outside the grid.
◆ At() [2/2]
| const TextCell & coastline::TextGrid::At |
( |
int | column, |
|
|
int | row ) const |
- Parameters
-
| column | The column, from 0 at the left. |
| row | The row, from 0 at the top. |
- Returns
- The cell, or a blank cell outside the grid.
◆ Fill()
Fill a rectangle of cells with one character in two colours.
- Parameters
-
| column | The left column. |
| row | The top row. |
| width | The columns. |
| height | The rows. |
| glyph | The character, in code page 437. |
| foreground | The colour of the character. |
| background | The colour behind it. |
◆ Write()
Write text along a row, a cell for each code point, cut at width cells.
- Parameters
-
| column | The first column. |
| row | The row. |
| text | The text, in code points. |
| foreground | The colour of the characters. |
| background | The colour behind them. |
| width | The most cells written, or below 0 for no limit. |
◆ WriteUtf8()
Write UTF-8 text along a row, as Write() writes code points.
- Parameters
-
| column | The first column. |
| row | The row. |
| text | The text, in UTF-8. |
| foreground | The colour of the characters. |
| background | The colour behind them. |
| width | The most cells written, or below 0 for no limit. |
◆ Box()
| void coastline::TextGrid::Box |
( |
int | column, |
|
|
int | row, |
|
|
int | width, |
|
|
int | height, |
|
|
CgaColor | foreground, |
|
|
CgaColor | background, |
|
|
bool | doubled ) |
Draw the frame of a box with the lines of code page 437 and fill its inside.
- Parameters
-
| column | The left column of the frame. |
| row | The top row of the frame. |
| width | The columns of the box, the frame included. |
| height | The rows of the box, the frame included. |
| foreground | The colour of the lines. |
| background | The colour of the box. |
| doubled | Whether the lines are double. |
◆ Shadow()
| void coastline::TextGrid::Shadow |
( |
int | column, |
|
|
int | row, |
|
|
int | width, |
|
|
int | height ) |
Darken the cells one row below and two columns right of a box, as the shadow of a dialog of the QBASIC editor darkens the screen under it.
- Parameters
-
| column | The left column of the box. |
| row | The top row of the box. |
| width | The columns of the box. |
| height | The rows of the box. |
◆ cursor
The cell the text cursor blinks in, or none when it does not show.
The documentation for this class was generated from the following file: