pub enum DeviceType {
Virtual = 1,
Physical = 2,
}Expand description
If the device type is ei_device.device_type.virtual, the device is a
virtual device representing input as applied on the EIS implementation’s
screen. A relative virtual device generates input events in logical pixels,
an absolute virtual device generates input events in logical pixels on one
of the device’s regions. Virtual devices do not have a ei_device.dimension but
it may have an ei_device.region.
If the device type is ei_device.device_type.physical, the device is a
representation of a physical device as if connected to the EIS
implementation’s host computer. A relative physical device generates input
events in mm, an absolute physical device generates input events in mm
within the device’s specified physical size. Physical devices do not have
regions and no ei_device.region events are sent for such devices.
Variants§
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeviceType
impl Debug for DeviceType
source§impl From<DeviceType> for u32
impl From<DeviceType> for u32
source§fn from(value: DeviceType) -> u32
fn from(value: DeviceType) -> u32
source§impl Hash for DeviceType
impl Hash for DeviceType
source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)