Text

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.

Constructors

this
this(dstring text, CharacterFormattingInfo!BitmapType formatting, Text next, int frontTab, BitmapType icon)

Creates a unit of formatted text from the supplied data.

this
this(ubyte[] stream, Fontset!BitmapType[uint] fonts)

Parses formatted text from binary. Header is the first 4 bytes of the stream.

Members

Functions

toDString
dstring toDString()

Returns the text as a 32bit string without the formatting.

Variables

formatting
CharacterFormattingInfo!BitmapType formatting;

The formatting of this text block

frontTab
int frontTab;

Space before the text chunk in pixels. Can be negative.

icon
BitmapType icon;

Icon inserted in front of the text chunk.

iconOffsetX
byte iconOffsetX;

X offset of the icon if any

iconOffsetY
byte iconOffsetY;

Y offset of the icon if any

next
Text next;

The next piece of formatted text block

text
dstring text;

The text to be displayed

Meta