[−][src]Struct wlroots::input::Device
Wrapper for wlr_input_device
Methods
impl Device[src]
impl Devicepub fn vendor(&self) -> c_uint[src]
pub fn vendor(&self) -> c_uintpub fn product(&self) -> c_uint[src]
pub fn product(&self) -> c_uintpub fn name(&self) -> Option<String>[src]
pub fn name(&self) -> Option<String>pub fn output_name(&self) -> Option<String>[src]
pub fn output_name(&self) -> Option<String>pub fn size(&self) -> (c_double, c_double)[src]
pub fn size(&self) -> (c_double, c_double)Get the size in (width_mm, height_mm) format.
These values will be 0 if it's not supported.
pub fn dev_type(&self) -> wlr_input_device_type[src]
pub fn dev_type(&self) -> wlr_input_device_typeGet the type of the device
pub fn device(&self) -> Handle[src]
pub fn device(&self) -> HandleGet a handle to the backing input device.
Trait Implementations
impl Eq for Device[src]
impl Eq for Deviceimpl PartialOrd<Device> for Device[src]
impl PartialOrd<Device> for Devicefn partial_cmp(&self, other: &Device) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Device) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Device) -> bool[src]
fn lt(&self, other: &Device) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Device) -> bool[src]
fn le(&self, other: &Device) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Device) -> bool[src]
fn gt(&self, other: &Device) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Device) -> bool[src]
fn ge(&self, other: &Device) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<Device> for Device[src]
impl PartialEq<Device> for Devicefn eq(&self, other: &Device) -> bool[src]
fn eq(&self, other: &Device) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Device) -> bool[src]
fn ne(&self, other: &Device) -> boolThis method tests for !=.
impl Ord for Device[src]
impl Ord for Devicefn cmp(&self, other: &Device) -> Ordering[src]
fn cmp(&self, other: &Device) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Device[src]
impl Hash for Devicefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Device[src]
impl Debug for DeviceAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more