#[repr(u32)]pub enum AxisSource {
Wheel = 0,
Finger = 1,
Continuous = 2,
WheelTilt = 3,
}
Expand description
axis source types
Describes the source types for axis events. This indicates to the client how an axis event was physically generated; a client may adjust the user interface accordingly. For example, scroll events from a “finger” source may be in a smooth coordinate space with kinetic scrolling whereas a “wheel” source may be in discrete steps of a number of lines.
The “continuous” axis source is a device generating events in a continuous coordinate space, but using something other than a finger. One example for this source is button-based scrolling where the vertical motion of a device is converted to scroll events while a button is held down.
The “wheel tilt” axis source indicates that the actual device is a wheel but the scroll event is not caused by a rotation but a (usually sideways) tilt of the wheel.
Variants§
Wheel = 0
a physical wheel rotation,
Finger = 1
finger on a touch surface,
Continuous = 2
continuous coordinate space,
WheelTilt = 3
a physical wheel tilt,
Implementations§
Trait Implementations§
Source§impl Clone for AxisSource
impl Clone for AxisSource
Source§fn clone(&self) -> AxisSource
fn clone(&self) -> AxisSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AxisSource
impl Debug for AxisSource
Source§impl Into<Arg> for AxisSource
impl Into<Arg> for AxisSource
Source§impl PartialEq for AxisSource
impl PartialEq for AxisSource
impl Copy for AxisSource
impl Eq for AxisSource
impl StructuralPartialEq for AxisSource
Auto Trait Implementations§
impl Freeze for AxisSource
impl RefUnwindSafe for AxisSource
impl Send for AxisSource
impl Sync for AxisSource
impl Unpin for AxisSource
impl UnwindSafe for AxisSource
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)