toggle menu
light-ui
1.1.3
common
switch theme
search in API
light-ui
/
ru.casperix.light_ui.component.text
/
Label
Label
class
Label
(
initialText
:
String
=
""
,
skin
:
LabelSkin
=
SkinProvider.skin.label
,
alignMode
:
AlignMode
=
AlignMode.CENTER_CENTER
)
:
SkinnedElement
<
LabelSkin
>
,
ElementDrawer
,
ElementWithLayout
Members
Constructors
Label
Link copied to clipboard
constructor
(
initialText
:
String
=
""
,
skin
:
LabelSkin
=
SkinProvider.skin.label
,
alignMode
:
AlignMode
=
AlignMode.CENTER_CENTER
)
Types
Text
Block
Link copied to clipboard
class
TextBlock
(
val
text
:
String
,
val
customFont
:
FontReference
?
=
null
,
val
customColor
:
RgbaColor
?
=
null
)
Properties
align
Mode
Link copied to clipboard
var
alignMode
:
AlignMode
drawer
Link copied to clipboard
open
override
val
drawer
:
Label
font
Link copied to clipboard
var
font
:
FontReference
input
Link copied to clipboard
open
override
val
input
:
ElementInput
?
placement
Link copied to clipboard
open
override
val
placement
:
ElementPlacement
skin
Link copied to clipboard
var
skin
:
LabelSkin
tag
Link copied to clipboard
open
override
var
tag
:
String
text
Link copied to clipboard
var
text
:
String
text
Blocks
Link copied to clipboard
var
textBlocks
:
List
<
Label.TextBlock
>
update
Link copied to clipboard
open
override
var
update
:
ElementUpdate
?
You can place any custom actions for run before element draw
Functions
draw
Link copied to clipboard
open
override
fun
draw
(
renderer
:
Renderer2D
,
context
:
DrawContext
,
tick
:
Duration
)
invalidate
Layout
Link copied to clipboard
open
override
fun
invalidateLayout
(
)