[][src]Enum gdk::CrossingMode

#[non_exhaustive]pub enum CrossingMode {
    Normal,
    Grab,
    Ungrab,
    GtkGrab,
    GtkUngrab,
    StateChanged,
    TouchBegin,
    TouchEnd,
    DeviceSwitch,
    // some variants omitted
}

Specifies the crossing mode for EventCrossing.

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

crossing because of pointer motion.

Grab

crossing because a grab is activated.

Ungrab

crossing because a grab is deactivated.

GtkGrab

crossing because a GTK+ grab is activated.

GtkUngrab

crossing because a GTK+ grab is deactivated.

StateChanged

crossing because a GTK+ widget changed state (e.g. sensitivity).

TouchBegin

crossing because a touch sequence has begun, this event is synthetic as the pointer might have not left the window.

TouchEnd

crossing because a touch sequence has ended, this event is synthetic as the pointer might have not left the window.

DeviceSwitch

crossing because of a device switch (i.e. a mouse taking control of the pointer after a touch device), this event is synthetic as the pointer didn’t leave the window.

Trait Implementations

impl Clone for CrossingMode[src]

impl Copy for CrossingMode[src]

impl Debug for CrossingMode[src]

impl Display for CrossingMode[src]

impl Eq for CrossingMode[src]

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

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

impl Hash for CrossingMode[src]

impl Ord for CrossingMode[src]

impl PartialEq<CrossingMode> for CrossingMode[src]

impl PartialOrd<CrossingMode> for CrossingMode[src]

impl SetValue for CrossingMode[src]

impl StaticType for CrossingMode[src]

impl StructuralEq for CrossingMode[src]

impl StructuralPartialEq for CrossingMode[src]

Auto Trait Implementations

impl RefUnwindSafe for CrossingMode

impl Send for CrossingMode

impl Sync for CrossingMode

impl Unpin for CrossingMode

impl UnwindSafe for CrossingMode

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.