Skip to main content

enter_device_scale

Function enter_device_scale 

pub fn enter_device_scale(scale: f64) -> DeviceScaleGuard
Expand description

Lay out at scale device pixels per logical pixel until the guard is dropped: a host enters it around its whole layout pass (solving and placing, with every tree a widget solves of its own), with its display’s scale. A scale that is not a finite positive number is 1.