#[repr(transparent)]pub struct Event { /* private fields */ }
Implementations
sourceimpl Event
impl Event
pub const NONE: Option<&'static Event>
pub fn axes(&self) -> Option<Vec<f64>>
pub fn axis(&self, axis_use: AxisUse) -> Option<f64>
pub fn device(&self) -> Option<Device>
pub fn device_tool(&self) -> Option<DeviceTool>
pub fn display(&self) -> Option<Display>
pub fn event_sequence(&self) -> EventSequence
pub fn event_type(&self) -> EventType
pub fn history(&self) -> Vec<TimeCoord>
pub fn modifier_state(&self) -> ModifierType
pub fn is_pointer_emulated(&self) -> bool
pub fn position(&self) -> Option<(f64, f64)>
pub fn seat(&self) -> Option<Seat>
pub fn surface(&self) -> Option<Surface>
pub fn time(&self) -> u32
sourceimpl Event
impl Event
pub fn is<T: EventKind>(&self) -> bool
pub fn type_(&self) -> Type
pub fn downcast<T: EventKind>(self) -> Result<T, Event>
pub fn downcast_ref<T: EventKind>(&self) -> Option<&T>
pub fn angle(&self, event: impl AsRef<Event>) -> Option<f64>
pub fn center(&self, event: impl AsRef<Event>) -> Option<(f64, f64)>
pub fn distance(&self, event: impl AsRef<Event>) -> Option<f64>
Trait Implementations
sourceimpl AsRef<Event> for ButtonEvent
impl AsRef<Event> for ButtonEvent
sourceimpl AsRef<Event> for CrossingEvent
impl AsRef<Event> for CrossingEvent
sourceimpl AsRef<Event> for ScrollEvent
impl AsRef<Event> for ScrollEvent
sourceimpl AsRef<Event> for TouchEvent
impl AsRef<Event> for TouchEvent
sourceimpl AsRef<Event> for TouchpadEvent
impl AsRef<Event> for TouchpadEvent
sourceimpl AsRef<Event> for DeleteEvent
impl AsRef<Event> for DeleteEvent
sourceimpl AsRef<Event> for FocusEvent
impl AsRef<Event> for FocusEvent
sourceimpl AsRef<Event> for GrabBrokenEvent
impl AsRef<Event> for GrabBrokenEvent
sourceimpl AsRef<Event> for MotionEvent
impl AsRef<Event> for MotionEvent
sourceimpl AsRef<Event> for ProximityEvent
impl AsRef<Event> for ProximityEvent
sourceimpl StaticType for Event
impl StaticType for Event
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more