- Clear
void Clear(char ch, ubyte fg, ubyte bg)
fills the text buffer with the given character
- DrawBox
void DrawBox(SDL_Rect rect, ubyte fg, ubyte bg)
draws the outline of a rectangle
- FillRect
void FillRect(SDL_Rect rect, char ch, ubyte fg, ubyte bg)
- GetSize
Vec2!size_t GetSize()
returns the size of the text buffer
- HandleEvent
bool HandleEvent(Project parent, SDL_Event e)
Undocumented in source. Be warned that the author may not have intended to support it.
- HorizontalLine
void HorizontalLine(Vec2!size_t start, size_t length, char ch, ubyte fg, ubyte bg)
draws a horizontal line in the text buffer
- Render
void Render(Project parent)
Undocumented in source. Be warned that the author may not have intended to support it.
- SetCell
void SetCell(Vec2!size_t pos, Cell cell)
sets a cell in the text buffer to the given cell
- SetCharacter
void SetCharacter(Vec2!size_t pos, char ch, ubyte fg, ubyte bg)
sets a character in the text buffer
- SetSize
void SetSize(Vec2!size_t size)
sets the size of the text buffer
- VerticalLine
void VerticalLine(Vec2!size_t start, size_t length, char ch, ubyte fg, ubyte bg)
draws a vertical line in the text buffer
- WriteString
void WriteString(Vec2!size_t pos, string str, ubyte fg, ubyte bg)
adds characters starting from pos in the text buffer
- WriteStringCentered
void WriteStringCentered(size_t yPos, string str, ubyte fg, ubyte bg)
writes a string centered horizontally
- WriteStringLines
void WriteStringLines(Vec2!size_t pos, string[] strings, ubyte fg, ubyte bg)
writes multiple lines in the text buffer
- WriteStringLinesCentered
void WriteStringLinesCentered(size_t yPos, string[] strings, ubyte fg, ubyte bg)
writes multiple horizontally centered lines
text screen object class