module RatatuiRuby::Draw

Draw commands for custom widgets.

Custom widgets return an array of Draw commands instead of writing directly to a buffer. This keeps all pointers safely inside Rust while Ruby works with pure data.

Example

class MyWidget
  def render(area)
    [
      RatatuiRuby::Draw.string(area.x, area.y, "Hello", {fg: :red}),
      RatatuiRuby::Draw.cell(area.x + 6, area.y, RatatuiRuby::Cell.char("!"))
    ]
  end
end