pub struct Gestures {Show 13 fields
pub fine: Modifiers,
pub coarse: Modifiers,
pub key_fine: Modifiers,
pub key_coarse: Modifiers,
pub wheel: Modifiers,
pub wheel_steps: bool,
pub panel: Modifiers,
pub typed_entry: Key,
pub cancel: Key,
pub reset_on_double_click: bool,
pub reset_click: Modifiers,
pub knob_drag: KnobDrag,
pub knob_hide_pointer: bool,
}Expand description
The slider’s gestures, as data so a profile can remap them: by
default they follow the pointer profile (Gestures::from_map);
set_gestures sets them outright. The invariants hold whatever
the keys: a click never makes the value jump, a drag is relative and
one gesture, a modifier scales the step and never changes what is
adjusted.
Fields§
§fine: ModifiersHeld: ten times finer (drag, arrows, wheel); none: never.
coarse: ModifiersHeld: ten times coarser; none: never.
key_fine: ModifiersHeld with the arrow keys: ten times finer; none: never.
key_coarse: ModifiersHeld with the arrow keys: ten times coarser; none: never.
wheel: ModifiersHeld over a slider without the focus: the wheel steps it (else
the wheel scrolls the panel); none: only with
Gestures::wheel_steps or the focus.
wheel_steps: boolThe wheel steps the slider under the pointer, focused or not
(darktable); the panel scrolls with Gestures::panel held.
panel: ModifiersHeld: the wheel scrolls the panel, even over a slider; none: never.
typed_entry: KeyOpens the typed entry on a focused slider.
cancel: KeyDuring a drag: puts the value back, no trace.
reset_on_double_click: boolA double click resets to the default.
reset_click: ModifiersHeld with a primary click: back to the default
(gesture.value.reset, Ctrl+PrimaryClick for one); none: a
click never resets, as in every shipped profile.
knob_drag: KnobDragHow a drag turns a knob that does not say
(Knob::drag).
knob_hide_pointer: boolA knob’s drag hides the pointer and puts it back where the drag
started, for a knob that does not say
(Knob::hide_pointer); off
in every shipped profile.
Implementations§
Source§impl Gestures
impl Gestures
Sourcepub fn from_map(map: &PointerMap) -> Self
pub fn from_map(map: &PointerMap) -> Self
What a pointer map says: the modifiers of gesture.value.step
on the wheel (a plain Wheel binding steps unfocused sliders),
of gesture.value.panel on the wheel, of gesture.value.fine
and gesture.value.coarse on a primary drag; the profile’s
value_keys for the arrows (the drag’s where it gives none); the
profile’s option for the wheel over sliders.
Trait Implementations§
impl Copy for Gestures
impl StructuralPartialEq for Gestures
Auto Trait Implementations§
impl Freeze for Gestures
impl RefUnwindSafe for Gestures
impl Send for Gestures
impl Sync for Gestures
impl Unpin for Gestures
impl UnsafeUnpin for Gestures
impl UnwindSafe for Gestures
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,
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