pub enum ViewportMoveKind {
PanDrag,
PanInertia,
PanScroll,
ZoomWheel,
ZoomPinch,
ZoomDoubleClick,
}Expand description
Viewport move gesture kind (UI-driven).
Variants§
PanDrag
Pointer-drag panning (mouse/touch drag).
PanInertia
Inertial/momentum panning after releasing a pan drag.
PanScroll
Panning via scroll wheel / trackpad scroll when pan_on_scroll is enabled.
ZoomWheel
Zooming via scroll wheel (for example Ctrl+wheel).
ZoomPinch
Zooming via pinch gesture (trackpad pinch).
ZoomDoubleClick
Zooming via double-click gesture.
Trait Implementations§
Source§impl Clone for ViewportMoveKind
impl Clone for ViewportMoveKind
Source§fn clone(&self) -> ViewportMoveKind
fn clone(&self) -> ViewportMoveKind
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 ViewportMoveKind
Source§impl Debug for ViewportMoveKind
impl Debug for ViewportMoveKind
Source§impl<'de> Deserialize<'de> for ViewportMoveKind
impl<'de> Deserialize<'de> for ViewportMoveKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ViewportMoveKind
Source§impl PartialEq for ViewportMoveKind
impl PartialEq for ViewportMoveKind
Source§fn eq(&self, other: &ViewportMoveKind) -> bool
fn eq(&self, other: &ViewportMoveKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViewportMoveKind
impl Serialize for ViewportMoveKind
impl StructuralPartialEq for ViewportMoveKind
Auto Trait Implementations§
impl Freeze for ViewportMoveKind
impl RefUnwindSafe for ViewportMoveKind
impl Send for ViewportMoveKind
impl Sync for ViewportMoveKind
impl Unpin for ViewportMoveKind
impl UnsafeUnpin for ViewportMoveKind
impl UnwindSafe for ViewportMoveKind
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.