pub trait WindowAdapter: WindowAdapterSealed {
    // Required method
    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§

fn window(&self) -> &Window

Returns the window API.

Implementors§

§

impl<const MAX_BUFFER_AGE: usize> WindowAdapter for MinimalSoftwareWindow<MAX_BUFFER_AGE>