module

Cresium::RenderHelpers

Drawing helpers shared by widgets that render raw text character by character onto a Tui::Buffer, respecting the clip rect given by the framework (the actually writable visible area).

Instance methods

draw_clipped(buffer : Tui::Buffer, clip : Tui::Rect, x : Int32, y : Int32, text : String, style : Tui::Style) : Nil

Draws text starting at (x, y), one character at a time, skipping columns/rows outside of clip.

Source
fill_rect(buffer : Tui::Buffer, clip : Tui::Rect, x : Int32, y : Int32, w : Int32, h : Int32, style : Tui::Style) : Nil

Fills a rectangle (x, y, w, h) with spaces using style, respecting clip.

Source