#[repr(u32)]pub enum UiGesture {
None = 0,
Pinch = 1,
Grip = 2,
PinchGrip = 3,
}
Expand description
This is a bit flag that describes different types and combinations of gestures used within the UI system. https://stereokit.net/Pages/StereoKit/UIGesture.html
Variants§
None = 0
Default zero state, no gesture at all.
Pinch = 1
A pinching action, calculated by taking the distance between the tip of the thumb and the index finger.
Grip = 2
A gripping or grasping motion meant to represent a full hand grab. This is calculated using the distance between the root and the tip of the ring finger.
PinchGrip = 3
This is a bit flag combination of both Pinch and Grip.
Trait Implementations§
impl Copy for UiGesture
impl Eq for UiGesture
impl StructuralPartialEq for UiGesture
Auto Trait Implementations§
impl Freeze for UiGesture
impl RefUnwindSafe for UiGesture
impl Send for UiGesture
impl Sync for UiGesture
impl Unpin for UiGesture
impl UnwindSafe for UiGesture
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