BiasAbsoluteAlignment

@Immutable
data class BiasAbsoluteAlignment(val horizontalBias: Float, val verticalBias: Float) : Alignment

Places a child according to horizontal and vertical biases without mirroring under a right-to-left component orientation.

Constructors

Link copied to clipboard
constructor(horizontalBias: Float, verticalBias: Float)

Types

Link copied to clipboard
@Immutable
data class Horizontal(val bias: Float) : Alignment.Horizontal

A horizontal absolute alignment that ignores component orientation.

Properties

Link copied to clipboard

The bias across the width available to the child.

Link copied to clipboard

The bias down the height available to the child.

Functions

Link copied to clipboard
open override fun align(size: Dimension, space: Dimension, orientation: ComponentOrientation): Point

The child's offset from the top left of space, for a child of extent size in a container laid out under orientation.