Struct nannou::ui::widget::graph::NodeWidget[][src]

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

Returned when a NodeContext is assigned a widget.

This intermediary type allows for accessing the widget::Id before the widget itself is instantiated.

Methods

impl<'a, NI, W> NodeWidget<'a, NI, W> where
    NI: NodeId,
    W: 'static + Widget
[src]

Retrieve the widget::Id that will be used to instantiate this node's widget.

Map over the inner widget.

Set the given widget for the node at node_id().

Methods from Deref<Target = NodeContext<'a, NI>>

The unique identifier associated with this node.

The location of the node.

Trait Implementations

impl<'a, NI, W> Deref for NodeWidget<'a, NI, W> where
    NI: NodeId
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

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

impl<'a, NI, W> !Sync for NodeWidget<'a, NI, W>