class

GSDL::TextOld

Inherits GSDL::Centerable < GSDL::Entity < GSDL::Saveable < GSDL::Tweenable < Reference < Object

Constants

OversampleRatio = 8_f32

Constructors

new(font : GSDL::FontOld = FontOld.default, text : String = "", x : Num = 0, y : Num = 0, origin : Tuple(Float32, Float32) = {0_f32, 0_f32}, scale : Tuple(Num, Num) = {1_f32, 1_f32}, color : LibSDL3::Color = ColorScheme.get(:ui_text), align : LibSDL3TTF::Alignment = FontOld::Align::Left, wrap_width : Int32 | Nil = nil, z_index : Int32 = 0, rotation : Num = 0.0, oversample_ratio : Float32 = OversampleRatio, visible_characters : Int32 = -1, opacity : UInt8 = 255_u8, draw_relative_to_camera : Bool = true, wrap_whitespace_visible : Bool = false)
Source

Instance methods

align
Source
align=(align : FontOld::Align)
Source
bake!
Source
color
Source
color=(color : Color)
Source
cursor_pos(char_index : Int32) : Point
Source
destroy
Source
draw(draw : Draw)
Source
draw_relative_to_camera=(draw_relative_to_camera : Bool)
Source
draw_relative_to_camera?
Source
font
Source
font=(font : FontOld)
Source
height
Source
layout!
Source
opacity
Source
opacity=(opacity : UInt8)
Source
oversample_ratio
Source
oversample_ratio=(oversample_ratio : Float32)
Source
render_height
Source
render_width
Source
render_x
Source
render_y
Source
rotation
Source
rotation=(rotation : Num)
Source
text
Source
text=(text : String)
Source
visible_characters
Source
visible_characters=(visible_characters : Int32)
Source
width
Source
wrap_whitespace_visible
Source
wrap_whitespace_visible=(wrap_whitespace_visible : Bool)
Source
wrap_width
Source
wrap_width=(wrap_width : Int32 | Nil)
Source

Nested types