Trait input::event::EventTrait [] [src]

pub trait EventTrait {
    fn into_event(self) -> Event where Self: Sized { ... }
    fn context(&self) -> Libinput { ... }
    fn device(&self) -> Device { ... }
}

Common functions all (Sub-)Events implement.

Provided Methods

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event.

For device added/removed events this is the device added or removed. For all other device events, this is the device that generated the event.

Implementors