class

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)
Source

Instance methods

align
Source
align=(align : HorizontalAlign)
Source
color
Source
color=(color : Color)
Source
draw(draw : Draw)
Source
font
Source
font=(font : Symbol)
Source
font_size
Source
font_size=(size : Num)
Source
height
Source
height=(height : Int32)
Source
opacity
Source
opacity=(op : UInt8)
Source
set_layout_height(height : Int32)
Source
set_layout_width(width : Int32)
Source
style
Source
style=(s : FontStyle)
Source
text
Source
text=(text : String)
Source
text_entity
Source
v_align
Source
v_align=(align : VerticalAlign)
Source
weight
Source
weight=(w : FontWeight)
Source
width
Source
width=(width : Int32)
Source
z_index
Source
z_index=(z : Int32)
Source