pub enum InputEvent {
PointerConfinement {
request_serial: u64,
active: bool,
},
Focus {
focused: bool,
},
Motion {
x: i32,
y: i32,
},
RelativeMotion {
dx: i32,
dy: i32,
time_usec: u64,
},
Button {
button: u32,
pressed: bool,
x: i32,
y: i32,
},
Axis {
horizontal: i32,
vertical: i32,
x: i32,
y: i32,
},
Leave,
Key {
keycode: u32,
keysym: u32,
pressed: bool,
repeat: bool,
modifiers: u32,
text: Option<char>,
},
TextCommit {
text: String,
},
Touch {
id: i32,
phase: TouchPhase,
x: i32,
y: i32,
},
TouchCancel,
}Variants§
PointerConfinement
Reply to a negotiated request, or permanent revocation of an active grant. A false reply denies/releases the request. An active grant never returns after revocation without a new explicit request and compositor approval.
Focus
Motion
RelativeMotion
Physical, unaccelerated deltas before output clipping, delivered only after explicit negotiation. The monotonic timestamp is compositor-local. Relative delivery grants neither capture nor shortcut inhibition.
Button
Axis
Leave
Key
TextCommit
An atomic, bounded UTF-8 text commit from the compositor.
Touch
One bounded compositor-owned touch contact in window-local pixels.
TouchCancel
All active contacts on this window were cancelled by the compositor.
Trait Implementations§
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§impl Debug for InputEvent
impl Debug for InputEvent
impl Eq for InputEvent
Source§impl PartialEq for InputEvent
impl PartialEq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnsafeUnpin for InputEvent
impl UnwindSafe for InputEvent
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
Mutably borrows from an owned value. Read more