Enum gdk4::EventType [−][src]
#[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,
EventLast,
// some variants omitted
}
Expand description
Specifies the type of the event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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.
the pointer (usually a mouse) has moved.
a mouse button has been pressed.
a mouse button has been released.
a key has been pressed.
a key has been released.
the pointer has entered the surface.
the pointer has left the surface.
the keyboard focus has entered or left the surface.
an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).
an input device has moved out of contact with a sensing surface.
the mouse has entered the surface while a drag is in progress.
the mouse has left the surface while a drag is in progress.
the mouse has moved in the surface while a drag is in progress.
a drop operation onto the surface has started.
the scroll wheel was turned
a pointer or keyboard grab was broken.
A new touch event sequence has just started.
A touch event sequence has been updated.
A touch event sequence has finished.
A touch event sequence has been canceled.
A touchpad swipe gesture event, the current state is determined by its phase field.
A touchpad pinch gesture event, the current state is determined by its phase field.
A tablet pad button press event.
A tablet pad button release event.
A tablet pad axis event from a “ring”.
A tablet pad axis event from a “strip”.
A tablet pad group mode change.
marks the end of the GdkEventType enumeration.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for EventType
impl UnwindSafe for EventType
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.