pub enum InputProp {
INPUT_PROP_POINTER = 0,
INPUT_PROP_DIRECT = 1,
INPUT_PROP_BUTTONPAD = 2,
INPUT_PROP_SEMI_MT = 3,
INPUT_PROP_TOPBUTTONPAD = 4,
INPUT_PROP_POINTING_STICK = 5,
INPUT_PROP_ACCELEROMETER = 6,
INPUT_PROP_MAX = 31,
}
Variants§
INPUT_PROP_POINTER = 0
INPUT_PROP_DIRECT = 1
INPUT_PROP_BUTTONPAD = 2
INPUT_PROP_SEMI_MT = 3
INPUT_PROP_TOPBUTTONPAD = 4
INPUT_PROP_POINTING_STICK = 5
INPUT_PROP_ACCELEROMETER = 6
INPUT_PROP_MAX = 31
Implementations§
source§impl InputProp
impl InputProp
pub fn iter(&self) -> InputPropIterator ⓘ
sourcepub fn from_str(name: &str) -> Option<InputProp>
pub fn from_str(name: &str) -> Option<InputProp>
Look up an input property by its name. Properties start with the fixed prefix “INPUT_PROP_” followed by their name (eg., “INPUT_PROP_POINTER”). The prefix must be included in the name. It returns the constant assigned to the property or Errno if not found.
Trait Implementations§
source§impl<'de> Deserialize<'de> for InputProp
impl<'de> Deserialize<'de> for InputProp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for InputProp
impl Ord for InputProp
source§impl PartialEq for InputProp
impl PartialEq for InputProp
source§impl PartialOrd for InputProp
impl PartialOrd for InputProp
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InputProp
impl Eq for InputProp
impl StructuralPartialEq for InputProp
Auto Trait Implementations§
impl Freeze for InputProp
impl RefUnwindSafe for InputProp
impl Send for InputProp
impl Sync for InputProp
impl Unpin for InputProp
impl UnwindSafe for InputProp
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