#[non_exhaustive]
pub enum EventType {
Show 29 variants
Delete,
MotionNotify,
ButtonPress,
ButtonRelease,
KeyPress,
KeyRelease,
EnterNotify,
LeaveNotify,
FocusChange,
ProximityIn,
ProximityOut,
DragEnter,
DragLeave,
DragMotion,
DropStart,
Scroll,
GrabBroken,
TouchBegin,
TouchUpdate,
TouchEnd,
TouchCancel,
TouchpadSwipe,
TouchpadPinch,
PadButtonPress,
PadButtonRelease,
PadRing,
PadStrip,
PadGroupMode,
TouchpadHold,
// some variants omitted
}
Expand description
Specifies the type of the event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Delete
the window manager has requested that the toplevel surface be hidden or destroyed, usually when the user clicks on a special icon in the title bar.
MotionNotify
the pointer (usually a mouse) has moved.
ButtonPress
a mouse button has been pressed.
ButtonRelease
a mouse button has been released.
KeyPress
a key has been pressed.
KeyRelease
a key has been released.
EnterNotify
the pointer has entered the surface.
LeaveNotify
the pointer has left the surface.
FocusChange
the keyboard focus has entered or left the surface.
ProximityIn
an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).
ProximityOut
an input device has moved out of contact with a sensing surface.
DragEnter
the mouse has entered the surface while a drag is in progress.
DragLeave
the mouse has left the surface while a drag is in progress.
DragMotion
the mouse has moved in the surface while a drag is in progress.
DropStart
a drop operation onto the surface has started.
Scroll
the scroll wheel was turned
GrabBroken
a pointer or keyboard grab was broken.
TouchBegin
A new touch event sequence has just started.
TouchUpdate
A touch event sequence has been updated.
TouchEnd
A touch event sequence has finished.
TouchCancel
A touch event sequence has been canceled.
TouchpadSwipe
A touchpad swipe gesture event, the current state is determined by its phase field.
TouchpadPinch
A touchpad pinch gesture event, the current state is determined by its phase field.
PadButtonPress
A tablet pad button press event.
PadButtonRelease
A tablet pad button release event.
PadRing
A tablet pad axis event from a “ring”.
PadStrip
A tablet pad axis event from a “strip”.
PadGroupMode
A tablet pad group mode change.
TouchpadHold
v4_8
only.A touchpad hold gesture event, the current state is determined by its phase field. Since: 4.6
Trait Implementations§
source§impl<'a> FromValue<'a> for EventType
impl<'a> FromValue<'a> for EventType
§type Checker = GenericValueTypeChecker<EventType>
type Checker = GenericValueTypeChecker<EventType>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl Ord for EventType
impl Ord for EventType
source§impl PartialEq<EventType> for EventType
impl PartialEq<EventType> for EventType
source§impl PartialOrd<EventType> for EventType
impl PartialOrd<EventType> for EventType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for EventType
impl StaticType for EventType
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for EventType
impl Eq for EventType
impl StructuralEq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.