Expand description
Box-model helpers for padding, margins, insets, and aspect ratios.
Enums§
- Shrink
Axis - Axes affected when shrinking a box by its padding or margin.
Functions§
- apply_
aspect_ ratio - Derives the auto-sized axis from the other axis using
ratio. - inset_
rect - Insets a rectangle by
padding, clamping the resulting size to zero. - shrink_
by_ margin - Returns the content size after subtracting
marginfrom both axes. - shrink_
by_ padding - Returns the content size after subtracting
paddingfrom both axes.