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
fn into_event(self) -> Event where Self: Sized
Convert into a general Event again
fn context(&self) -> Libinput
Get the libinput context from the event.
fn device(&self) -> Device
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
impl EventTrait for DeviceEventimpl EventTrait for DeviceAddedEventimpl EventTrait for DeviceRemovedEventimpl EventTrait for GestureEventimpl EventTrait for GestureSwipeEventimpl EventTrait for GesturePinchEventimpl EventTrait for GestureSwipeBeginEventimpl EventTrait for GestureSwipeUpdateEventimpl EventTrait for GestureSwipeEndEventimpl EventTrait for GesturePinchBeginEventimpl EventTrait for GesturePinchUpdateEventimpl EventTrait for GesturePinchEndEventimpl EventTrait for KeyboardEventimpl EventTrait for KeyboardKeyEventimpl EventTrait for PointerEventimpl EventTrait for PointerMotionEventimpl EventTrait for PointerMotionAbsoluteEventimpl EventTrait for PointerButtonEventimpl EventTrait for PointerAxisEventimpl EventTrait for SwitchEventimpl EventTrait for SwitchToggleEventimpl EventTrait for TabletToolEventimpl EventTrait for TabletToolAxisEventimpl EventTrait for TabletToolProximityEventimpl EventTrait for TabletToolTipEventimpl EventTrait for TabletToolButtonEventimpl EventTrait for TabletPadEventimpl EventTrait for TabletPadButtonEventimpl EventTrait for TabletPadRingEventimpl EventTrait for TabletPadStripEventimpl EventTrait for TouchEventimpl EventTrait for TouchDownEventimpl EventTrait for TouchUpEventimpl EventTrait for TouchMotionEventimpl EventTrait for TouchCancelEventimpl EventTrait for TouchFrameEventimpl EventTrait for Event