Align

data class Align(val main: Align.Main = Main.Start, val cross: Align.Cross = Cross.Center, val mode: Align.Mode = Mode.Horizontal, val pad: Vec2 = Vec2(6f, 6f), val maxRowSize: Int = 50)

Parameters

main

the main axis, for example the X axis in a Mode.Horizontal autolayout.

cross

the cross axis, for example the Y axis in a Mode.Horizontal autolayout.

mode

the mode for the autolayout. Horizontal fills from left to right, and Vertical fills from top to bottom.

pad

the padding between each item in the autolayout.

maxRowSize

the maximum row size to use if wrapping is required. set to 0 to specify you do not want to be wrapped.

Constructors

Link copied to clipboard
constructor(main: Align.Main = Main.Start, cross: Align.Cross = Cross.Center, mode: Align.Mode = Mode.Horizontal, px: Float, py: Float)
constructor(main: Align.Main = Main.Start, cross: Align.Cross = Cross.Center, mode: Align.Mode = Mode.Horizontal, pad: Vec2 = Vec2(6f, 6f), maxRowSize: Int = 50)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val maxRowSize: Int = 50
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "pad")
val pad: Vec2