ltk::types

Function set_density

Source
pub fn set_density(d: f32)
Expand description

Set the process-wide pixel density used by Length::dp (the WidgetScaling::Physical mode). Typically derived from the output’s physical DPI so dp sizes stay physically constant across displays. Default: 1.0.