Enum nannou::ui::widget::graph::EdgeEvent[][src]

pub enum EdgeEvent<NI> {
    AddStart(NodeSocket<NI>),
    Add {
        start: NodeSocket<NI>,
        end: NodeSocket<NI>,
    },
    Cancelled(NodeSocket<NI>),
    Remove {
        start: NodeSocket<NI>,
        end: NodeSocket<NI>,
    },
}

Events related to adding and removing edges.

Variants

The user has pressed the given node socket with the left mouse button to begin creating an edge.

The user has attempted to create an edge between the two given node sockets.

Fields of Add

The user has cancelled creating an edge from the given socket.

The user has attempted to remove the edge connecting the two given sockets.

Fields of Remove

Trait Implementations

impl<NI> Clone for EdgeEvent<NI> where
    NI: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<NI> Debug for EdgeEvent<NI> where
    NI: Debug
[src]

Formats the value using the given formatter. Read more

impl<NI> Copy for EdgeEvent<NI> where
    NI: Copy
[src]

impl<NI> Eq for EdgeEvent<NI> where
    NI: Eq
[src]

impl<NI> PartialEq<EdgeEvent<NI>> for EdgeEvent<NI> where
    NI: PartialEq<NI>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<NI> Send for EdgeEvent<NI> where
    NI: Send

impl<NI> Sync for EdgeEvent<NI> where
    NI: Sync