Struct winit::EventsLoop [] [src]

pub struct EventsLoop { /* fields omitted */ }

Provides a way to retreive events from the windows that were registered to it.

To wake up an EventsLoop from a another thread, see the EventsLoopProxy docs.

Methods

impl EventsLoop
[src]

Builds a new events loop.

Fetches all the events that are pending, calls the callback function for each of them, and returns.

Runs forever until interrupt() is called. Whenever an event happens, calls the callback.

Creates an EventsLoopProxy that can be used to wake up the EventsLoop from another thread.