Package org.polyfrost.polyui.unit
Class Align
-
- All Implemented Interfaces:
public final class Align
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAlign.Mainpublic enumAlign.Crosspublic enumAlign.Mode
-
Field Summary
Fields Modifier and Type Field Description private final Align.Mainmainprivate final Align.Crosscrossprivate final Align.Modemodeprivate final Vec2padprivate final IntegermaxRowSize
-
Constructor Summary
Constructors Constructor Description Align(Align.Main main, Align.Cross cross, Align.Mode mode, Vec2 pad, Integer maxRowSize)
-
Method Summary
Modifier and Type Method Description final Align.MaingetMain()final Align.CrossgetCross()final Align.ModegetMode()final Vec2pad()final IntegergetMaxRowSize()-
-
Constructor Detail
-
Align
Align(Align.Main main, Align.Cross cross, Align.Mode mode, Vec2 pad, Integer maxRowSize)
- 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.pad- the padding between each item in the autolayout.maxRowSize- the maximum row size to use if wrapping is required.
-
-
Method Detail
-
getMain
final Align.Main getMain()
-
getCross
final Align.Cross getCross()
-
getMode
final Align.Mode getMode()
-
getMaxRowSize
final Integer getMaxRowSize()
-
-
-
-