Horizontal

@Immutable
data class Horizontal(val bias: Float) : Alignment.Horizontal

The horizontal half of a BiasAlignment; it is the one that reads the orientation.

Constructors

Link copied to clipboard
constructor(bias: Float)

Properties

Link copied to clipboard
val bias: Float

The bias across the width available to the child.

Functions

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

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

Link copied to clipboard
open operator override fun plus(other: Alignment.Vertical): Alignment

Combines this horizontal placement with the vertical other into a two-dimensional Alignment.