Struct egui_graph::EdgeInProgress
source · pub struct EdgeInProgress {
pub start: PositionedSocket,
pub end_pos: Pos2,
pub end_socket: Option<(SocketKind, Vec2)>,
}
Fields§
§start: PositionedSocket
The socket at the start end of the edge.
end_pos: Pos2
The end position of the edge in progress.
If there is no socket within the interaction radius, this will be the pointer position.
Otherwise, this will be the position of the closest socket who’s SocketKind
is opposite
to start.kind
.
end_socket: Option<(SocketKind, Vec2)>
The closest socket who’s SocketKind
is opposite to start.kind
.
This is None
in the case that there are no sockets within the interaction radius.
Implementations§
source§impl EdgeInProgress
impl EdgeInProgress
pub fn bezier_cubic(&self) -> Cubic
Auto Trait Implementations§
impl RefUnwindSafe for EdgeInProgress
impl Send for EdgeInProgress
impl Sync for EdgeInProgress
impl Unpin for EdgeInProgress
impl UnwindSafe for EdgeInProgress
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