Class Layouts

java.lang.Object
guideme.layout.Layouts

public final class Layouts extends Object
  • 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.