pub struct Gestures {
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
The viewport’s gestures: the image canvas’s, shared with each pane of
the library’s comparison (egui_pop_core::pointer::view, which runs
them).
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CanvasGestures
impl Debug for CanvasGestures
Source§impl Default for CanvasGestures
impl Default for CanvasGestures
Source§fn default() -> CanvasGestures
fn default() -> CanvasGestures
The default pointer profile’s.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.