Label
Display text.
| Module | require("yue.gui") | 
| Type | Class | 
| Inherits | View | 
Class methods
create(text)
Create a new Label with text.
Parameters
- stringtext
Return
Labelcreatewithattributedtext(text)
Create a new Label with attributed text.
Parameters
- AttributedTexttext
Return
LabelMethods
settext(text)
Set the text to display.
Parameters
- stringtext
gettext()
Return the text displayed.
Return
stringsetalign(align)
Set horizontal text alignment.
Parameters
- TextAlignalign
setvalign(align)
Set vertical text alignment.
Parameters
- TextAlignalign
setattributedtext(text)
Set the attributed text to display.
Parameters
- AttributedTexttext
getattributedtext()
Return the attributed text displayed.
Return
AttributedText