Creates a unit of formatted text from the supplied data.
Copy CTOR
Breaks this text object into multiple lines
Returns the used font type.
Returns the width of the current text block in pixels.
Returns a character from the given position.
Returns the width of the text chain in pixels.
Returns the width of a slice of the text chain in pixels.
Inserts a given character at the given position. Return the inserted character if within bound, or dchar.init if position points to a place where it cannot be inserted easily.
Returns the number of characters fully offset by the amount of pixel.
Indexing to refer to child items. Returns null if the given element isn't available.
Overwrites a character at the given position. Returns the original character if within bound, or or dchar.init if position points to a place where it cannot be inserted easily.
Removes the character at the given position. Returns the removed character if within bound, or dchar.init if not.
Removes a range of characters described by the begin and end position.
Returns the text as a 32bit string without the formatting.
Returns the character lenght.
Text accessor
Text accessor
The text to be displayed
Text flags
The formatting of this text block
Space before the text chunk in pixels. Can be negative.
Icon inserted in front of the text chunk.
X offset of the icon if any
Y offset of the icon if any
Spacing after the icon if any
The next piece of formatted text block
Implements a formatted text chunk, that can be serialized in XML form. Has a linked list structure to easily link multiple chunks after each other.