[][src]Enum wayland_client::protocol::wl_pointer::AxisSource

#[repr(u32)]
pub enum AxisSource {
    Wheel,
    Finger,
    Continuous,
}

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.

Variants

Wheel

a physical wheel

Finger

finger on a touch surface

Continuous

continuous coordinate space

Methods

impl AxisSource[src]

pub fn from_raw(n: u32) -> Option<AxisSource>[src]

pub fn to_raw(&self) -> u32[src]

Trait Implementations

impl Copy for AxisSource[src]

impl Clone for AxisSource[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<AxisSource> for AxisSource[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Debug for AxisSource[src]

Auto Trait Implementations

impl Unpin for AxisSource

impl Sync for AxisSource

impl Send for AxisSource

impl UnwindSafe for AxisSource

impl RefUnwindSafe for AxisSource

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]