Enum smithay::backend::input::InputEvent [−][src]
pub enum InputEvent<B: InputBackend> {}Show 17 variants
DeviceAdded { device: B::Device, }, DeviceRemoved { device: B::Device, }, Keyboard { event: B::KeyboardKeyEvent, }, PointerMotion { event: B::PointerMotionEvent, }, PointerMotionAbsolute { event: B::PointerMotionAbsoluteEvent, }, PointerButton { event: B::PointerButtonEvent, }, PointerAxis { event: B::PointerAxisEvent, }, TouchDown { event: B::TouchDownEvent, }, TouchMotion { event: B::TouchMotionEvent, }, TouchUp { event: B::TouchUpEvent, }, TouchCancel { event: B::TouchCancelEvent, }, TouchFrame { event: B::TouchFrameEvent, }, TabletToolAxis { event: B::TabletToolAxisEvent, }, TabletToolProximity { event: B::TabletToolProximityEvent, }, TabletToolTip { event: B::TabletToolTipEvent, }, TabletToolButton { event: B::TabletToolButtonEvent, }, Special(B::SpecialEvent),
Expand description
Different events that can be generated by an input backend
Variants
An input device was connected
Fields of DeviceAdded
device: B::Device
The added device
An input device was disconnected
Fields of DeviceRemoved
device: B::Device
The removed device
A keyboard event occurred
Fields of Keyboard
event: B::KeyboardKeyEvent
The keyboard event
A relative pointer motion occurred
Fields of PointerMotion
event: B::PointerMotionEvent
The pointer motion event
An absolute pointer motion occurs
Fields of PointerMotionAbsolute
event: B::PointerMotionAbsoluteEvent
The absolute pointer motion event
A pointer button was pressed or released
Fields of PointerButton
event: B::PointerButtonEvent
The pointer button event
A pointer action occurred while scrolling on an axis
Fields of PointerAxis
event: B::PointerAxisEvent
The pointer axis event
A new touchpoint appeared
Fields of TouchDown
event: B::TouchDownEvent
The touch down event
A touchpoint moved
Fields of TouchMotion
event: B::TouchMotionEvent
The touch motion event
A touchpoint was removed
Fields of TouchUp
event: B::TouchUpEvent
The touch up event
A touch sequence was cancelled
Fields of TouchCancel
event: B::TouchCancelEvent
The touch cancel event
A touch frame was emitted
A set of two events received on the same seat between two frames should be interpreted as an atomic event.
Fields of TouchFrame
event: B::TouchFrameEvent
The touch frame event
A tablet tool axis was emitted
Fields of TabletToolAxis
event: B::TabletToolAxisEvent
The tablet tool axis event
A tablet tool proximity was emitted
Fields of TabletToolProximity
event: B::TabletToolProximityEvent
The tablet tool proximity event
A tablet tool tip event was emitted
Fields of TabletToolTip
event: B::TabletToolTipEvent
The tablet tool axis event
A tablet tool button was pressed or released
Fields of TabletToolButton
event: B::TabletToolButtonEvent
The pointer button event
Special(B::SpecialEvent)
Special event specific of this backend
Trait Implementations
impl<B: Debug + InputBackend> Debug for InputEvent<B> where
B::Device: Debug,
B::Device: Debug,
B::KeyboardKeyEvent: Debug,
B::PointerMotionEvent: Debug,
B::PointerMotionAbsoluteEvent: Debug,
B::PointerButtonEvent: Debug,
B::PointerAxisEvent: Debug,
B::TouchDownEvent: Debug,
B::TouchMotionEvent: Debug,
B::TouchUpEvent: Debug,
B::TouchCancelEvent: Debug,
B::TouchFrameEvent: Debug,
B::TabletToolAxisEvent: Debug,
B::TabletToolProximityEvent: Debug,
B::TabletToolTipEvent: Debug,
B::TabletToolButtonEvent: Debug,
B::SpecialEvent: Debug,
impl<B: Debug + InputBackend> Debug for InputEvent<B> where
B::Device: Debug,
B::Device: Debug,
B::KeyboardKeyEvent: Debug,
B::PointerMotionEvent: Debug,
B::PointerMotionAbsoluteEvent: Debug,
B::PointerButtonEvent: Debug,
B::PointerAxisEvent: Debug,
B::TouchDownEvent: Debug,
B::TouchMotionEvent: Debug,
B::TouchUpEvent: Debug,
B::TouchCancelEvent: Debug,
B::TouchFrameEvent: Debug,
B::TabletToolAxisEvent: Debug,
B::TabletToolProximityEvent: Debug,
B::TabletToolTipEvent: Debug,
B::TabletToolButtonEvent: Debug,
B::SpecialEvent: Debug,
Auto Trait Implementations
impl<B> RefUnwindSafe for InputEvent<B> where
<B as InputBackend>::Device: RefUnwindSafe,
<B as InputBackend>::KeyboardKeyEvent: RefUnwindSafe,
<B as InputBackend>::PointerAxisEvent: RefUnwindSafe,
<B as InputBackend>::PointerButtonEvent: RefUnwindSafe,
<B as InputBackend>::PointerMotionAbsoluteEvent: RefUnwindSafe,
<B as InputBackend>::PointerMotionEvent: RefUnwindSafe,
<B as InputBackend>::SpecialEvent: RefUnwindSafe,
<B as InputBackend>::TabletToolAxisEvent: RefUnwindSafe,
<B as InputBackend>::TabletToolButtonEvent: RefUnwindSafe,
<B as InputBackend>::TabletToolProximityEvent: RefUnwindSafe,
<B as InputBackend>::TabletToolTipEvent: RefUnwindSafe,
<B as InputBackend>::TouchCancelEvent: RefUnwindSafe,
<B as InputBackend>::TouchDownEvent: RefUnwindSafe,
<B as InputBackend>::TouchFrameEvent: RefUnwindSafe,
<B as InputBackend>::TouchMotionEvent: RefUnwindSafe,
<B as InputBackend>::TouchUpEvent: RefUnwindSafe,
impl<B> Send for InputEvent<B> where
<B as InputBackend>::Device: Send,
<B as InputBackend>::KeyboardKeyEvent: Send,
<B as InputBackend>::PointerAxisEvent: Send,
<B as InputBackend>::PointerButtonEvent: Send,
<B as InputBackend>::PointerMotionAbsoluteEvent: Send,
<B as InputBackend>::PointerMotionEvent: Send,
<B as InputBackend>::SpecialEvent: Send,
<B as InputBackend>::TabletToolAxisEvent: Send,
<B as InputBackend>::TabletToolButtonEvent: Send,
<B as InputBackend>::TabletToolProximityEvent: Send,
<B as InputBackend>::TabletToolTipEvent: Send,
<B as InputBackend>::TouchCancelEvent: Send,
<B as InputBackend>::TouchDownEvent: Send,
<B as InputBackend>::TouchFrameEvent: Send,
<B as InputBackend>::TouchMotionEvent: Send,
<B as InputBackend>::TouchUpEvent: Send,
impl<B> Sync for InputEvent<B> where
<B as InputBackend>::Device: Sync,
<B as InputBackend>::KeyboardKeyEvent: Sync,
<B as InputBackend>::PointerAxisEvent: Sync,
<B as InputBackend>::PointerButtonEvent: Sync,
<B as InputBackend>::PointerMotionAbsoluteEvent: Sync,
<B as InputBackend>::PointerMotionEvent: Sync,
<B as InputBackend>::SpecialEvent: Sync,
<B as InputBackend>::TabletToolAxisEvent: Sync,
<B as InputBackend>::TabletToolButtonEvent: Sync,
<B as InputBackend>::TabletToolProximityEvent: Sync,
<B as InputBackend>::TabletToolTipEvent: Sync,
<B as InputBackend>::TouchCancelEvent: Sync,
<B as InputBackend>::TouchDownEvent: Sync,
<B as InputBackend>::TouchFrameEvent: Sync,
<B as InputBackend>::TouchMotionEvent: Sync,
<B as InputBackend>::TouchUpEvent: Sync,
impl<B> Unpin for InputEvent<B> where
<B as InputBackend>::Device: Unpin,
<B as InputBackend>::KeyboardKeyEvent: Unpin,
<B as InputBackend>::PointerAxisEvent: Unpin,
<B as InputBackend>::PointerButtonEvent: Unpin,
<B as InputBackend>::PointerMotionAbsoluteEvent: Unpin,
<B as InputBackend>::PointerMotionEvent: Unpin,
<B as InputBackend>::SpecialEvent: Unpin,
<B as InputBackend>::TabletToolAxisEvent: Unpin,
<B as InputBackend>::TabletToolButtonEvent: Unpin,
<B as InputBackend>::TabletToolProximityEvent: Unpin,
<B as InputBackend>::TabletToolTipEvent: Unpin,
<B as InputBackend>::TouchCancelEvent: Unpin,
<B as InputBackend>::TouchDownEvent: Unpin,
<B as InputBackend>::TouchFrameEvent: Unpin,
<B as InputBackend>::TouchMotionEvent: Unpin,
<B as InputBackend>::TouchUpEvent: Unpin,
impl<B> UnwindSafe for InputEvent<B> where
<B as InputBackend>::Device: UnwindSafe,
<B as InputBackend>::KeyboardKeyEvent: UnwindSafe,
<B as InputBackend>::PointerAxisEvent: UnwindSafe,
<B as InputBackend>::PointerButtonEvent: UnwindSafe,
<B as InputBackend>::PointerMotionAbsoluteEvent: UnwindSafe,
<B as InputBackend>::PointerMotionEvent: UnwindSafe,
<B as InputBackend>::SpecialEvent: UnwindSafe,
<B as InputBackend>::TabletToolAxisEvent: UnwindSafe,
<B as InputBackend>::TabletToolButtonEvent: UnwindSafe,
<B as InputBackend>::TabletToolProximityEvent: UnwindSafe,
<B as InputBackend>::TabletToolTipEvent: UnwindSafe,
<B as InputBackend>::TouchCancelEvent: UnwindSafe,
<B as InputBackend>::TouchDownEvent: UnwindSafe,
<B as InputBackend>::TouchFrameEvent: UnwindSafe,
<B as InputBackend>::TouchMotionEvent: UnwindSafe,
<B as InputBackend>::TouchUpEvent: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V