#[repr(u32)]pub enum PointerAxis {
X = 0,
Y = 1,
VScroll = 2,
HScroll = 3,
RelativeX = 4,
RelativeY = 5,
VScrollDiscrete = 6,
HScrollDiscrete = 7,
VScrollValue120 = 8,
HScrollValue120 = 9,
}Expand description
Pointer axis identifier.
Variants§
X = 0
Absolute X coordinate of the pointer.
Y = 1
Absolute Y coordinate of the pointer.
VScroll = 2
Vertical scroll wheel ticks.
HScroll = 3
Horizontal scroll wheel ticks.
RelativeX = 4
Last reported X differential from the pointer.
RelativeY = 5
Last reported Y differential from the pointer.
VScrollDiscrete = 6
Physical vertical scroll wheel clicks.
HScrollDiscrete = 7
Physical horizontal scroll wheel clicks.
VScrollValue120 = 8
Fractional values of 120 for high-res vertical scrolling.
HScrollValue120 = 9
Fractional values of 120 for high-res horizontal scrolling.
Trait Implementations§
Source§impl Clone for PointerAxis
impl Clone for PointerAxis
Source§fn clone(&self) -> PointerAxis
fn clone(&self) -> PointerAxis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerAxis
impl Debug for PointerAxis
Source§impl Default for PointerAxis
impl Default for PointerAxis
Source§fn default() -> PointerAxis
fn default() -> PointerAxis
Returns the “default value” for a type. Read more
Source§impl From<PointerAxis> for MirPointerAxis
impl From<PointerAxis> for MirPointerAxis
Source§fn from(value: PointerAxis) -> Self
fn from(value: PointerAxis) -> Self
Converts to this type from the input type.
Source§impl Hash for PointerAxis
impl Hash for PointerAxis
Source§impl PartialEq for PointerAxis
impl PartialEq for PointerAxis
Source§impl TryFrom<u32> for PointerAxis
impl TryFrom<u32> for PointerAxis
impl Copy for PointerAxis
impl Eq for PointerAxis
impl StructuralPartialEq for PointerAxis
Auto Trait Implementations§
impl Freeze for PointerAxis
impl RefUnwindSafe for PointerAxis
impl Send for PointerAxis
impl Sync for PointerAxis
impl Unpin for PointerAxis
impl UnsafeUnpin for PointerAxis
impl UnwindSafe for PointerAxis
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