Skip to main content

vw

Function vw 

Source
pub fn vw(percent: f32, window: &mut Window) -> Length
Expand description

Returns a Length corresponding to the specified percentage of the viewport’s width.

percent should be a value between 0.0 and 1.0.