pub enum PointerGesture {
Drag {
dx: i32,
dy: i32,
x0: i32,
y0: i32,
series_id: u8,
},
Pinch {
center: (i32, i32),
dilation: (f32, f32),
series_id: u8,
},
}Expand description
Pointer gesture.
Pointer gestures are higher level descriptions of the actions performed by
pointer devices. These are easier to interpret than the information in a
PointerEvent, so the applicaton can implement actions according to
pointer gestures.
Variants§
Drag
A drag gesture.
Drag gestures are performed by clicking and dragging with a mouse or by dragging one finger on a touchscreen.
Fields
Pinch
A pinch gesture.
Pinch gestures are performed by touching two fingers on a touchscreen and moving them closer together or futher apart.
Auto Trait Implementations§
impl Freeze for PointerGesture
impl RefUnwindSafe for PointerGesture
impl Send for PointerGesture
impl Sync for PointerGesture
impl Unpin for PointerGesture
impl UnwindSafe for PointerGesture
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