Label
fun Label( posX: Number = 0, posY: Number = 0, width: Number = DEFAULT_LABEL_WIDTH, height: Number = DEFAULT_LABEL_HEIGHT, text: String = "", font: Font = Font(), alignment: Alignment = Alignment.CENTER, isWrapText: Boolean = false, visual: Visual = Visual.EMPTY)
Content copied to clipboard
Creates a Label.
Parameters
pos X
Horizontal coordinate for this Label. Default: 0.
pos Y
Vertical coordinate for this Label. Default: 0.
width
Width for this Label. Default: DEFAULT_LABEL_WIDTH.
height
Height for this Label. Default: DEFAULT_LABEL_HEIGHT.
text
Text for this Label. Default: empty String.
alignment
Alignment to be used for the text Default: Alignment.CENTER.
is Wrap Text
Defines if text should be wrapped. Default: false
.
visual
Background Visual. Default: Visual.EMPTY