Raxol.Core.Runtime.Rendering.Engine.Behaviour behaviour (Raxol v2.0.1)

View Source

Behavior for rendering engines.

Summary

Callbacks

Initializes the rendering engine.

Renders a view to output.

Terminates the rendering engine.

Callbacks

init(opts)

@callback init(opts :: keyword()) :: {:ok, term()} | {:error, term()}

Initializes the rendering engine.

render(view, context)

@callback render(view :: term(), context :: term()) :: {:ok, term()} | {:error, term()}

Renders a view to output.

terminate(state)

@callback terminate(state :: term()) :: :ok

Terminates the rendering engine.