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

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.

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.

handle_manager_call(request, from, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_call/3.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

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(init_opts \\ [])