#[non_exhaustive]pub enum InputAxis {
Ignore,
X,
Y,
Pressure,
Xtilt,
Ytilt,
Wheel,
Distance,
Last,
}
Expand description
The type of axes Clutter recognizes on a InputDevice
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ignore
Unused axis
X
The position on the X axis
Y
The position of the Y axis
Pressure
The pressure information
Xtilt
The tilt on the X axis
Ytilt
The tile on the Y axis
Wheel
A wheel
Distance
Distance (Since 1.12)
Last
Last value of the enumeration; this value is useful when iterating over the enumeration values (Since 1.12)
Trait Implementations§
Source§impl<'a> FromValue<'a> for InputAxis
impl<'a> FromValue<'a> for InputAxis
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for InputAxis
impl<'a> FromValueOptional<'a> for InputAxis
Source§impl Ord for InputAxis
impl Ord for InputAxis
Source§impl PartialOrd for InputAxis
impl PartialOrd for InputAxis
Source§impl StaticType for InputAxis
impl StaticType for InputAxis
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for InputAxis
impl Eq for InputAxis
impl StructuralPartialEq for InputAxis
Auto Trait Implementations§
impl Freeze for InputAxis
impl RefUnwindSafe for InputAxis
impl Send for InputAxis
impl Sync for InputAxis
impl Unpin for InputAxis
impl UnwindSafe for InputAxis
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.