pub struct ConnectionDragActivationInput {
pub screen_delta: CanvasPoint,
pub threshold: f32,
}Expand description
Screen-space input for deciding whether a connection drag should activate.
XyFlow evaluates connectionDragThreshold in client/screen coordinates, using squared
distance, so zoom does not change when connection gestures start.
Fields§
§screen_delta: CanvasPoint§threshold: f32Implementations§
Source§impl ConnectionDragActivationInput
impl ConnectionDragActivationInput
pub fn new(screen_delta: CanvasPoint, threshold: f32) -> Self
Trait Implementations§
Source§impl Clone for ConnectionDragActivationInput
impl Clone for ConnectionDragActivationInput
Source§fn clone(&self) -> ConnectionDragActivationInput
fn clone(&self) -> ConnectionDragActivationInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionDragActivationInput
Source§impl PartialEq for ConnectionDragActivationInput
impl PartialEq for ConnectionDragActivationInput
Source§fn eq(&self, other: &ConnectionDragActivationInput) -> bool
fn eq(&self, other: &ConnectionDragActivationInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectionDragActivationInput
Auto Trait Implementations§
impl Freeze for ConnectionDragActivationInput
impl RefUnwindSafe for ConnectionDragActivationInput
impl Send for ConnectionDragActivationInput
impl Sync for ConnectionDragActivationInput
impl Unpin for ConnectionDragActivationInput
impl UnsafeUnpin for ConnectionDragActivationInput
impl UnwindSafe for ConnectionDragActivationInput
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