Struct SimpleTextFormatter
helper to split text into several lines and draw it
struct SimpleTextFormatter;
Fields
| Name | Type | Description |
|---|---|---|
_lines
|
dstring[] | |
_linesWidths
|
int[] | |
_maxLineWidth
|
int | |
_tabOffset
|
int | |
_tabSize
|
int | |
_textFlags
|
uint |
Methods
| Name | Description |
|---|---|
draw
(buf, x, y, fnt, color)
|
draw formatted text |
draw
(buf, x, y, fnt, color, alignment)
|
draw horizontaly aligned formatted text |
format
(text, fnt, maxLines, maxWidth, tabSize, tabOffset, textFlags)
|
split text into lines and measure it; returns size in pixels |