Struct winit::EventsLoop [] [src]

pub struct EventsLoop { /* fields omitted */ }

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

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.

If we called run_forever(), stops the process of waiting for events.