pub struct EdgeInProgress {
pub start: PositionedSocket,
pub end_pos: Pos2,
pub end_socket: Option<(SocketKind, Vec2)>,
}Fields§
§start: PositionedSocketThe socket at the start end of the edge.
end_pos: Pos2The 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
Sourcepub fn show(&self, ui: &Ui)
pub fn show(&self, ui: &Ui)
Short-hand for painting the in-progress edge with some reasonable defaults.
If you require custom styling of the in-progress edge, use
EdgeInProgress::bezier_cubic or the individual fields to paint it
however you wish.
Auto Trait Implementations§
impl Freeze for EdgeInProgress
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