Skip to main content

viewport

Function viewport 

pub fn viewport<T>(_: (T, T)) -> (u32, u32)
where T: Into<f64>,
Expand description

A logical (width, height) as a harness viewport: fractions truncate and negative or NaN sizes become zero, so a float size names the same viewport it would as an integer.