Class LytBlock

java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
All Implemented Interfaces:
Styleable
Direct Known Subclasses:
LytBox, LytGuiSprite, LytImage, LytItemImage, LytParagraph, LytPlaceholderBlock, LytSlot, LytTable, LytThematicBreak, LytWidget

public abstract class LytBlock extends LytNode
  • Field Details

    • bounds

      protected LytRect bounds
      Content rectangle.
  • Constructor Details

    • LytBlock

      public LytBlock()
  • Method Details

    • getBounds

      public LytRect getBounds()
      Specified by:
      getBounds in class LytNode
    • isCulled

      public boolean isCulled(LytRect viewport)
    • setLayoutPos

      public final void setLayoutPos(org.joml.Vector2i point)
    • layout

      public final LytRect layout(LayoutContext context, int x, int y, int availableWidth)
    • getMarginTop

      public int getMarginTop()
    • setMarginTop

      public void setMarginTop(int marginTop)
    • getMarginLeft

      public int getMarginLeft()
    • setMarginLeft

      public void setMarginLeft(int marginLeft)
    • getMarginRight

      public int getMarginRight()
    • setMarginRight

      public void setMarginRight(int marginRight)
    • getMarginBottom

      public int getMarginBottom()
    • setMarginBottom

      public void setMarginBottom(int marginBottom)
    • getMarginStart

      public int getMarginStart(LytAxis axis)
    • getMarginEnd

      public int getMarginEnd(LytAxis axis)
    • getBorderTop

      public BorderStyle getBorderTop()
    • setBorderTop

      public void setBorderTop(BorderStyle borderTop)
    • getBorderLeft

      public BorderStyle getBorderLeft()
    • setBorderLeft

      public void setBorderLeft(BorderStyle borderLeft)
    • getBorderRight

      public BorderStyle getBorderRight()
    • setBorderRight

      public void setBorderRight(BorderStyle borderRight)
    • getBorderBottom

      public BorderStyle getBorderBottom()
    • setBorderBottom

      public void setBorderBottom(BorderStyle borderBottom)
    • setBorder

      public void setBorder(BorderStyle style)
    • isFullWidth

      public boolean isFullWidth()
    • setFullWidth

      public void setFullWidth(boolean fullWidth)
    • computeLayout

      protected abstract LytRect computeLayout(LayoutContext context, int x, int y, int availableWidth)
    • onLayoutMoved

      protected abstract void onLayoutMoved(int deltaX, int deltaY)
      Implement to react to layout previously computed by computeLayout(guideme.layout.LayoutContext, int, int, int) being moved.
    • renderBatch

      public abstract void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers)
    • render

      public abstract void render(RenderContext context)