- getAlign
Label.Align getAlign()
- getLineCount
long getLineCount()
Returns the amount of lines of text the Label has.
- getLineHeight
long getLineHeight()
Returns the font size in pixels.
- getLinesSkipped
long getLinesSkipped()
- getMaxLinesVisible
long getMaxLinesVisible()
- getPercentVisible
double getPercentVisible()
- getText
String getText()
- getTotalCharacterCount
long getTotalCharacterCount()
Returns the total length of the text.
- getValign
Label.VAlign getValign()
- getVisibleCharacters
long getVisibleCharacters()
- getVisibleLineCount
long getVisibleLineCount()
Returns the number of lines shown. Useful if the Label 's height cannot currently display all lines.
- hasAutowrap
bool hasAutowrap()
- isClippingText
bool isClippingText()
- isUppercase
bool isUppercase()
- opAssign
Label opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Label other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setAlign
void setAlign(long _align)
- setAutowrap
void setAutowrap(bool enable)
- setClipText
void setClipText(bool enable)
- setLinesSkipped
void setLinesSkipped(long lines_skipped)
- setMaxLinesVisible
void setMaxLinesVisible(long lines_visible)
- setPercentVisible
void setPercentVisible(double percent_visible)
- setText
void setText(StringArg0 text)
- setUppercase
void setUppercase(bool enable)
- setValign
void setValign(long valign)
- setVisibleCharacters
void setVisibleCharacters(long amount)
- _align
Label.Align _align [@property getter]
long _align [@property setter]
Controls the text's horizontal align. Supports left, center, right, and fill, or justify. Set it to one of the ALIGN_* constants.
- autowrap
bool autowrap [@property getter]
bool autowrap [@property setter]
If true, wraps the text inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text. Default: false.
- clipText
bool clipText [@property getter]
bool clipText [@property setter]
If true, the Label only shows the text that fits inside its bounding rectangle. It also lets you scale the node down freely.
- linesSkipped
long linesSkipped [@property setter]
The node ignores the first lines_skipped lines before it starts to display text.
- linesSkipped
long linesSkipped [@property getter]
The node ignores the first lines_skipped lines before it starts to display text.
- maxLinesVisible
long maxLinesVisible [@property getter]
long maxLinesVisible [@property setter]
Limits the lines of text the node shows on screen.
- percentVisible
double percentVisible [@property getter]
double percentVisible [@property setter]
Limits the count of visible characters. If you set percent_visible to 50, only up to half of the text's characters will display on screen. Useful to animate the text in a dialog box.
- text
String text [@property getter]
String text [@property setter]
The text to display on screen.
- uppercase
bool uppercase [@property getter]
bool uppercase [@property setter]
If true, all the text displays as UPPERCASE.
- valign
Label.VAlign valign [@property getter]
long valign [@property setter]
Controls the text's vertical align. Supports top, center, bottom, and fill. Set it to one of the VALIGN_* constants.
- visibleCharacters
long visibleCharacters [@property getter]
long visibleCharacters [@property setter]
Restricts the number of characters to display. Set to -1 to disable.
Displays plain text in a line or wrapped inside a rectangle. For formatted text, use RichTextLabel.
Label displays plain text on the screen. It gives you control over the horizontal and vertical alignment, and can wrap the text inside the node's bounding rectangle. It doesn't support bold, italics or other formatting. For that, use RichTextLabel instead. Note that contrarily to most other Controls, Label's Control.mouseFilter defaults to MOUSE_FILTER_IGNORE (i.e. it doesn't react to mouse input events).