[][src]Enum gdk::InputSource

#[non_exhaustive]pub enum InputSource {
    Mouse,
    Pen,
    Eraser,
    Cursor,
    Keyboard,
    Touchscreen,
    Touchpad,
    Trackpoint,
    TabletPad,
    // some variants omitted
}

An enumeration describing the type of an input device in general terms.

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.
Mouse

the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.)

Pen

the device is a stylus of a graphics tablet or similar device.

Eraser

the device is an eraser. Typically, this would be the other end of a stylus on a graphics tablet.

Cursor

the device is a graphics tablet “puck” or similar device.

Keyboard

the device is a keyboard.

Touchscreen

the device is a direct-input touch device, such as a touchscreen or tablet. This device type has been added in 3.4.

Touchpad

the device is an indirect touch device, such as a touchpad. This device type has been added in 3.4.

Trackpoint

the device is a trackpoint. This device type has been added in 3.22

TabletPad

the device is a "pad", a collection of buttons, rings and strips found in drawing tablets. This device type has been added in 3.22.

Trait Implementations

impl Clone for InputSource[src]

impl Copy for InputSource[src]

impl Debug for InputSource[src]

impl Display for InputSource[src]

impl Eq for InputSource[src]

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

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

impl Hash for InputSource[src]

impl Ord for InputSource[src]

impl PartialEq<InputSource> for InputSource[src]

impl PartialOrd<InputSource> for InputSource[src]

impl SetValue for InputSource[src]

impl StaticType for InputSource[src]

impl StructuralEq for InputSource[src]

impl StructuralPartialEq for InputSource[src]

Auto Trait Implementations

impl RefUnwindSafe for InputSource

impl Send for InputSource

impl Sync for InputSource

impl Unpin for InputSource

impl UnwindSafe for InputSource

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.