Enum gdk4::InputSource [−][src]
#[non_exhaustive]
pub enum InputSource {
Mouse,
Pen,
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 a keyboard.
the device is a direct-input touch device, such as a touchscreen or tablet
the device is an indirect touch device, such as a touchpad
the device is a trackpoint
the device is a “pad”, a collection of buttons, rings and strips found in drawing tablets
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
.