[][src]Enum gdk::DeviceToolType

#[non_exhaustive]pub enum DeviceToolType {
    Unknown,
    Pen,
    Eraser,
    Brush,
    Pencil,
    Airbrush,
    Mouse,
    Lens,
    // some variants omitted
}

Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.

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

Tool is of an unknown type.

Pen

Tool is a standard tablet stylus.

Eraser

Tool is standard tablet eraser.

Brush

Tool is a brush stylus.

Pencil

Tool is a pencil stylus.

Airbrush

Tool is an airbrush stylus.

Mouse

Tool is a mouse.

Lens

Tool is a lens cursor.

Feature: v3_22

Trait Implementations

impl Clone for DeviceToolType[src]

impl Copy for DeviceToolType[src]

impl Debug for DeviceToolType[src]

impl Display for DeviceToolType[src]

impl Eq for DeviceToolType[src]

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

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

impl Hash for DeviceToolType[src]

impl Ord for DeviceToolType[src]

impl PartialEq<DeviceToolType> for DeviceToolType[src]

impl PartialOrd<DeviceToolType> for DeviceToolType[src]

impl SetValue for DeviceToolType[src]

impl StaticType for DeviceToolType[src]

impl StructuralEq for DeviceToolType[src]

impl StructuralPartialEq for DeviceToolType[src]

Auto Trait Implementations

impl RefUnwindSafe for DeviceToolType

impl Send for DeviceToolType

impl Sync for DeviceToolType

impl Unpin for DeviceToolType

impl UnwindSafe for DeviceToolType

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.