pub struct TransformGesture { /* private fields */ }Expand description
Tracks active pointers and recognizes pinch/pan transform steps.
Implementations§
Source§impl TransformGesture
impl TransformGesture
pub fn new() -> Self
Sourcepub fn pointer_count(&self) -> usize
pub fn pointer_count(&self) -> usize
Number of pointers currently tracked.
Sourcepub fn handle_event(&mut self, event: &PointerEvent) -> TransformGestureEvent
pub fn handle_event(&mut self, event: &PointerEvent) -> TransformGestureEvent
Feeds one pointer event; returns the recognized transform step.
Trait Implementations§
Source§impl Clone for TransformGesture
impl Clone for TransformGesture
Source§impl Debug for TransformGesture
impl Debug for TransformGesture
Auto Trait Implementations§
impl Freeze for TransformGesture
impl RefUnwindSafe for TransformGesture
impl Send for TransformGesture
impl Sync for TransformGesture
impl Unpin for TransformGesture
impl UnsafeUnpin for TransformGesture
impl UnwindSafe for TransformGesture
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