PointClickEngine::Graphics::UI::TextRenderer
Inherits Reference < Object
Text rendering with advanced features
Constants
DEFAULT_FONT_SIZE = 20
Default font size
Constructors
new(font : RL::Font | Nil = nil, font_size : Int32 = DEFAULT_FONT_SIZE)
SourceInstance methods
draw(text : String, x : Float32, y : Float32, align : TextAlign = TextAlign::Left, v_align : VerticalAlign = VerticalAlign::Top)
Draw text at position
draw_gradient(text : String, x : Float32, y : Float32, start_color : RL::Color, end_color : RL::Color, vertical : Bool = false)
Draw text with fade gradient
draw_in_box(text : String, box : RL::Rectangle, h_align : TextAlign = TextAlign::Center, v_align : VerticalAlign = VerticalAlign::Middle, clip : Bool = true)
Draw text in a box
draw_shake(text : String, x : Float32, y : Float32, intensity : Float32 = 2.0_f32)
Draw text with shake effect
draw_typewriter(text : String, x : Float32, y : Float32, progress : Float32, align : TextAlign = TextAlign::Left)
Draw typewriter effect
draw_wave(text : String, x : Float32, y : Float32, amplitude : Float32 = 5.0_f32, frequency : Float32 = 0.1_f32, time : Float32 = 0.0_f32)
Draw text with wave effect
draw_wrapped(text : String, x : Float32, y : Float32, max_width : Float32, align : TextAlign = TextAlign::Left, line_spacing : Float32 = 1.2_f32)
Draw text with word wrap
enable_shadow
Sourceenable_shadow=(enable_shadow : Bool)
Sourcefont_size
Sourcefont_size=(font_size : Int32)
Sourcemax_width
Sourcemax_width=(max_width : Float32)
Sourceoutline_color
Sourceoutline_color=(outline_color : RL::Color)
Sourceoutline_thickness
Sourceoutline_thickness=(outline_thickness : Int32)
Sourceshadow_color
Sourceshadow_color=(shadow_color : RL::Color)
Sourceshadow_offset
Sourceshadow_offset=(shadow_offset : RL::Vector2)
Sourcespacing
Sourcespacing=(spacing : Float32)
Sourcewrap_text(text : String, max_width : Float32) : Array(String)
Wrap text to fit within max width