GSDL::UI::Text
Inherits GSDL::UI::Element < Reference < Object
Constructors
new(font : Symbol = :default, text : String = "", font_size : Num = 16, x : Int32 = 0, y : Int32 = 0, color = ColorScheme.get(:ui_text), h_align : HorizontalAlign = HorizontalAlign::Left, v_align : VerticalAlign = VerticalAlign::Top, anchor : Anchor = Anchor::TopLeft, width : Int32 | Nil = nil, height : Int32 | Nil = nil, z_index : Int32 = 0, flex : UInt8 = 0_u8, opacity : UInt8 = 255_u8, weight : FontWeight = FontWeight::Normal, style : FontStyle = FontStyle::Regular, padding : SpacingInput = 0, margin : SpacingInput = 0)
SourceInstance methods
align
Sourcealign=(align : HorizontalAlign)
Sourcecolor
Sourcecolor=(color : Color)
Sourcedraw(draw : Draw)
Sourcefont
Sourcefont_size
Sourcefont_size=(size : Num)
Sourceheight
Sourceopacity
Sourcestyle
Sourcestyle=(s : FontStyle)
Sourcetext
Sourcetext_entity
Sourcev_align
Sourcev_align=(align : VerticalAlign)
Sourceweight
Sourceweight=(w : FontWeight)
Sourcewidth
Sourcez_index
Source