Package guideme.document.block
Class LytDocument
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytDocument
- All Implemented Interfaces:
LytBlockContainer
,LytErrorSink
,Styleable
Layout document. Has a viewport and an overall size which may exceed the document size vertically, but not
horizontally.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
int
void
onMouseEnter
(@Nullable LytFlowContent hoveredContent) pick
(int x, int y) void
removeChild
(LytNode node) void
render
(SimpleRenderContext context) void
renderBatch
(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) void
setHoveredElement
(LytDocument.HitTestResult hoveredElement) void
updateLayout
(LayoutContext context, int availableWidth) Methods inherited from class guideme.document.block.LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, 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
-
Constructor Details
-
LytDocument
public LytDocument()
-
-
Method Details
-
getAvailableWidth
public int getAvailableWidth() -
getContentHeight
public int getContentHeight() -
getBlocks
-
getChildren
- Overrides:
getChildren
in classLytNode
-
getBounds
-
removeChild
- Overrides:
removeChild
in classLytNode
-
append
- Specified by:
append
in interfaceLytBlockContainer
-
clearContent
public void clearContent() -
updateLayout
-
render
-
renderBatch
public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) -
getHoveredElement
-
setHoveredElement
-
pick
-
onMouseEnter
- Overrides:
onMouseEnter
in classLytNode
-