Struct conrod::widget::graph::Session [] [src]

pub struct Session<NI: NodeId> { /* fields omitted */ }

A context for moving through the modes of graph widget instantiation in a type-safe manner.

The Session is shared between 3 stages:

  1. SessionEvents: Emit all graph events that have occurred since the last instantiation.
  2. SessionNodes: Instantiate all node widgets in the graph.
  3. SessionEdges: Instantiate all edge widgets in the graph.

NOTE: This should allow for different instantiation orders, e.g: nodes then edges, all connected components in topo order, edges then nodes, etc.