pub enum RawGesture {
Tap {
hit: Hit,
},
Drag {
from: Hit,
to: Hit,
at: (f64, f64),
},
Key {
command: String,
hit: Hit,
},
}Expand description
A recognized raw gesture: the largest unit the browser composes before meaning is assigned.
Variants§
Tap
A press and release on the same element with no significant drag.
Drag
A press, drag, and release ending on to, with the final position.
Fields
Key
A keyboard command directed at hit (for example delete/commit/cancel).
Trait Implementations§
Source§impl Clone for RawGesture
impl Clone for RawGesture
Source§fn clone(&self) -> RawGesture
fn clone(&self) -> RawGesture
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 moreSource§impl Debug for RawGesture
impl Debug for RawGesture
Source§impl PartialEq for RawGesture
impl PartialEq for RawGesture
Source§fn eq(&self, other: &RawGesture) -> bool
fn eq(&self, other: &RawGesture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RawGesture
Auto Trait Implementations§
impl Freeze for RawGesture
impl RefUnwindSafe for RawGesture
impl Send for RawGesture
impl Sync for RawGesture
impl Unpin for RawGesture
impl UnsafeUnpin for RawGesture
impl UnwindSafe for RawGesture
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