Raxol.UI.Rendering.Renderer (Raxol v0.5.0)

View Source

GenServer responsible for managing rendering state and applying animation settings. Receives commands from the rendering pipeline and coordinates rendering actions.

Summary

Functions

Applies a diff to the renderer. For now, only full replacement is supported; granular diffs are logged and trigger a full render.

Returns a specification to start this module under a supervisor.

Triggers a render with the current state.

Sets animation settings for the renderer.

Sets a test process PID to receive render messages (for test visibility). No-op in production.

Starts the rendering process.

Functions

apply_diff(diff, new_tree)

Applies a diff to the renderer. For now, only full replacement is supported; granular diffs are logged and trigger a full render.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

render(data \\ nil)

Triggers a render with the current state.

set_animation_settings(settings)

Sets animation settings for the renderer.

set_test_pid(pid)

Sets a test process PID to receive render messages (for test visibility). No-op in production.

start_link(opts \\ [])

Starts the rendering process.