Raxol.UI.Rendering.Pipeline.State (Raxol v2.0.1)

View Source

Maintains state for the rendering pipeline.

Summary

Functions

Creates a new pipeline state.

Updates the tree in the state.

Types

t()

@type t() :: %Raxol.UI.Rendering.Pipeline.State{
  animation_frame_requests: :queue.queue() | nil,
  animation_ticker_ref: reference() | nil,
  current_tree: map(),
  frame_count: non_neg_integer(),
  last_render_time: integer() | nil,
  options: keyword(),
  previous_composed_tree: term() | nil,
  previous_painted_output: term() | nil,
  previous_tree: map() | nil,
  render_scheduled_for_next_frame: boolean(),
  render_timer_ref: reference() | nil,
  renderer: module() | nil
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Creates a new pipeline state.

update_tree(state, new_tree)

@spec update_tree(t(), map()) :: t()

Updates the tree in the state.