TextSpecific

These are common commands that apply to all widgets that have them injected.

Members

Functions

getAlignment
string getAlignment()

Get the alignment

getAngle
double getAngle()

Get the text angle.

getFont
string getFont()

Get the font.

getMaxLineLength
int getMaxLineLength()

Get max line length.

getText
string getText()

Get the text.

setAlignment
auto setAlignment(string alignment)

Specifies how to justify the text within its bounding region.

setAngle
auto setAngle(A angle)

Specifies how many degrees to rotate the text anticlockwise about the positioning point for the text; it may have any floating-point value from 0.0 to 360.0. For example, if rotationDegrees is 90, then the text will be drawn vertically from bottom to top. This option defaults to 0.0. Degrees is given in units of degrees measured counter-clockwise from the 3-o'clock position; it may be either positive or negative.

setFont
auto setFont(string font)

Specifies the font to use for the text item. The format of the string to pass when specifing a font is as follows.

setMaxLineLength
auto setMaxLineLength(L maxLineLength)

Specifies a maximum line length for the text. If this option is zero (the default) the text is broken into lines only at newline characters. However, if this option is non-zero then any line that would be longer than line length is broken just before a space character to make the line shorter than lineLength; the space character is treated as if it were a newline character.

setText
auto setText(string text)

Specifies the characters to be displayed in the text item. Newline characters cause line breaks.

Meta