Class LytBlock

java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
All Implemented Interfaces:
Styleable
Direct Known Subclasses:
LytBox, LytImage, LytItemImage, LytParagraph, 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)
    • 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)