pub struct EventLoop {
    pub device: Arc<Device>,
    pub window: Window,
    /* private fields */
}
Expand description

Pumps an operating system event loop in order to handle input and other events while drawing to the screen, continuously.

Fields§

§device: Arc<Device>

Provides access to the current graphics device.

§window: Window

Provides access to the current operating system window.

Implementations§

Specifies an event loop.

Current window height, in pixels.

Begins running a windowed event loop, providing frame_fn with a context of the current frame.

Current window width, in pixels.

Current window.

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.