[−][src]Function smithay_client_toolkit::get_surface_scale_factor
pub fn get_surface_scale_factor(surface: &WlSurface) -> i32
Returns the current suggested scale factor of a surface.
Panics if the surface was not created using Environment::create_surface
or
Environment::create_surface_with_dpi_callback
.