Raxol.UI.Rendering.Painter (Raxol v2.0.1)

View Source

Handles painting of UI components to the terminal.

Summary

Functions

Paints the render tree into draw commands or buffer updates. Currently a stub; in the future, this will convert the render tree into draw commands, potentially processing diffs or composition-specific changes.

Functions

paint(composed_data, new_tree_for_reference, previous_composed_tree, previous_painted_output)

@spec paint(
  compose_stage_output :: any(),
  new_tree_for_reference :: map() | nil,
  previous_composed_tree :: any(),
  previous_painted_output :: [map()] | nil
) :: [map()]

Paints the render tree into draw commands or buffer updates. Currently a stub; in the future, this will convert the render tree into draw commands, potentially processing diffs or composition-specific changes.