Skip to main content

InputEvent

Trait InputEvent 

Source
pub trait InputEvent: Sealed + 'static {
    // Required method
    fn to_platform_input(self) -> PlatformInput;
}
Expand description

A platform input event that GPUI can dispatch to a window.

Implemented by the event structs in this module. Each one converts into the matching PlatformInput variant. The trait is sealed, so only GPUI can implement it.

Required Methods§

Source

fn to_platform_input(self) -> PlatformInput

Converts this event into the PlatformInput variant that wraps it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§