pub enum PointerPhase {
Down,
Move,
Up,
Cancel,
}Expand description
Which end of a pointer’s life a sample sits at.
Cancel is not an Up: an Up means the user completed the interaction, a
Cancel means the system took it away (see CancelReason). Conflating them
is how a drag whose window lost focus ends up “dropped” where the pointer
happened to be.
Variants§
Down
The pointer came down / a button went down.
Move
The pointer moved (with or without buttons held).
Up
The pointer lifted / a button went up.
Cancel
The system revoked the pointer. Carries no meaningful end position.
Trait Implementations§
Source§impl Clone for PointerPhase
impl Clone for PointerPhase
impl Copy for PointerPhase
Source§impl Debug for PointerPhase
impl Debug for PointerPhase
impl Eq for PointerPhase
Source§impl Hash for PointerPhase
impl Hash for PointerPhase
Source§impl PartialEq for PointerPhase
impl PartialEq for PointerPhase
impl StructuralPartialEq for PointerPhase
Auto Trait Implementations§
impl Freeze for PointerPhase
impl RefUnwindSafe for PointerPhase
impl Send for PointerPhase
impl Sync for PointerPhase
impl Unpin for PointerPhase
impl UnsafeUnpin for PointerPhase
impl UnwindSafe for PointerPhase
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