pub struct NodeDragActivationInput {
pub screen_delta: CanvasPoint,
pub threshold: f32,
}Expand description
Screen-space input for deciding whether a node drag should activate.
XyFlow evaluates nodeDragThreshold in client/screen coordinates so zoom does not change when
dragging starts. Adapters should pass the screen delta from pointer-down to the current pointer.
Fields§
§screen_delta: CanvasPoint§threshold: f32Implementations§
Source§impl NodeDragActivationInput
impl NodeDragActivationInput
pub fn new(screen_delta: CanvasPoint, threshold: f32) -> Self
Trait Implementations§
Source§impl Clone for NodeDragActivationInput
impl Clone for NodeDragActivationInput
Source§fn clone(&self) -> NodeDragActivationInput
fn clone(&self) -> NodeDragActivationInput
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 NodeDragActivationInput
Source§impl Debug for NodeDragActivationInput
impl Debug for NodeDragActivationInput
Source§impl PartialEq for NodeDragActivationInput
impl PartialEq for NodeDragActivationInput
Source§fn eq(&self, other: &NodeDragActivationInput) -> bool
fn eq(&self, other: &NodeDragActivationInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeDragActivationInput
Auto Trait Implementations§
impl Freeze for NodeDragActivationInput
impl RefUnwindSafe for NodeDragActivationInput
impl Send for NodeDragActivationInput
impl Sync for NodeDragActivationInput
impl Unpin for NodeDragActivationInput
impl UnsafeUnpin for NodeDragActivationInput
impl UnwindSafe for NodeDragActivationInput
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