GSDL::Text
Inherits GSDL::Centerable < GSDL::Entity < GSDL::Saveable < GSDL::Tweenable < Reference < Object
Constants
CharacterDefaultTypingSpeed = 0.075.seconds
Ellipsis = "..."
EllipsisMarker = "|^.~.^|"
WordDefaultTypingSpeed = 0.25.seconds
Constructors
new(font : Symbol = FontManager.default, font_size : Num = FontManager.default_size, text : String = "", x : Num = 0, y : Num = 0, h_align : HorizontalAlign = HorizontalAlign::Left, v_align : VerticalAlign = VerticalAlign::Top, line_spacing : Num = 1.2_f32, character_spacing : Num = 0, typing : GSDL::Text::Typing = Typing::None, typing_speed : Time::Span | Nil = nil, shadow : Tuple(Float32 | Int32, Float32 | Int32) = {0, 0}, shadow_color : Color = Color::Black, outline : Int32 = FontManager.default_outline, outline_color : Color = Color::Black, origin = {0_f32, 0_f32}, scale = {1_f32, 1_f32}, rotation : Num = 0, color : LibSDL3::Color = GSDL::Color::White, width : Float32 | Int32 | Nil = nil, height : Float32 | Int32 | Nil = nil, z_index : Int32 = 0, draw_relative_to_camera : Bool = true, weight : FontWeight = FontWeight::Normal, style : FontStyle = FontStyle::Regular)
SourceInstance methods
_draw(draw : Draw)
Sourcecharacter_spacing
Sourcecharacter_spacing=(character_spacing : Num)
Sourcecolor
Sourcecolor=(color : Color)
Sourcecomplete
Sourcecomplete?
Sourcedraw(draw : Draw)
Sourcedraw_relative_to_camera?
Sourcefont
Sourcefont_atlas
Sourcefont_size
Sourcefont_size=(font_size : Num)
Sourceh_align
Sourceh_align=(h_align : HorizontalAlign)
Sourceheight
Sourceheight=(height : Num | Nil)
Sourceheight_fixed?
Sourceline_height
Sourceline_spacing
Sourceline_spacing=(line_spacing : Num)
Sourceon_complete
Sourceopacity
Sourceoutline
Sourceoutline_color
Sourceoutline_color=(outline_color : Color)
Sourcerender_height
Sourcerender_width
Sourcerender_x
Sourcerender_y
Sourcerestart
Sourcerotation
Sourcerotation=(rotation : Num)
Sourcescale=(scale : Num)
Sourcescale_x=(scale_x : Num)
Sourcescale_y=(scale_y : Num)
Sourceshadow
Sourceshadow_color
Sourceshadow_color=(shadow_color : Color)
Sourcestyle
Sourcestyle=(style : FontStyle)
Sourcetext
Sourcetext_height
Sourcetext_width
Sourcetyped?
Sourcetyping
Sourcetyping_speed
Sourcetyping_speed=(typing_speed : TimeSpan | Nil)
Sourcev_align
Sourcev_align=(v_align : VerticalAlign)
Sourceweight
Sourceweight=(weight : FontWeight)
Sourcewidth
Sourcewidth=(width : Num | Nil)
Sourcewidth_fixed?
Sourcewrap_width=(val : Num | Nil)
Sourcey=(y : Num)
Sourcez_index
Sourcez_index_max
Source