pub struct EvDevBackend { /* private fields */ }Implementations§
Source§impl EvDevBackend
impl EvDevBackend
pub fn new(devices: Vec<EvDevDeviceDescription>) -> Self
Sourcepub fn create_from_environment() -> Result<Self, String>
pub fn create_from_environment() -> Result<Self, String>
The backend of the devices the environment names: one variable
FERROUI_EVDEV_DEVICE_{name} per device, with the format
(path):type=(touchscreen|multitouch|keyboard|mouse):[calibration=..].
Trait Implementations§
Source§impl IInputBackend for EvDevBackend
impl IInputBackend for EvDevBackend
Source§fn initialize(
&self,
info: Rc<dyn IScreenInfoProvider>,
on_input: Rc<dyn Fn(RawEvent)>,
)
fn initialize( &self, info: Rc<dyn IScreenInfoProvider>, on_input: Rc<dyn Fn(RawEvent)>, )
§Panics
Panics when a device cannot be opened or is not of the kind its description names.
fn set_input_root(&self, root: Rc<dyn IInputRoot>)
Auto Trait Implementations§
impl !RefUnwindSafe for EvDevBackend
impl !Send for EvDevBackend
impl !Sync for EvDevBackend
impl !UnwindSafe for EvDevBackend
impl Freeze for EvDevBackend
impl Unpin for EvDevBackend
impl UnsafeUnpin for EvDevBackend
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