pub struct NodePointerDownDecision {
pub selection: NodeDragStartSelectionAction,
pub drag_claim: PointerGestureClaim,
}Expand description
Combined decision for a node pointer-down that may update selection and enable node dragging.
Fields§
§selection: NodeDragStartSelectionAction§drag_claim: PointerGestureClaimImplementations§
Source§impl NodePointerDownDecision
impl NodePointerDownDecision
pub fn new( selection: NodeDragStartSelectionAction, drag_claim: PointerGestureClaim, ) -> Self
pub fn apply_to_view_state(self, view_state: &mut NodeGraphViewState)
Trait Implementations§
Source§impl Clone for NodePointerDownDecision
impl Clone for NodePointerDownDecision
Source§fn clone(&self) -> NodePointerDownDecision
fn clone(&self) -> NodePointerDownDecision
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 NodePointerDownDecision
Source§impl Debug for NodePointerDownDecision
impl Debug for NodePointerDownDecision
impl Eq for NodePointerDownDecision
Source§impl PartialEq for NodePointerDownDecision
impl PartialEq for NodePointerDownDecision
Source§fn eq(&self, other: &NodePointerDownDecision) -> bool
fn eq(&self, other: &NodePointerDownDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodePointerDownDecision
Auto Trait Implementations§
impl Freeze for NodePointerDownDecision
impl RefUnwindSafe for NodePointerDownDecision
impl Send for NodePointerDownDecision
impl Sync for NodePointerDownDecision
impl Unpin for NodePointerDownDecision
impl UnsafeUnpin for NodePointerDownDecision
impl UnwindSafe for NodePointerDownDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.