Enum nannou::ui::prelude::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

AddStart(NodeSocket<NI>)

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

Add

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

Fields of Add

start: NodeSocket<NI>end: NodeSocket<NI>
Cancelled(NodeSocket<NI>)

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

Remove

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

Fields of Remove

start: NodeSocket<NI>end: NodeSocket<NI>

Trait Implementations

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

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

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

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

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

impl<NI> StructuralEq for EdgeEvent<NI>[src]

impl<NI> StructuralPartialEq for EdgeEvent<NI>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,