Scenic v0.7.0 Scenic.Graph

Link to this section Summary

Link to this section Types

Link to this type key()
key() :: {:graph, Scenic.Scene.ref(), any()}
Link to this type t()
t() :: %Scenic.Graph{
  add_to: pos_integer(),
  ids: map(),
  next_uid: pos_integer(),
  primitives: map()
}

Link to this section Functions

Link to this function add(graph, primitive)
add(graph :: Scenic.Graph.t(), primitive :: Scenic.Primitive.t()) ::
  Scenic.Graph.t()
Link to this function add(graph, primitive_module, primitive_data, opts \\ [])
add(
  graph :: Scenic.Graph.t(),
  module :: atom(),
  data :: any(),
  opts :: keyword()
) :: Scenic.Graph.t()
Link to this function build(opts \\ [])
build(opts :: keyword()) :: Scenic.Graph.t()
Link to this function count(graph)
count(graph :: Scenic.Graph.t()) :: integer()
Link to this function count(graph, id)
count(graph :: Scenic.Graph.t(), id :: any()) :: integer()
Link to this function delete(graph, id)
delete(graph :: Scenic.Graph.t(), id :: any()) :: Scenic.Graph.t()
Link to this function get!(graph, id)
get!(graph :: Scenic.Graph.t(), id :: any()) :: Scenic.Primitive.t()
Link to this function get(graph, id)
get(graph :: Scenic.Graph.t(), id :: any()) :: [Scenic.Primitive.t()]
Link to this function get_root(graph)
get_root(graph :: Scenic.Graph.t()) :: Scenic.Primitive.t()
Link to this function map(graph, action)
map(graph :: Scenic.Graph.t(), action :: function()) :: Scenic.Graph.t()
Link to this function map(graph, id, action)
map(graph :: Scenic.Graph.t(), id :: any(), action :: function()) ::
  Scenic.Graph.t()
Link to this function modify(graph, id, action)
modify(graph :: Scenic.Graph.t(), id :: any(), action :: function()) ::
  Scenic.Graph.t()
Link to this function reduce(graph, acc, action)
reduce(graph :: Scenic.Graph.t(), acc :: any(), action :: function()) :: any()
Link to this function reduce(graph, id, acc, action)
reduce(
  graph :: Scenic.Graph.t(),
  id :: any(),
  acc :: any(),
  action :: function()
) :: any()