pub struct SelectionDragActivationInput {
pub screen_delta: CanvasPoint,
pub pane_click_distance: f32,
pub selection_key_pressed: bool,
}Expand description
Screen-space input for deciding whether a marquee selection drag should activate.
XyFlow evaluates the pane drag threshold in client/screen coordinates so zoom does not change
when selection starts. When the selection key is held, paneClickDistance is bypassed and any
positive movement can start the marquee gesture.
Fields§
§screen_delta: CanvasPoint§pane_click_distance: f32§selection_key_pressed: boolImplementations§
Source§impl SelectionDragActivationInput
impl SelectionDragActivationInput
pub fn new( screen_delta: CanvasPoint, pane_click_distance: f32, selection_key_pressed: bool, ) -> Self
Trait Implementations§
Source§impl Clone for SelectionDragActivationInput
impl Clone for SelectionDragActivationInput
Source§fn clone(&self) -> SelectionDragActivationInput
fn clone(&self) -> SelectionDragActivationInput
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 SelectionDragActivationInput
Source§impl Debug for SelectionDragActivationInput
impl Debug for SelectionDragActivationInput
Source§impl PartialEq for SelectionDragActivationInput
impl PartialEq for SelectionDragActivationInput
Source§fn eq(&self, other: &SelectionDragActivationInput) -> bool
fn eq(&self, other: &SelectionDragActivationInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectionDragActivationInput
Auto Trait Implementations§
impl Freeze for SelectionDragActivationInput
impl RefUnwindSafe for SelectionDragActivationInput
impl Send for SelectionDragActivationInput
impl Sync for SelectionDragActivationInput
impl Unpin for SelectionDragActivationInput
impl UnsafeUnpin for SelectionDragActivationInput
impl UnwindSafe for SelectionDragActivationInput
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