Skip to main content

Module dp

Module dp 

Source
Expand description

Density-independent layout units.

§Usage

Size public UI in Dp; conversions use the active runtime session density.

Structs§

Dp
Density-independent layout units, converted using the active session’s scale.

Functions§

scale_factor
Returns the active session density, or 1.0 outside a session.
set_scale_factor
Sets the positive finite density scale for the active UI session.