Module winit_modular::event
source · [−]Expand description
Events received by the proxy event loops. Copied directly from winit/event, modified to support passing events to multiple proxies. See the event documentation for details.
Every single winit::event::Event has a corresponding winit_modular::event::Event, except that [ProxyEvent]s do not have a lifetime so they can be sent across threads.
Different proxies may have different custom event implementations. As a result we decided to
make 2 kinds of custom events: Box<dyn Any>, and if you care about allocation, usize,
can be sent as custom events. Custom events are one of the ways to communicate across [ProxyEventLoop]s.
Enums
Event which gets sent to proxy [EventLoop]s. See winit::event::Event for details.
A generic custom event which should support most use cases.
Describes an event from a winit::window::Window. See winit::event::WindowEvent for details.
Traits
Traits which custom events must implement.