Enum gdk::InputSource [−][src]
#[non_exhaustive] pub enum InputSource { Mouse, Pen, Eraser, Cursor, Keyboard, Touchscreen, Touchpad, Trackpoint, TabletPad, // some variants omitted }
Expand description
An enumeration describing the type of an input device in general terms.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.)
the device is a stylus of a graphics tablet or similar device.
the device is an eraser. Typically, this would be the other end of a stylus on a graphics tablet.
the device is a graphics tablet “puck” or similar device.
the device is a keyboard.
the device is a direct-input touch device, such as a touchscreen or tablet. This device type has been added in 3.4.
the device is an indirect touch device, such as a touchpad. This device type has been added in 3.4.
the device is a trackpoint. This device type has been added in 3.22
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
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
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
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.