Function device_scale
pub fn device_scale() -> f32Expand description
The device pixels per logical pixel of the display a layout is for: every
tree the toolkit solves rounds its edges onto that grid
([solve_layout]), so an edge lands on a device pixel at 1.5 as at 2.
1 outside a host’s layout pass.