Skip to main content

RenderWindow

Trait RenderWindow 

Source
pub trait RenderWindow:
    Debug
    + HasDisplayHandle
    + HasWindowHandle {
    // Required method
    fn size(&self) -> RenderExtent;
}
Expand description

Native window data needed by renderer backends.

Required Methods§

Source

fn size(&self) -> RenderExtent

Returns the current drawable window size in physical pixels.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§