Struct SimpleTextFormatter

helper to split text into several lines and draw it

struct SimpleTextFormatter;

Fields

NameTypeDescription
_lines dstring[]
_linesWidths int[]
_maxLineWidth int
_tabOffset int
_tabSize int
_textFlags uint

Methods

NameDescription
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