Label
Display text.
Module | require("yue.gui") |
Type | Class |
Inherits | View |
Class methods
create(text)
Create a new Label
with text
.
Parameters
string
text
Return
Label
createwithattributedtext(text)
Create a new Label
with attributed text
.
Parameters
AttributedText
text
Return
Label
Methods
settext(text)
Set the text to display.
Parameters
string
text
gettext()
Return the text displayed.
Return
string
setalign(align)
Set horizontal text alignment.
Parameters
TextAlign
align
setvalign(align)
Set vertical text alignment.
Parameters
TextAlign
align
setattributedtext(text)
Set the attributed text to display.
Parameters
AttributedText
text
getattributedtext()
Return the attributed text displayed.
Return
AttributedText