pub trait WindowAdapter: WindowAdapterSealed {
    fn window(&self) -> &Window;
}
Expand description

This trait represents the adaptation layer between the Window API, and the internal type from the backend that provides functionality such as device-independent pixels, window resizing, and other typically windowing system related tasks.

This trait is sealed, meaning that you are not expected to implement this trait yourself, but you should use the provided window adapter. Use MinimalSoftwareWindow when implementing your own platform.

Required Methods§

Returns the window API.

Implementors§