pub struct AxisSource(pub u32);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.
Tuple Fields§
§0: u32Implementations§
Source§impl AxisSource
impl AxisSource
Source§impl AxisSource
impl AxisSource
Sourcepub fn available_since(self) -> Option<u32>
pub fn available_since(self) -> Option<u32>
First protocol version enum variant is avilable in
None for unrecognized value.
Trait Implementations§
Source§impl Clone for AxisSource
impl Clone for AxisSource
Source§fn clone(&self) -> AxisSource
fn clone(&self) -> AxisSource
1.0.0 (const: unstable) · 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 From<AxisSource> for u32
impl From<AxisSource> for u32
Source§fn from(val: AxisSource) -> u32
fn from(val: AxisSource) -> u32
Source§impl Hash for AxisSource
impl Hash for AxisSource
Source§impl Ord for AxisSource
impl Ord for AxisSource
Source§fn cmp(&self, other: &AxisSource) -> Ordering
fn cmp(&self, other: &AxisSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AxisSource
impl PartialEq for AxisSource
Source§fn eq(&self, other: &AxisSource) -> bool
fn eq(&self, other: &AxisSource) -> bool
self and other values to be equal, and is used by ==.