pub enum GesturePhase {
None,
Begin,
Update,
End,
Cancel,
Unknown(u32),
}Expand description
Where a camera change falls in a gesture that the user makes.
GesturePhase::Begin and GesturePhase::Update mark a gesture in progress,
and GesturePhase::End and GesturePhase::Cancel end it.
See mln_gesture_phase in the
C API reference.
Variants§
None
The change isn’t part of a gesture.
Begin
The gesture starts. This cancels every running camera animation before the change applies.
Update
The gesture continues. To start a gesture that keeps the running camera
animations, start it with this phase instead of GesturePhase::Begin.
End
Cancel
The platform cancelled the gesture. This also cancels every running camera animation after the change applies.
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for GesturePhase
impl Clone for GesturePhase
Source§fn clone(&self) -> GesturePhase
fn clone(&self) -> GesturePhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GesturePhase
Source§impl Debug for GesturePhase
impl Debug for GesturePhase
Source§impl Default for GesturePhase
impl Default for GesturePhase
impl Eq for GesturePhase
Source§impl Hash for GesturePhase
impl Hash for GesturePhase
Source§impl PartialEq for GesturePhase
impl PartialEq for GesturePhase
impl StructuralPartialEq for GesturePhase
Auto Trait Implementations§
impl Freeze for GesturePhase
impl RefUnwindSafe for GesturePhase
impl Send for GesturePhase
impl Sync for GesturePhase
impl Unpin for GesturePhase
impl UnsafeUnpin for GesturePhase
impl UnwindSafe for GesturePhase
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more