pub struct ThumbwheelSensitivity(/* private fields */);Expand description
Thumb-wheel responsiveness on OpenLogi’s 1..=100 scale.
Implementations§
Source§impl ThumbwheelSensitivity
impl ThumbwheelSensitivity
pub const fn into_inner(self) -> u8
Source§impl ThumbwheelSensitivity
impl ThumbwheelSensitivity
Sourcepub const DEFAULT: Self
pub const DEFAULT: Self
Out-of-the-box sensitivity. At this value horizontal scrolling runs at 1× and remains native unless a thumb-wheel binding is customized.
Sourcepub fn from_rounded(value: f32) -> Self
pub fn from_rounded(value: f32) -> Self
Round and clamp a floating-point slider value into the valid range.
Sourcepub fn scroll_multiplier(self) -> f32
pub fn scroll_multiplier(self) -> f32
Continuous-scroll speed multiplier relative to Self::DEFAULT.
Sourcepub fn action_threshold(self) -> i32
pub fn action_threshold(self) -> i32
Rotation increments required to fire a discrete thumb-wheel action.
Trait Implementations§
Source§impl Clone for ThumbwheelSensitivity
impl Clone for ThumbwheelSensitivity
Source§fn clone(&self) -> ThumbwheelSensitivity
fn clone(&self) -> ThumbwheelSensitivity
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 ThumbwheelSensitivity
Source§impl Debug for ThumbwheelSensitivity
impl Debug for ThumbwheelSensitivity
Source§impl Default for ThumbwheelSensitivity
impl Default for ThumbwheelSensitivity
Source§impl<'de> Deserialize<'de> for ThumbwheelSensitivity
impl<'de> Deserialize<'de> for ThumbwheelSensitivity
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThumbwheelSensitivity
impl Display for ThumbwheelSensitivity
impl Eq for ThumbwheelSensitivity
Source§impl From<ThumbwheelSensitivity> for u8
impl From<ThumbwheelSensitivity> for u8
Source§fn from(value: ThumbwheelSensitivity) -> Self
fn from(value: ThumbwheelSensitivity) -> Self
Converts to this type from the input type.
Source§impl From<ThumbwheelSensitivity> for f32
impl From<ThumbwheelSensitivity> for f32
Source§fn from(sensitivity: ThumbwheelSensitivity) -> Self
fn from(sensitivity: ThumbwheelSensitivity) -> Self
Converts to this type from the input type.
Source§impl From<ThumbwheelSensitivity> for i32
impl From<ThumbwheelSensitivity> for i32
Source§fn from(sensitivity: ThumbwheelSensitivity) -> Self
fn from(sensitivity: ThumbwheelSensitivity) -> Self
Converts to this type from the input type.
Source§impl Ord for ThumbwheelSensitivity
impl Ord for ThumbwheelSensitivity
Source§fn cmp(&self, other: &ThumbwheelSensitivity) -> Ordering
fn cmp(&self, other: &ThumbwheelSensitivity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThumbwheelSensitivity
impl PartialEq for ThumbwheelSensitivity
Source§impl PartialOrd for ThumbwheelSensitivity
impl PartialOrd for ThumbwheelSensitivity
Source§impl Serialize for ThumbwheelSensitivity
impl Serialize for ThumbwheelSensitivity
impl StructuralPartialEq for ThumbwheelSensitivity
Auto Trait Implementations§
impl Freeze for ThumbwheelSensitivity
impl RefUnwindSafe for ThumbwheelSensitivity
impl Send for ThumbwheelSensitivity
impl Sync for ThumbwheelSensitivity
impl Unpin for ThumbwheelSensitivity
impl UnsafeUnpin for ThumbwheelSensitivity
impl UnwindSafe for ThumbwheelSensitivity
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.