pub struct CanvasGestures {
pub pan_button: PointerButton,
pub pan_key: Key,
pub cancel: Key,
pub pointer: ViewGestures,
pub zoom_in: &'static [Key],
pub zoom_out: &'static [Key],
pub fit: Key,
pub actual: Key,
pub double: Key,
pub coarse: Modifiers,
pub before: Key,
}Expand description
An image canvas’s gestures, as data so an input profile can remap them: the pointer’s from the profile in force, the keys as by default.
Fields§
The button that drags a handle and the comparison’s split, and clicks a handle.
pan_key: KeyHeld: a drag pans anywhere, handles included.
cancel: KeyDuring a gesture: back to where it started, no trace.
pointer: ViewGesturesThe pointer’s gestures on the canvas (the profile’s
canvas.image scope, a plain primary double click from its
option when the scope binds none).
zoom_in: &'static [Key]Keys when the canvas has the focus: the next ladder step up.
zoom_out: &'static [Key]The next ladder step down.
fit: KeyFit the image.
actual: Key100 %.
double: Key200 %.
coarse: ModifiersHeld with the arrows: pan five times further.
before: KeyHeld: shows the “before” image (a quasimode).
Implementations§
Source§impl CanvasGestures
impl CanvasGestures
Sourcepub fn from_map(map: &PointerMap) -> CanvasGestures
pub fn from_map(map: &PointerMap) -> CanvasGestures
What a pointer map says, the keys as by default.
Trait Implementations§
Source§impl Clone for CanvasGestures
impl Clone for CanvasGestures
Source§fn clone(&self) -> CanvasGestures
fn clone(&self) -> CanvasGestures
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 CanvasGestures
impl Debug for CanvasGestures
Source§impl PartialEq for CanvasGestures
impl PartialEq for CanvasGestures
impl Copy for CanvasGestures
impl StructuralPartialEq for CanvasGestures
Auto Trait Implementations§
impl Freeze for CanvasGestures
impl RefUnwindSafe for CanvasGestures
impl Send for CanvasGestures
impl Sync for CanvasGestures
impl Unpin for CanvasGestures
impl UnsafeUnpin for CanvasGestures
impl UnwindSafe for CanvasGestures
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> 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