Skip to main content

Crate katui_layout

Crate katui_layout 

Source
Expand description

Splits a cell rectangle along one axis into sized children.

Lengths take their exact cells and percentages round down. Fill children split what is left, the first fills taking any leftover cell. A length longer than the area keeps its size and leaves the fills empty.

Enums§

Constraint
One child’s size claim.

Functions§

split_horizontal
Split area into columns, left to right.
split_vertical
Split area into rows, top to bottom.