Skip to main content

set_density

Function set_density 

Source
pub fn set_density(density: f32)
Expand description

Updates the current density scale factor.

This triggers a global layout invalidation when the value changes because density impacts layout, text measurement, and input thresholds.