92 void putCell(
int x,
int y,
char32_t ch);
General-purpose RGBA color.
Definition color.h:24
Dynamic array container wrapping std::vector.
Definition list.h:40
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
Painting context for TUI widgets.
Definition painter.h:26
Color background() const
Returns the current background color.
Definition painter.h:73
const Rect2Di32 & clipRect() const
Returns the current clipping rectangle.
Definition painter.h:85
uint8_t attrs() const
Returns the current attribute flags.
Definition painter.h:76
void drawRect(const Rect2Di32 &rect, char32_t ch=0)
Draws a rectangle outline using the given character.
void setStyle(const TuiStyle &style)
Sets all visual properties from a TuiStyle.
Definition painter.h:67
void drawText(int x, int y, const String &text)
Draws horizontal text at the given position.
void setClipRect(const Rect2Di32 &rect)
Sets the clipping rectangle.
Definition painter.h:82
TuiPainter(TuiScreen &screen, const Rect2Di32 &clipRect)
Constructs a TuiPainter.
void drawHLine(int x, int y, int len, char32_t ch=U'\u2500')
Draws a horizontal line.
void drawChar(int x, int y, char32_t ch)
Draws a single character at the given position.
void drawVLine(int x, int y, int len, char32_t ch=U'\u2502')
Draws a vertical line.
void setAttrs(uint8_t attrs)
Sets the current attribute flags.
Definition painter.h:64
void fillRect(const Rect2Di32 &rect, char32_t ch=U' ')
Fills a rectangle with the given character.
void setForeground(const Color &color)
Sets the current foreground color.
Definition painter.h:58
const TuiStyle & style() const
Returns the current style.
Definition painter.h:79
Color foreground() const
Returns the current foreground color.
Definition painter.h:70
void setBackground(const Color &color)
Sets the current background color.
Definition painter.h:61
Double-buffered character cell grid for TUI rendering.
Definition screen.h:60
Visual properties of a TUI cell (everything except the character).
Definition style.h:29
void setForeground(const Color &color)
Sets the foreground color.
Definition style.h:65
Color foreground() const
Returns the foreground color.
Definition style.h:53
void setBackground(const Color &color)
Sets the background color.
Definition style.h:68
uint8_t attrs() const
Returns the attribute flags.
Definition style.h:59
Color background() const
Returns the background color.
Definition style.h:56
void setAttrs(uint8_t attrs)
Sets all attribute flags (marks all bits as defined).
Definition style.h:71
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19