Private
alignXPrivate
alignYPrivate
definedPrivate
dirtyPrivate
fontPrivate
letterPrivate
letterPrivate
lettersPrivate
linePrivate
linesPrivate
maxPrivate
namedPrivate
renderedPrivate
textPrivate
textPrivate
_ensurePrivate
getPrivate
getPrivate
getPrivate
getPrivate
getChanging this will not change the layout. The renderer needs to read this value and make sure to handle this.
Optional
fontName: stringGenerated using TypeDoc
A TextBox is designed to do A PART of the common text rendering task. This class holds all relevant data and also performs the layouting of the single letters for a text box.
It is possible to set a MaxWidth and have a "boxed" aware layout of the text. Combined with x-alignment this takes care of all the relevant properties of the letter layout.
Each letter position is stored in a "cleverished" cache that defines where exactly each letter is placed.
All values are in local space. So one cannot
Text rendering is not part of this object.
** Example:
text: "Hello I am a Text\nwith two lines" alignX: right maxWidth: 60
| -------------------| | |Hello I am a Text|| | | with two lines|| | -------------------|
** Example:
text: "Hello I am a Text\nwith two lines" alignX: left maxWidth: 60
|------------------- | ||Hello I am a Text| | ||with two lines | | |------------------- |
** Example:
text: "Hello I am a Text\nwith two lines" alignX: center maxWidth: 60
| ------------------- | | |Hello I am a Text| | | | with two lines | | | ------------------- |