Align

constructor(main: Align.Main = Main.Start, cross: Align.Cross = Cross.Center, mode: Align.Mode = Mode.Horizontal, pad: Vec2 = Vec2(6f, 6f), 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.