Enum redwm::imports::Event[][src]

#[non_exhaustive]
pub enum Event {
Show 114 variants Unknown(Vec<u8, Global>), Error(X11Error), ButtonPress(ButtonPressEvent), ButtonRelease(ButtonPressEvent), CirculateNotify(CirculateNotifyEvent), CirculateRequest(CirculateNotifyEvent), ClientMessage(ClientMessageEvent), ColormapNotify(ColormapNotifyEvent), ConfigureNotify(ConfigureNotifyEvent), ConfigureRequest(ConfigureRequestEvent), CreateNotify(CreateNotifyEvent), DestroyNotify(DestroyNotifyEvent), EnterNotify(EnterNotifyEvent), Expose(ExposeEvent), FocusIn(FocusInEvent), FocusOut(FocusInEvent), GeGeneric(GeGenericEvent), GraphicsExposure(GraphicsExposureEvent), GravityNotify(GravityNotifyEvent), KeyPress(KeyPressEvent), KeyRelease(KeyPressEvent), KeymapNotify(KeymapNotifyEvent), LeaveNotify(EnterNotifyEvent), MapNotify(MapNotifyEvent), MapRequest(MapRequestEvent), MappingNotify(MappingNotifyEvent), MotionNotify(MotionNotifyEvent), NoExposure(NoExposureEvent), PropertyNotify(PropertyNotifyEvent), ReparentNotify(ReparentNotifyEvent), ResizeRequest(ResizeRequestEvent), SelectionClear(SelectionClearEvent), SelectionNotify(SelectionNotifyEvent), SelectionRequest(SelectionRequestEvent), UnmapNotify(UnmapNotifyEvent), VisibilityNotify(VisibilityNotifyEvent), DamageNotify(NotifyEvent), Dri2BufferSwapComplete(BufferSwapCompleteEvent), Dri2InvalidateBuffers(InvalidateBuffersEvent), GlxBufferSwapComplete(BufferSwapCompleteEvent), GlxPbufferClobber(PbufferClobberEvent), PresentCompleteNotify(CompleteNotifyEvent), PresentConfigureNotify(ConfigureNotifyEvent), PresentGeneric(GenericEvent), PresentIdleNotify(IdleNotifyEvent), PresentRedirectNotify(RedirectNotifyEvent), RandrNotify(NotifyEvent), RandrScreenChangeNotify(ScreenChangeNotifyEvent), ScreensaverNotify(NotifyEvent), ShapeNotify(NotifyEvent), ShmCompletion(CompletionEvent), SyncAlarmNotify(AlarmNotifyEvent), SyncCounterNotify(CounterNotifyEvent), XfixesCursorNotify(CursorNotifyEvent), XfixesSelectionNotify(SelectionNotifyEvent), XinputBarrierHit(BarrierHitEvent), XinputBarrierLeave(BarrierHitEvent), XinputButtonPress(ButtonPressEvent), XinputButtonRelease(ButtonPressEvent), XinputChangeDeviceNotify(ChangeDeviceNotifyEvent), XinputDeviceButtonPress(DeviceKeyPressEvent), XinputDeviceButtonRelease(DeviceKeyPressEvent), XinputDeviceButtonStateNotify(DeviceButtonStateNotifyEvent), XinputDeviceChanged(DeviceChangedEvent), XinputDeviceFocusIn(DeviceFocusInEvent), XinputDeviceFocusOut(DeviceFocusInEvent), XinputDeviceKeyPress(DeviceKeyPressEvent), XinputDeviceKeyRelease(DeviceKeyPressEvent), XinputDeviceKeyStateNotify(DeviceKeyStateNotifyEvent), XinputDeviceMappingNotify(DeviceMappingNotifyEvent), XinputDeviceMotionNotify(DeviceKeyPressEvent), XinputDevicePresenceNotify(DevicePresenceNotifyEvent), XinputDevicePropertyNotify(DevicePropertyNotifyEvent), XinputDeviceStateNotify(DeviceStateNotifyEvent), XinputDeviceValuator(DeviceValuatorEvent), XinputEnter(EnterEvent), XinputFocusIn(EnterEvent), XinputFocusOut(EnterEvent), XinputHierarchy(HierarchyEvent), XinputKeyPress(KeyPressEvent), XinputKeyRelease(KeyPressEvent), XinputLeave(EnterEvent), XinputMotion(ButtonPressEvent), XinputProperty(PropertyEvent), XinputProximityIn(DeviceKeyPressEvent), XinputProximityOut(DeviceKeyPressEvent), XinputRawButtonPress(RawButtonPressEvent), XinputRawButtonRelease(RawButtonPressEvent), XinputRawKeyPress(RawKeyPressEvent), XinputRawKeyRelease(RawKeyPressEvent), XinputRawMotion(RawButtonPressEvent), XinputRawTouchBegin(RawTouchBeginEvent), XinputRawTouchEnd(RawTouchBeginEvent), XinputRawTouchUpdate(RawTouchBeginEvent), XinputTouchBegin(TouchBeginEvent), XinputTouchEnd(TouchBeginEvent), XinputTouchOwnership(TouchOwnershipEvent), XinputTouchUpdate(TouchBeginEvent), XkbAccessXNotify(AccessXNotifyEvent), XkbActionMessage(ActionMessageEvent), XkbBellNotify(BellNotifyEvent), XkbCompatMapNotify(CompatMapNotifyEvent), XkbControlsNotify(ControlsNotifyEvent), XkbExtensionDeviceNotify(ExtensionDeviceNotifyEvent), XkbIndicatorMapNotify(IndicatorMapNotifyEvent), XkbIndicatorStateNotify(IndicatorStateNotifyEvent), XkbMapNotify(MapNotifyEvent), XkbNamesNotify(NamesNotifyEvent), XkbNewKeyboardNotify(NewKeyboardNotifyEvent), XkbStateNotify(StateNotifyEvent), XprintAttributNotify(AttributNotifyEvent), XprintNotify(NotifyEvent), XvPortNotify(PortNotifyEvent), XvVideoNotify(VideoNotifyEvent),
}
Expand description

Enumeration of all possible X11 events.

Variants (Non-exhaustive)

This enum is marked as 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.
Unknown(Vec<u8, Global>)
Error(X11Error)
ButtonPress(ButtonPressEvent)
ButtonRelease(ButtonPressEvent)
CirculateNotify(CirculateNotifyEvent)
CirculateRequest(CirculateNotifyEvent)
ClientMessage(ClientMessageEvent)
ColormapNotify(ColormapNotifyEvent)
ConfigureNotify(ConfigureNotifyEvent)
ConfigureRequest(ConfigureRequestEvent)
CreateNotify(CreateNotifyEvent)
DestroyNotify(DestroyNotifyEvent)
EnterNotify(EnterNotifyEvent)
Expose(ExposeEvent)
FocusIn(FocusInEvent)
FocusOut(FocusInEvent)
GeGeneric(GeGenericEvent)
GraphicsExposure(GraphicsExposureEvent)
GravityNotify(GravityNotifyEvent)
KeyPress(KeyPressEvent)
KeyRelease(KeyPressEvent)
KeymapNotify(KeymapNotifyEvent)
LeaveNotify(EnterNotifyEvent)
MapNotify(MapNotifyEvent)
MapRequest(MapRequestEvent)
MappingNotify(MappingNotifyEvent)
MotionNotify(MotionNotifyEvent)
NoExposure(NoExposureEvent)
PropertyNotify(PropertyNotifyEvent)
ReparentNotify(ReparentNotifyEvent)
ResizeRequest(ResizeRequestEvent)
SelectionClear(SelectionClearEvent)
SelectionNotify(SelectionNotifyEvent)
SelectionRequest(SelectionRequestEvent)
UnmapNotify(UnmapNotifyEvent)
VisibilityNotify(VisibilityNotifyEvent)
DamageNotify(NotifyEvent)
Dri2BufferSwapComplete(BufferSwapCompleteEvent)
Dri2InvalidateBuffers(InvalidateBuffersEvent)
GlxBufferSwapComplete(BufferSwapCompleteEvent)
GlxPbufferClobber(PbufferClobberEvent)
PresentCompleteNotify(CompleteNotifyEvent)
PresentConfigureNotify(ConfigureNotifyEvent)
PresentGeneric(GenericEvent)
PresentIdleNotify(IdleNotifyEvent)
PresentRedirectNotify(RedirectNotifyEvent)
RandrNotify(NotifyEvent)
RandrScreenChangeNotify(ScreenChangeNotifyEvent)
ScreensaverNotify(NotifyEvent)
ShapeNotify(NotifyEvent)
ShmCompletion(CompletionEvent)
SyncAlarmNotify(AlarmNotifyEvent)
SyncCounterNotify(CounterNotifyEvent)
XfixesCursorNotify(CursorNotifyEvent)
XfixesSelectionNotify(SelectionNotifyEvent)
XinputBarrierHit(BarrierHitEvent)
XinputBarrierLeave(BarrierHitEvent)
XinputButtonPress(ButtonPressEvent)
XinputButtonRelease(ButtonPressEvent)
XinputChangeDeviceNotify(ChangeDeviceNotifyEvent)
XinputDeviceButtonPress(DeviceKeyPressEvent)
XinputDeviceButtonRelease(DeviceKeyPressEvent)
XinputDeviceButtonStateNotify(DeviceButtonStateNotifyEvent)
XinputDeviceChanged(DeviceChangedEvent)
XinputDeviceFocusIn(DeviceFocusInEvent)
XinputDeviceFocusOut(DeviceFocusInEvent)
XinputDeviceKeyPress(DeviceKeyPressEvent)
XinputDeviceKeyRelease(DeviceKeyPressEvent)
XinputDeviceKeyStateNotify(DeviceKeyStateNotifyEvent)
XinputDeviceMappingNotify(DeviceMappingNotifyEvent)
XinputDeviceMotionNotify(DeviceKeyPressEvent)
XinputDevicePresenceNotify(DevicePresenceNotifyEvent)
XinputDevicePropertyNotify(DevicePropertyNotifyEvent)
XinputDeviceStateNotify(DeviceStateNotifyEvent)
XinputDeviceValuator(DeviceValuatorEvent)
XinputEnter(EnterEvent)
XinputFocusIn(EnterEvent)
XinputFocusOut(EnterEvent)
XinputHierarchy(HierarchyEvent)
XinputKeyPress(KeyPressEvent)
XinputKeyRelease(KeyPressEvent)
XinputLeave(EnterEvent)
XinputMotion(ButtonPressEvent)
XinputProperty(PropertyEvent)
XinputProximityIn(DeviceKeyPressEvent)
XinputProximityOut(DeviceKeyPressEvent)
XinputRawButtonPress(RawButtonPressEvent)
XinputRawButtonRelease(RawButtonPressEvent)
XinputRawKeyPress(RawKeyPressEvent)
XinputRawKeyRelease(RawKeyPressEvent)
XinputRawMotion(RawButtonPressEvent)
XinputRawTouchBegin(RawTouchBeginEvent)
XinputRawTouchEnd(RawTouchBeginEvent)
XinputRawTouchUpdate(RawTouchBeginEvent)
XinputTouchBegin(TouchBeginEvent)
XinputTouchEnd(TouchBeginEvent)
XinputTouchOwnership(TouchOwnershipEvent)
XinputTouchUpdate(TouchBeginEvent)
XkbAccessXNotify(AccessXNotifyEvent)
XkbActionMessage(ActionMessageEvent)
XkbBellNotify(BellNotifyEvent)
XkbCompatMapNotify(CompatMapNotifyEvent)
XkbControlsNotify(ControlsNotifyEvent)
XkbExtensionDeviceNotify(ExtensionDeviceNotifyEvent)
XkbIndicatorMapNotify(IndicatorMapNotifyEvent)
XkbIndicatorStateNotify(IndicatorStateNotifyEvent)
XkbMapNotify(MapNotifyEvent)
XkbNamesNotify(NamesNotifyEvent)
XkbNewKeyboardNotify(NewKeyboardNotifyEvent)
XkbStateNotify(StateNotifyEvent)
XprintAttributNotify(AttributNotifyEvent)
XprintNotify(NotifyEvent)
XvPortNotify(PortNotifyEvent)
XvVideoNotify(VideoNotifyEvent)

Implementations

Parse a generic X11 event into a concrete event type.

Get the sequence number contained in this X11 event

Get the raw response type of this X11 event

Response types have seven bits in X11. The eight bit indicates whether the packet was generated through the SendEvent request. This function returns all eight bits.

See also the response_type(), server_generated() and sent_event() methods.

Get the response type of this X11 event

Was this event generated by the X11 server?

If this function returns true, then this event comes from the X11 server. Otherwise, it was sent from another client via the SendEvent request.

Was this event generated by another X11 client?

If this function returns true, then this event comes from another client via the SendEvent request. Otherwise, it was generated by the X11 server.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.