pub enum Raw {
Moved(Pos2),
Down {
pos: Pos2,
button: Button,
},
Up {
pos: Pos2,
button: Button,
},
Gone,
Cancelled,
Panning,
}Expand description
What a host says about the pointer, before anything is made of it: the
motions and the button edges, in screen space, in the order they
happened. Resolving them into an Event — a click, a drag, a hover —
is the core’s, so every host resolves them the same way.
Variants§
Moved(Pos2)
The pointer is over the canvas, here.
Down
Up
Gone
The pointer left the canvas, or the host lost it: nothing hovers.
Cancelled
The host abandoned the gesture in progress — Escape mid-drag, a touch the platform cancelled. A drag ends where it stands.
Panning
The host is moving the camera with this pointer this frame, so nothing it does is a tool’s gesture.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Raw
impl<'de> Deserialize<'de> for Raw
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Raw
impl StructuralPartialEq for Raw
Auto Trait Implementations§
impl Freeze for Raw
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnsafeUnpin for Raw
impl UnwindSafe for Raw
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