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
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> Clone for EdgeEvent<NI> where
NI: Clone,
fn clone(&self) -> EdgeEvent<NI>
[src]
fn clone(&self) -> EdgeEvent<NI>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<NI> Debug for EdgeEvent<NI> where
NI: Debug,
[src]
impl<NI> Debug for EdgeEvent<NI> where
NI: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<NI> Copy for EdgeEvent<NI> where
NI: Copy,
[src]
impl<NI> Copy for EdgeEvent<NI> where
NI: Copy,
impl<NI> Eq for EdgeEvent<NI> where
NI: Eq,
[src]
impl<NI> Eq for EdgeEvent<NI> where
NI: Eq,
impl<NI> PartialEq<EdgeEvent<NI>> for EdgeEvent<NI> where
NI: PartialEq<NI>,
[src]
impl<NI> PartialEq<EdgeEvent<NI>> for EdgeEvent<NI> where
NI: PartialEq<NI>,