Package guideme.document.block
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract LytRect
computeLayout
(LayoutContext context, int x, int y, int availableWidth) int
int
getMarginEnd
(LytAxis axis) int
int
int
getMarginStart
(LytAxis axis) int
boolean
final LytRect
layout
(LayoutContext context, int x, int y, int availableWidth) protected abstract void
onLayoutMoved
(int deltaX, int deltaY) Implement to react to layout previously computed bycomputeLayout(guideme.layout.LayoutContext, int, int, int)
being moved.abstract void
render
(RenderContext context) abstract void
renderBatch
(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) final void
setLayoutPos
(org.joml.Vector2i point) void
setMarginBottom
(int marginBottom) void
setMarginLeft
(int marginLeft) void
setMarginRight
(int marginRight) void
setMarginTop
(int marginTop) Methods inherited from class guideme.document.block.LytNode
getChildren, getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, removeChild, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildren
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
bounds
Content rectangle.
-
-
Constructor Details
-
LytBlock
public LytBlock()
-
-
Method Details
-
getBounds
-
isCulled
-
setLayoutPos
public final void setLayoutPos(org.joml.Vector2i point) -
layout
-
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
-
getMarginEnd
-
computeLayout
-
onLayoutMoved
protected abstract void onLayoutMoved(int deltaX, int deltaY) Implement to react to layout previously computed bycomputeLayout(guideme.layout.LayoutContext, int, int, int)
being moved. -
renderBatch
public abstract void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) -
render
-