Struct nannou::ui::prelude::widget::graph::NodeContext[][src]

pub struct NodeContext<'a, NI> where
    NI: 'a + NodeId
{ /* fields omitted */ }

A context for a node yielded during the node instantiation stage.

This type can be used to:

  1. Get the position of the node via point().
  2. Get the ID for this node via node_id().
  3. Convert into a NodeWidget ready for instantiation within the Ui via widget(a_widget).

Methods

impl<'a, NI> NodeContext<'a, NI> where
    NI: NodeId
[src]

The unique identifier associated with this node.

The location of the node.

Specify the widget to use

Auto Trait Implementations

impl<'a, NI> Send for NodeContext<'a, NI> where
    NI: Sync

impl<'a, NI> Sync for NodeContext<'a, NI> where
    NI: Sync