Struct egui_graph::EdgesCtx
source · pub struct EdgesCtx { /* private fields */ }
Expand description
A context to assist with the instantiation of edge widgets.
Implementations§
source§impl EdgesCtx
impl EdgesCtx
sourcepub fn input(&self, ui: &Ui, node: Id, input: usize) -> Option<(Pos2, Vec2)>
pub fn input(&self, ui: &Ui, node: Id, input: usize) -> Option<(Pos2, Vec2)>
Retrieves the position and normal of the specified input for the given node.
Returns None
if either the node
or input
do not exist.
sourcepub fn output(&self, ui: &Ui, node: Id, output: usize) -> Option<(Pos2, Vec2)>
pub fn output(&self, ui: &Ui, node: Id, output: usize) -> Option<(Pos2, Vec2)>
Retrieves the position and normal of the specified output for the given node.
Returns None
if either the node
or output
do not exist.
sourcepub fn in_progress(&self, ui: &Ui) -> Option<EdgeInProgress>
pub fn in_progress(&self, ui: &Ui) -> Option<EdgeInProgress>
If the user is in the progress of creating an edge, this returns the relevant info.
Auto Trait Implementations§
impl RefUnwindSafe for EdgesCtx
impl Send for EdgesCtx
impl Sync for EdgesCtx
impl Unpin for EdgesCtx
impl UnwindSafe for EdgesCtx
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more