pub enum ViewAction {
Nothing,
Zoom,
ZoomFree,
Pan,
PanX,
PanY,
ZoomCycle,
Fit,
ZoomToggle,
Leave,
}Expand description
What a pointer gesture does to a view.
Variants§
Nothing
Nothing: the wheel goes to the panel around.
Zoom
Zooms around the pointer, holding at the stops (fit, 100 %).
ZoomFree
Zooms around the pointer without stops.
Pan
Pans by the wheel’s motion, or following a drag.
PanX
Pans horizontally by the wheel’s motion.
PanY
Pans vertically by the wheel’s motion.
ZoomCycle
100 %, 200 %, fit, around the pointer.
Fit
Fits the content.
ZoomToggle
Fit, or 100 % around the pointer when fitting.
Leave
Asks the application to leave the view (a signal; the view does not change).
Implementations§
Trait Implementations§
Source§impl Clone for ViewAction
impl Clone for ViewAction
Source§fn clone(&self) -> ViewAction
fn clone(&self) -> ViewAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewAction
impl Debug for ViewAction
Source§impl Default for ViewAction
impl Default for ViewAction
Source§fn default() -> ViewAction
fn default() -> ViewAction
Returns the “default value” for a type. Read more
Source§impl PartialEq for ViewAction
impl PartialEq for ViewAction
impl Copy for ViewAction
impl Eq for ViewAction
impl StructuralPartialEq for ViewAction
Auto Trait Implementations§
impl Freeze for ViewAction
impl RefUnwindSafe for ViewAction
impl Send for ViewAction
impl Sync for ViewAction
impl Unpin for ViewAction
impl UnsafeUnpin for ViewAction
impl UnwindSafe for ViewAction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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