[][src]Enum gdk::AxisUse

#[non_exhaustive]pub enum AxisUse {
    Ignore,
    X,
    Y,
    Pressure,
    Xtilt,
    Ytilt,
    Wheel,
    Distance,
    Rotation,
    Slider,
    Last,
    // some variants omitted
}

An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.

Note that the X and Y axes are not really needed; pointer devices report their location via the x/y members of events regardless. Whether X and Y are present as axes depends on the GDK backend.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ignore

the axis is ignored.

X

the axis is used as the x axis.

Y

the axis is used as the y axis.

Pressure

the axis is used for pressure information.

Xtilt

the axis is used for x tilt information.

Ytilt

the axis is used for y tilt information.

Wheel

the axis is used for wheel information.

Distance

the axis is used for pen/tablet distance information. (Since: 3.22)

Rotation

the axis is used for pen rotation information. (Since: 3.22)

Slider

the axis is used for pen slider information. (Since: 3.22)

Last

a constant equal to the numerically highest axis value.

Trait Implementations

impl Clone for AxisUse[src]

impl Copy for AxisUse[src]

impl Debug for AxisUse[src]

impl Display for AxisUse[src]

impl Eq for AxisUse[src]

impl<'a> FromValue<'a> for AxisUse[src]

impl<'a> FromValueOptional<'a> for AxisUse[src]

impl Hash for AxisUse[src]

impl Ord for AxisUse[src]

impl PartialEq<AxisUse> for AxisUse[src]

impl PartialOrd<AxisUse> for AxisUse[src]

impl SetValue for AxisUse[src]

impl StaticType for AxisUse[src]

impl StructuralEq for AxisUse[src]

impl StructuralPartialEq for AxisUse[src]

Auto Trait Implementations

impl RefUnwindSafe for AxisUse

impl Send for AxisUse

impl Sync for AxisUse

impl Unpin for AxisUse

impl UnwindSafe for AxisUse

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.