Package guideme.document.block
Class LytBox
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytBox
- All Implemented Interfaces:
LytBlockContainer
,LytErrorSink
,Styleable
- Direct Known Subclasses:
LytAxisBox
,LytGuidebookScene
,LytItemGrid
,LytSlotGrid
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected int
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected abstract LytRect
computeBoxLayout
(LayoutContext context, int x, int y, int availableWidth) protected final LytRect
computeLayout
(LayoutContext context, int x, int y, int availableWidth) @Nullable SymbolicColor
protected void
onLayoutMoved
(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)
being moved.void
removeChild
(LytNode node) void
render
(RenderContext context) void
renderBatch
(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) void
setBackgroundColor
(@Nullable SymbolicColor backgroundColor) final void
setPadding
(int padding) void
setPaddingBottom
(int paddingBottom) void
setPaddingLeft
(int paddingLeft) void
setPaddingRight
(int paddingRight) void
setPaddingTop
(int paddingTop) Methods inherited from class guideme.document.block.LytBlock
getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isCulled, isFullWidth, layout, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setFullWidth, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from class guideme.document.block.LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, 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.document.block.LytBlockContainer
appendError
Methods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
children
-
paddingLeft
protected int paddingLeft -
paddingTop
protected int paddingTop -
paddingRight
protected int paddingRight -
paddingBottom
protected int paddingBottom
-
-
Constructor Details
-
LytBox
public LytBox()
-
-
Method Details
-
removeChild
- Overrides:
removeChild
in classLytNode
-
append
- Specified by:
append
in interfaceLytBlockContainer
-
clearContent
public void clearContent() -
computeBoxLayout
protected abstract LytRect computeBoxLayout(LayoutContext context, int x, int y, int availableWidth) -
computeLayout
- Specified by:
computeLayout
in classLytBlock
-
onLayoutMoved
protected void onLayoutMoved(int deltaX, int deltaY) Description copied from class:LytBlock
Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)
being moved.- Specified by:
onLayoutMoved
in classLytBlock
-
setPadding
public final void setPadding(int padding) -
setPaddingLeft
public void setPaddingLeft(int paddingLeft) -
setPaddingTop
public void setPaddingTop(int paddingTop) -
setPaddingRight
public void setPaddingRight(int paddingRight) -
setPaddingBottom
public void setPaddingBottom(int paddingBottom) -
getBackgroundColor
-
setBackgroundColor
-
getChildren
- Overrides:
getChildren
in classLytNode
-
renderBatch
public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) - Specified by:
renderBatch
in classLytBlock
-
render
-