[−][src]Enum penrose::core::xconnection::XEvent
Wrapper around the low level XCB event types that require casting to work with. Not all event fields are extracted so check the XCB documentation and update accordingly if you need access to something that isn't currently passed through to the WindowManager event loop.
https://tronche.com/gui/x/xlib/events/types.html https://github.com/rtbo/rust-xcb/xml/xproto.xml
XCB Level events
MapNotify - a window was mapped
- event (WinId):
The window which was mapped or its parent, depending on
whether
StructureNotify
orSubstructureNotify
was selected. - window (WinId): The window that was mapped.
- override_redirect (bool): We should ignore this window if true
UnmapNotify - a window was unmapped
- event (WinId):
The window which was unmapped or its parent, depending on
whether
StructureNotify
orSubstructureNotify
was selected. - window (WinId): The window that was unmapped.
- from-configure (bool):
- 'true' if the event was generated as a result of a resizing of
the window's parent when
window
had a win_gravity ofUnmapGravity
.
- 'true' if the event was generated as a result of a resizing of
the window's parent when
EnterNotify - the pointer is now in a different window
- event (WinId): The window on which the event was generated.
- child (WinId): If the window has sub-windows then this is the ID of the window that the pointer ended on, XCB_WINDOW_NONE otherwise.
- root (WinId): The root window for the final cursor position.
- root-x, root-y (i16, i16): The coordinates of the pointer relative to 'root's origin.
- event-x, event-y (i16, i16): The coordinates of the pointer relative to the event window's origin.
- mode (NotifyMode enum)
- Normal, Grab, Ungrab, WhileGrabbed
LeaveNotify - the pointer has left a window
- Same fields as EnterNotify
DestroyNotify - a window has been destroyed
- event (WinId):
The reconfigured window or its parent, depending on whether
StructureNotify
orSubstructureNotify
was selected. - window (WinId): The window that was destroyed.
KeyPress - a keyboard key was pressed / released
- detail (u8): Keycode of the key that was pressed
- event (u16): The modifier masks being held when the key was pressed
- child (WinId): If the window has sub-windows then this is the ID of the window that the pointer ended on, XCB_WINDOW_NONE otherwise.
- root (WinId): The root window for the final cursor position.
- root-x, root-y (i16, i16): The coordinates of the pointer relative to 'root's origin.
- event-x, event-y (i16, i16): The coordinates of the pointer relative to the event window's origin.
ButtonPress - a mouse button was pressed
- detail (u8): The button that was pressed
- event (u16): The modifier masks being held when the button was pressed
- child (WinId): If the window has sub-windows then this is the ID of the window that the pointer ended on, XCB_WINDOW_NONE otherwise.
- root (WinId): The root window for the final cursor position.
- root-x, root-y (i16, i16): The coordinates of the pointer relative to 'root's origin.
- event-x, event-y (i16, i16): The coordinates of the pointer relative to the event window's origin.
ButtonRelease - a mouse button was released
- same fields as ButtonPress
Variants
xcb docs: https://www.mankier.com/3/xcb_input_raw_button_press_event_t
xcb docs: https://www.mankier.com/3/xcb_input_raw_button_press_event_t
xcb docs: https://www.mankier.com/3/xcb_input_device_key_press_event_t
Fields of KeyPress
code: KeyCode
The X11 key code that was received along with any modifiers that were held
xcb docs: https://www.mankier.com/3/xcb_map_request_event_t
Fields of MapRequest
xcb docs: https://www.mankier.com/3/xcb_enter_notify_event_t
Fields of Enter
xcb docs: https://www.mankier.com/3/xcb_enter_notify_event_t
Fields of Leave
xcb docs: https://www.mankier.com/3/xcb_focus_in_event_t
Fields of FocusIn
id: WinId
The ID of the window that gained focus
xcb docs: https://www.mankier.com/3/xcb_focus_out_event_t
Fields of FocusOut
id: WinId
The ID of the window that lost focus
MapNotifyEvent xcb docs: https://www.mankier.com/3/xcb_destroy_notify_event_t
Fields of Destroy
id: WinId
The ID of the window being destroyed
xcb docs: https://www.mankier.com/3/xcb_randr_screen_change_notify_event_t
xcb docs: https://www.mankier.com/3/xcb_randr_notify_event_t
xcb docs: https://www.mankier.com/3/xcb_property_notify_event_t
Fields of PropertyNotify
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for XEvent
impl Send for XEvent
impl Sync for XEvent
impl Unpin for XEvent
impl UnwindSafe for XEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,