pub struct DragStart {
pub button: PointerButton,
pub modifiers: ModifiersState,
}Expand description
What armed a drag: the button pressed, and what was held down at that moment.
Frozen at the press, and that is the whole of it. modifiers answers what is held
now, so a mode read from it mid-stroke would change under a hand that let go of Shift — turning an orbit
into a pan halfway through. A gesture chooses what it is once, when it starts, and is measured from there.
Fields§
§modifiers: ModifiersStateTrait Implementations§
impl Copy for DragStart
impl Eq for DragStart
impl StructuralPartialEq for DragStart
Auto Trait Implementations§
impl Freeze for DragStart
impl RefUnwindSafe for DragStart
impl Send for DragStart
impl Sync for DragStart
impl Unpin for DragStart
impl UnsafeUnpin for DragStart
impl UnwindSafe for DragStart
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