#[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,
}
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.
Trait Implementations§
Source§impl<'a> FromValue<'a> for EventType
impl<'a> FromValue<'a> for EventType
Source§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 HasParamSpec for EventType
impl HasParamSpec for EventType
Source§impl Ord for EventType
impl Ord for EventType
Source§impl PartialOrd for EventType
impl PartialOrd for EventType
Source§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 StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
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> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.