Skip to main content

WindowProvider

Trait WindowProvider 

Source
pub trait WindowProvider: 'static {
    type Handle: GPUSurfaceHandle;
    type Exposed: Clone + Send + Sync + 'static;

    // Required methods
    fn create(config: &WindowConfig) -> Self;
    fn size(handle: &Self::Handle) -> (u32, u32);
    fn exposed(&self) -> Self::Exposed;
    fn handle(&self) -> &Self::Handle;
}

Required Associated Types§

Required Methods§

Source

fn create(config: &WindowConfig) -> Self

Source

fn size(handle: &Self::Handle) -> (u32, u32)

Source

fn exposed(&self) -> Self::Exposed

Source

fn handle(&self) -> &Self::Handle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§