Skip to main content

LabelStyle

Customizes the appearance of labels.

class LabelStyle

Constructor​

constructor(color: Color = Color(0xFFEEEEEE), size: Int = 12, font: ui.FontFamilyName = default_font, font_weight: Int = ui.font_weights.normal, italic: Bool = false, max_width: Float = 100, alignment: ui.Alignment = ui.Alignment.center, offset_x: Float = 0, offset_y: Float = 30)
color: Color = Color(0xFFEEEEEE)
size: Int = 12
font: ui.FontFamilyName = default_font
font_weight: Int = ui.font_weights.normal
italic: Bool = false
max_width: Float = 100
alignment: ui.Alignment = ui.Alignment.center
offset_x: Float = 0
offset_y: Float = 30

Properties​

color​

color: Color { get set }

size​

size: Int { get set }

font​

font: ui.FontFamilyName { get set }

font_weight​

font_weight: Int { get set }

italic​

italic: Bool { get set }

max_width​

max_width: Float { get set }

alignment​

alignment: ui.Alignment { get set }

offset_x​

offset_x: Float { get set }

offset_y​

offset_y: Float { get set }

Methods​

copy​

copy() -> (LabelStyle)

overriding​

overriding(_ modify: (LabelStyle) -> ()) -> (LabelStyle)