pub struct LibInputState { /* private fields */ }Expand description
The state the mapping keeps between events (the fields of the three partial files of the reference that are not objects of the UI thread).
Implementations§
Source§impl LibInputState
impl LibInputState
pub fn new() -> Self
Sourcepub fn handle(
&mut self,
ev: &LibInputEvent,
info: Size,
has_input_root: bool,
out: &mut Vec<EvDevRawEvent>,
)
pub fn handle( &mut self, ev: &LibInputEvent, info: Size, has_input_root: bool, out: &mut Vec<EvDevRawEvent>, )
Maps one event. info is the scaled size of the screen;
has_input_root whether an input root was set (touch events
before that are dropped after the state is updated, as in the
reference).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LibInputState
impl RefUnwindSafe for LibInputState
impl Send for LibInputState
impl Sync for LibInputState
impl Unpin for LibInputState
impl UnsafeUnpin for LibInputState
impl UnwindSafe for LibInputState
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
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