Skip to main content

ui_density

Function ui_density 

Source
pub fn ui_density(cx: &mut App) -> UiDensity
Expand description

Returns the current UiDensity setting. Use this to modify or show something in the UI other than spacing.

Do not use this to calculate spacing values.

Always use DynamicSpacing for spacing values.