class

SDL3::TTF::Text

Inherits Reference < Object

Constructors

new(ptr : Pointer(LibSDL3TTF::Text))
Source

Instance methods

color
Source
color=(color : Color)
Source
destroy
Source
direction
Source
direction=(direction : Direction)
Source
draw(x : Float32, y : Float32) : Bool

text must have been created using a TextEngine from SDL3::create_text_engine, and will draw using the renderer passed to that function

Source
draw_to_surface(x : Float32, y : Float32, surface : SDL3::Surface)
Source
font
Source
font=(font : Font)
Source
height
Source
size
Source
text=(text : String)
Source
text_engine
Source
text_engine=(text_engine : TextEngine)
Source
to_unsafe
Source
update
Source
width
Source
wrap_whitespace_visible=(visible : Bool) : Bool
Source
wrap_whitespace_visible?
Source
wrap_width
Source
wrap_width=(wrap_width : Int32)
Source