Alignment

class Alignment


A class used to specify the position of a sized box inside an available space. This is often used to specify how a parent layout should place its children.

Summary

Nested types

Specifies how a parent should lay its children out horizontally, if the child has a width smaller than the parent.

value class Alignment.Vertical

Specifies how a parent should lay its children out vertically, if the child has a height smaller than the parent.

Public constructors

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public companion properties

Bottom

Added in 1.0.0
val BottomAlignment.Vertical

BottomCenter

Added in 1.0.0
val BottomCenterAlignment

BottomEnd

Added in 1.0.0
val BottomEndAlignment

BottomStart

Added in 1.0.0
val BottomStartAlignment

Center

Added in 1.0.0
val CenterAlignment

CenterEnd

Added in 1.0.0
val CenterEndAlignment

CenterHorizontally

Added in 1.0.0
val CenterHorizontallyAlignment.Horizontal

CenterStart

Added in 1.0.0
val CenterStartAlignment

CenterVertically

Added in 1.0.0
val CenterVerticallyAlignment.Vertical

End

Added in 1.0.0
val EndAlignment.Horizontal

Start

Added in 1.0.0
val StartAlignment.Horizontal

Top

Added in 1.0.0
val TopAlignment.Vertical

TopCenter

Added in 1.0.0
val TopCenterAlignment

TopEnd

Added in 1.0.0
val TopEndAlignment

TopStart

Added in 1.0.0
val TopStartAlignment

Public constructors

Alignment

Alignment(horizontal: Alignment.Horizontal, vertical: Alignment.Vertical)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

horizontal

Added in 1.0.0
val horizontalAlignment.Horizontal

vertical

Added in 1.0.0
val verticalAlignment.Vertical