#[non_exhaustive]pub enum EventType {
Show 20 variants
Nothing,
KeyPress,
KeyRelease,
Motion,
Enter,
Leave,
ButtonPress,
ButtonRelease,
Scroll,
StageState,
DestroyNotify,
ClientMessage,
Delete,
TouchBegin,
TouchUpdate,
TouchEnd,
TouchCancel,
TouchpadPinch,
TouchpadSwipe,
EventLast,
}
Expand description
Types of events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Nothing
Empty event
KeyPress
Key press event
KeyRelease
Key release event
Motion
Pointer motion event
Enter
Actor enter event
Leave
Actor leave event
ButtonPress
Pointer button press event
ButtonRelease
Pointer button release event
Scroll
Pointer scroll event
StageState
Stage state change event
DestroyNotify
Destroy notification event
ClientMessage
Client message event
Delete
Stage delete event
TouchBegin
A new touch event sequence has started; event added in 1.10
TouchUpdate
A touch event sequence has been updated; event added in 1.10
TouchEnd
A touch event sequence has finished; event added in 1.10
TouchCancel
A touch event sequence has been canceled; event added in 1.10
TouchpadPinch
A pinch gesture event, the current state is determined by its phase field; event added in 1.24
TouchpadSwipe
A swipe gesture event, the current state is determined by its phase field; event added in 1.24
EventLast
Marks the end of the EventType
enumeration;
added in 1.10
Trait Implementations§
Source§impl<'a> FromValue<'a> for EventType
impl<'a> FromValue<'a> for EventType
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for EventType
impl<'a> FromValueOptional<'a> 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> 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
.