Absolute

@Immutable
object Absolute

Arrangements for a Row that place children by physical position rather than reading order - the distinction Swing itself keeps between FlowLayout.LEFT and the reading-order FlowLayout.LEADING. Unlike their counterparts on Arrangement itself, none of these mirror the children's packing order under a right-to-left ComponentOrientation: they run left to right in declaration order whichever way the row reads. The two factories that take an Alignment.Horizontal are the exception - the alignment itself still resolves against the row's ComponentOrientation, so only the packing they align is absolute.

Properties

Link copied to clipboard

Keeps the children together and puts half the space left over on either side of the group, whatever the row's ComponentOrientation says.

Link copied to clipboard

Packs the children against the left edge, whatever the row's ComponentOrientation says.

Link copied to clipboard

Packs the children against the right edge, whatever the row's ComponentOrientation says.

Link copied to clipboard

Gives every child an equal gap of its own, so the gaps at the edges are half the gaps between, whatever the row's ComponentOrientation says.

Link copied to clipboard

Splits the space left over into equal gaps between the children, with none at either edge, whatever the row's ComponentOrientation says.

Link copied to clipboard

Splits the space left over into equal gaps between the children and at both edges, whatever the row's ComponentOrientation says.

Functions

Link copied to clipboard

Keeps the children together, packed left to right in declaration order whatever the row's ComponentOrientation says, and places the group as a whole at alignment along the row.

Link copied to clipboard

Holds space between two adjacent children and packs the group against the left edge, whatever the row's ComponentOrientation says. A negative space overlaps them.

Holds space between two adjacent children, packed left to right in declaration order whatever the row's ComponentOrientation says, and places the group as a whole at alignment along the row. A negative space overlaps them.

@Stable
fun spacedBy(space: Int, alignment: Alignment.Vertical): Arrangement.Vertical

Holds space between two adjacent children and places the group as a whole at alignment along the column. A negative space overlaps them.