[][src]Enum conrod_core::widget::graph::EdgeEvent

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> Clone for EdgeEvent<NI>[src]

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

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

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

impl<NI: PartialEq> PartialEq<EdgeEvent<NI>> for EdgeEvent<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<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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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.