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 Bottom: Alignment.Vertical

BottomCenter

Added in 1.0.0
val BottomCenter: Alignment

BottomEnd

Added in 1.0.0
val BottomEnd: Alignment

BottomStart

Added in 1.0.0
val BottomStart: Alignment

Center

Added in 1.0.0
val Center: Alignment

CenterEnd

Added in 1.0.0
val CenterEnd: Alignment

CenterHorizontally

Added in 1.0.0
val CenterHorizontally: Alignment.Horizontal

CenterStart

Added in 1.0.0
val CenterStart: Alignment

CenterVertically

Added in 1.0.0
val CenterVertically: Alignment.Vertical

End

Added in 1.0.0
val End: Alignment.Horizontal

Start

Added in 1.0.0
val Start: Alignment.Horizontal

Top

Added in 1.0.0
val Top: Alignment.Vertical

TopCenter

Added in 1.0.0
val TopCenter: Alignment

TopEnd

Added in 1.0.0
val TopEnd: Alignment

TopStart

Added in 1.0.0
val TopStart: Alignment

Public constructors

Alignment

Added in 1.2.0
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 horizontal: Alignment.Horizontal

vertical

Added in 1.0.0
val vertical: Alignment.Vertical