[][src]Function nannou::ui::widget::graph::node_widget_id

pub fn node_widget_id<NI>(
    node_id: NI,
    graph_id: NodeIndex<u32>,
    ui: &Ui
) -> Option<NodeIndex<u32>> where
    NI: NodeId

Returns the widget::Id for a node if one exists.

Returns None if there is no Graph for the given graph_id or if there is not yet a widget::Id for the given node_id.

This will always return None if called between calls to the Graph::set and node instantiation stages, as widget::Ids for nodes are only populated during the node instantiation stage.