pub struct GestureRecognizer { /* private fields */ }Expand description
Folds a pointer-event stream into RawGestures. The browser pushes each
pointer event; a complete gesture is returned on the release event.
Implementations§
Source§impl GestureRecognizer
impl GestureRecognizer
Sourcepub fn pointer(&mut self, event: PointerEvent) -> Option<RawGesture>
pub fn pointer(&mut self, event: PointerEvent) -> Option<RawGesture>
Feed one pointer event; returns a RawGesture when one completes.
Sourcepub fn key(command: &str, hit: Hit) -> RawGesture
pub fn key(command: &str, hit: Hit) -> RawGesture
Compose a keyboard command into a raw gesture directed at hit.
Trait Implementations§
Source§impl Debug for GestureRecognizer
impl Debug for GestureRecognizer
Source§impl Default for GestureRecognizer
impl Default for GestureRecognizer
Source§fn default() -> GestureRecognizer
fn default() -> GestureRecognizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GestureRecognizer
impl RefUnwindSafe for GestureRecognizer
impl Send for GestureRecognizer
impl Sync for GestureRecognizer
impl Unpin for GestureRecognizer
impl UnsafeUnpin for GestureRecognizer
impl UnwindSafe for GestureRecognizer
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