[][src]Enum gtk::ShortcutType

#[non_exhaustive]pub enum ShortcutType {
    Accelerator,
    GesturePinch,
    GestureStretch,
    GestureRotateClockwise,
    GestureRotateCounterclockwise,
    GestureTwoFingerSwipeLeft,
    GestureTwoFingerSwipeRight,
    Gesture,
    // some variants omitted
}

ShortcutType specifies the kind of shortcut that is being described. More values may be added to this enumeration over time.

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

The shortcut is a keyboard accelerator. The ShortcutsShortcut:accelerator property will be used.

GesturePinch

The shortcut is a pinch gesture. GTK+ provides an icon and subtitle.

GestureStretch

The shortcut is a stretch gesture. GTK+ provides an icon and subtitle.

GestureRotateClockwise

The shortcut is a clockwise rotation gesture. GTK+ provides an icon and subtitle.

GestureRotateCounterclockwise

The shortcut is a counterclockwise rotation gesture. GTK+ provides an icon and subtitle.

GestureTwoFingerSwipeLeft

The shortcut is a two-finger swipe gesture. GTK+ provides an icon and subtitle.

GestureTwoFingerSwipeRight

The shortcut is a two-finger swipe gesture. GTK+ provides an icon and subtitle.

Gesture

The shortcut is a gesture. The ShortcutsShortcut:icon property will be used.

Feature: v3_20

Trait Implementations

impl Clone for ShortcutType[src]

impl Copy for ShortcutType[src]

impl Debug for ShortcutType[src]

impl Display for ShortcutType[src]

impl Eq for ShortcutType[src]

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

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

impl Hash for ShortcutType[src]

impl Ord for ShortcutType[src]

impl PartialEq<ShortcutType> for ShortcutType[src]

impl PartialOrd<ShortcutType> for ShortcutType[src]

impl SetValue for ShortcutType[src]

impl StaticType for ShortcutType[src]

impl StructuralEq for ShortcutType[src]

impl StructuralPartialEq for ShortcutType[src]

Auto Trait Implementations

impl RefUnwindSafe for ShortcutType

impl Send for ShortcutType

impl Sync for ShortcutType

impl Unpin for ShortcutType

impl UnwindSafe for ShortcutType

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.