#[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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.