pub trait WindowHost: HasWindowHandle + HasDisplayHandle {
// Required method
fn inner_size(&self) -> (u32, u32);
// Provided method
fn scale_factor(&self) -> f64 { ... }
}Expand description
Narrow host-window abstraction required by the compositor.
Required Methods§
Sourcefn inner_size(&self) -> (u32, u32)
fn inner_size(&self) -> (u32, u32)
Return the current inner size in physical pixels.
Provided Methods§
Sourcefn scale_factor(&self) -> f64
fn scale_factor(&self) -> f64
Return the current scale factor for coordinate conversion.
Implementations on Foreign Types§
Source§impl WindowHost for Window
Available on crate feature winit only.
impl WindowHost for Window
Available on crate feature
winit only.