Package guideme.layout
Class Layouts
java.lang.Object
guideme.layout.Layouts
-
Method Summary
Modifier and TypeMethodDescriptionstatic LytRect
horizontalLayout
(LayoutContext context, List<LytBlock> children, int x, int y, int availableWidth, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, int gap, AlignItems alignItems) Lays out all children along the horizontal axis, and returns the bounding box of the content area.static LytRect
verticalLayout
(LayoutContext context, List<LytBlock> children, int x, int y, int availableWidth, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, int gap, AlignItems alignItems) Lays out all children along the vertical axis, and returns the bounding box of the content area.
-
Method Details
-
verticalLayout
public static LytRect verticalLayout(LayoutContext context, List<LytBlock> children, int x, int y, int availableWidth, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, int gap, AlignItems alignItems) Lays out all children along the vertical axis, and returns the bounding box of the content area. -
horizontalLayout
public static LytRect horizontalLayout(LayoutContext context, List<LytBlock> children, int x, int y, int availableWidth, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, int gap, AlignItems alignItems) Lays out all children along the horizontal axis, and returns the bounding box of the content area.
-