pub enum LibInputEvent {
Touch {
type_: i32,
slot: i32,
time_usec: u64,
x: f64,
y: f64,
},
PointerMotionAbsolute {
time_usec: u64,
x: f64,
y: f64,
},
PointerButton {
time_usec: u64,
button: u32,
button_state: i32,
},
PointerAxis {
time_usec: u64,
source_axis: i32,
value_discrete: f64,
},
PointerScrollWheel {
time_usec: u64,
value_v120: f64,
},
PointerOther {
type_: i32,
},
}Expand description
What the mapping needs of an event of the library.
Variants§
Touch
A touch event below LIBINPUT_EVENT_TOUCH_FRAME: the position is a
fraction of the screen, and is meaningful for a down and a motion.
PointerMotionAbsolute
LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE, the position as a fraction.
PointerButton
LIBINPUT_EVENT_POINTER_BUTTON.
PointerAxis
LIBINPUT_EVENT_POINTER_AXIS: the source and, for a wheel, the
vertical value in steps.
PointerScrollWheel
LIBINPUT_EVENT_POINTER_SCROLL_WHEEL.
PointerOther
Another event of the pointer range.
Trait Implementations§
Source§impl Clone for LibInputEvent
impl Clone for LibInputEvent
impl Copy for LibInputEvent
Source§impl Debug for LibInputEvent
impl Debug for LibInputEvent
Source§impl PartialEq for LibInputEvent
impl PartialEq for LibInputEvent
impl StructuralPartialEq for LibInputEvent
Auto Trait Implementations§
impl Freeze for LibInputEvent
impl RefUnwindSafe for LibInputEvent
impl Send for LibInputEvent
impl Sync for LibInputEvent
impl Unpin for LibInputEvent
impl UnsafeUnpin for LibInputEvent
impl UnwindSafe for LibInputEvent
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more