Align
class Align(val main: Align.Main = Main.Start, val cross: Align.Cross = Cross.Center, val mode: Align.Mode = Mode.Horizontal, val padding: 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.
padding
the padding between each item in the autolayout.
max Row Size
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, padding: Vec2 = Vec2(6f, 6f), maxRowSize: Int = 50)