#[repr(C)]pub enum NaturalScroll {
Disabled = 0,
Enabled = 1,
System = 2,
}Expand description
How the engine treats scroll direction (9b-ii-b-i-a) - see
AppConfig::natural_scroll.
Variants§
Disabled = 0
Never flip a delta in the engine. The OS’s own preference, if the user set one, still reaches the app in the deltas.
Enabled = 1
Flip every wheel and trackpad delta in the engine.
System = 2
Read the platform’s preference at startup and keep it readable; no engine flip, since the platform already applied it to the deltas.
Trait Implementations§
Source§impl Clone for NaturalScroll
impl Clone for NaturalScroll
Source§fn clone(&self) -> NaturalScroll
fn clone(&self) -> NaturalScroll
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 NaturalScroll
Source§impl Debug for NaturalScroll
impl Debug for NaturalScroll
Source§impl Default for NaturalScroll
impl Default for NaturalScroll
Source§fn default() -> NaturalScroll
fn default() -> NaturalScroll
Returns the “default value” for a type. Read more
impl Eq for NaturalScroll
Source§impl Hash for NaturalScroll
impl Hash for NaturalScroll
Source§impl Ord for NaturalScroll
impl Ord for NaturalScroll
Source§fn cmp(&self, other: &NaturalScroll) -> Ordering
fn cmp(&self, other: &NaturalScroll) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NaturalScroll
impl PartialEq for NaturalScroll
Source§impl PartialOrd for NaturalScroll
impl PartialOrd for NaturalScroll
impl StructuralPartialEq for NaturalScroll
Auto Trait Implementations§
impl Freeze for NaturalScroll
impl RefUnwindSafe for NaturalScroll
impl Send for NaturalScroll
impl Sync for NaturalScroll
impl Unpin for NaturalScroll
impl UnsafeUnpin for NaturalScroll
impl UnwindSafe for NaturalScroll
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