[−][src]Struct input_linux::AbsoluteEvent
Events that occur when the state of an absolute axis is changed.
Fields
time: EventTime
The timestamp associated with the event.
axis: AbsoluteAxis
The axis associated with the event.
value: i32
The absolute value of the axis.
Implementations
impl<'a> AbsoluteEvent
[src]
pub const fn new(time: EventTime, axis: AbsoluteAxis, value: i32) -> Self
[src]
Creates a new event from the given code and value.
pub unsafe fn from_event<E: AsRef<input_event>>(event: &E) -> &Self
[src]
Reinterpret a generic event without checking for validity.
pub unsafe fn from_event_mut(event: &mut InputEvent) -> &mut Self
[src]
Reinterpret a mutable generic event without checking for validity.
pub fn as_event(&self) -> &InputEvent
[src]
A generic input event reference.
pub unsafe fn as_event_mut(&mut self) -> &mut InputEvent
[src]
A mutable generic input event reference.
Trait Implementations
impl AsRef<InputEvent> for AbsoluteEvent
[src]
fn as_ref(&self) -> &InputEvent
[src]
impl AsRef<input_event> for AbsoluteEvent
[src]
impl Clone for AbsoluteEvent
[src]
fn clone(&self) -> AbsoluteEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AbsoluteEvent
[src]
impl Debug for AbsoluteEvent
[src]
impl Eq for AbsoluteEvent
[src]
impl<'a> From<&'a AbsoluteEvent> for &'a InputEvent
[src]
fn from(event: &'a AbsoluteEvent) -> Self
[src]
impl<'a> From<&'a AbsoluteEvent> for InputEvent
[src]
fn from(event: &'a AbsoluteEvent) -> Self
[src]
impl<'a> From<&'a AbsoluteEvent> for EventRef<'a>
[src]
fn from(event: &'a AbsoluteEvent) -> Self
[src]
impl<'a> From<&'a mut AbsoluteEvent> for EventMut<'a>
[src]
fn from(event: &'a mut AbsoluteEvent) -> Self
[src]
impl From<AbsoluteEvent> for InputEvent
[src]
fn from(event: AbsoluteEvent) -> Self
[src]
impl From<AbsoluteEvent> for Event
[src]
fn from(event: AbsoluteEvent) -> Self
[src]
impl GenericEvent for AbsoluteEvent
[src]
fn event_kind(&self) -> EventKind
[src]
fn time(&self) -> &EventTime
[src]
fn code(&self) -> u16
[src]
fn value(&self) -> i32
[src]
fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
[src]
fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
[src]
impl Hash for AbsoluteEvent
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for AbsoluteEvent
[src]
fn cmp(&self, other: &AbsoluteEvent) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AbsoluteEvent> for AbsoluteEvent
[src]
fn eq(&self, other: &AbsoluteEvent) -> bool
[src]
fn ne(&self, other: &AbsoluteEvent) -> bool
[src]
impl PartialOrd<AbsoluteEvent> for AbsoluteEvent
[src]
fn partial_cmp(&self, other: &AbsoluteEvent) -> Option<Ordering>
[src]
fn lt(&self, other: &AbsoluteEvent) -> bool
[src]
fn le(&self, other: &AbsoluteEvent) -> bool
[src]
fn gt(&self, other: &AbsoluteEvent) -> bool
[src]
fn ge(&self, other: &AbsoluteEvent) -> bool
[src]
impl StructuralEq for AbsoluteEvent
[src]
impl StructuralPartialEq for AbsoluteEvent
[src]
impl<'a> TryFrom<&'a InputEvent> for &'a AbsoluteEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
fn try_from(event: &'a InputEvent) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut AbsoluteEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
fn try_from(event: &'a mut InputEvent) -> Result<Self, Self::Error>
[src]
impl TryFrom<InputEvent> for AbsoluteEvent
[src]
type Error = RangeError
The type returned in the event of a conversion error.
fn try_from(event: InputEvent) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for AbsoluteEvent
impl Send for AbsoluteEvent
impl Sync for AbsoluteEvent
impl Unpin for AbsoluteEvent
impl UnwindSafe for AbsoluteEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,