logo
#[repr(transparent)]
pub struct Window(_);
Expand description

This type represents a window towards the windowing system, that’s used to render the scene of a component. It provides API to control windowing system specific aspects such as the position on the screen.

Implementations

Registers the window with the windowing system in order to make it visible on the screen.

De-registers the window from the windowing system, therefore hiding it.

This function allows registering a callback that’s invoked during the different phases of rendering. This allows custom rendering on top or below of the scene.

This function allows registering a callback that’s invoked when the user tries to close a window. The callback has to return a CloseRequestResponse.

This function issues a request to the windowing system to redraw the contents of the window.

Trait Implementations

Returns a reference to the window implementation.

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.