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
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
int
boolean
void
void
onMouseEnter
(@Nullable LytFlowContent hoveredContent) pick
(int x, int y) void
removeChild
(LytNode node) void
render
(RenderContext context) void
render
(SimpleRenderContext context) Deprecated, for removal: This API element is subject to removal in a future version.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() -
hasLayout
public boolean hasLayout() -
invalidateLayout
public void invalidateLayout() -
updateLayout
-
render
Deprecated, for removal: This API element is subject to removal in a future version. -
render
-
renderBatch
public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) -
getHoveredElement
-
setHoveredElement
-
pick
-
onMouseEnter
- Overrides:
onMouseEnter
in classLytNode
-