Skip to main content

Module spacing

Module spacing 

Structs§

RhythmScale
The gaps of each Rhythm, each a step of the Spacing scale and scaled with it.
Spacing
The 4 px spacing scale every gap, inset and gutter is drawn from.

Enums§

Rhythm
How two neighbours relate, which decides how far apart they sit (HIG §7b). Layout containers take one (Column::with_rhythm, Row::with_rhythm) and resolve it against the theme they are laid out with, so the gap follows density, ui_scale and a custom spacing scale.
SpacingStep
A named step on the Spacing scale, for APIs that resolve a gap at layout time from the Theme they are handed (Spacer::token) rather than taking an unscaled pixel value from the caller.