Package guideme.document.block
Class LytParagraph
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytParagraph
- All Implemented Interfaces:
LytFlowContainer
,LytFlowParent
,LytErrorSink
,Styleable
- Direct Known Subclasses:
LytHeading
-
Field Summary
Modifier and TypeFieldDescriptionprotected final FlowBuilder
protected @Nullable LytFlowContent
protected int
protected int
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(LytFlowContent child) void
computeLayout
(LayoutContext context, int x, int y, int availableWidth) enumerateContentBounds
(LytFlowContent content) Gets a stream of all the bounding rectangles for given flow content.int
int
int
int
boolean
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
onMouseEnter
(@Nullable LytFlowContent hoveredContent) void
@Nullable LytFlowContent
pickContent
(int x, int y) @Nullable LytNode
pickNode
(int x, int y) void
render
(RenderContext context) void
renderBatch
(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) void
setPaddingBottom
(int paddingBottom) void
setPaddingLeft
(int paddingLeft) void
setPaddingRight
(int paddingRight) void
setPaddingTop
(int paddingTop) protected LytVisitor.Result
visitChildren
(LytVisitor visitor, boolean includeOutOfTreeContent) Methods inherited from class guideme.document.block.LytBlock
getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, layout, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from class guideme.document.block.LytNode
getChildren, getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, removeChild, setHoverStyle, setSourceNode, setStyle, tick, visit, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.document.flow.LytFlowParent
appendBreak, appendComponent, appendError, appendText
Methods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
-
paddingLeft
protected int paddingLeft -
paddingTop
protected int paddingTop -
paddingRight
protected int paddingRight -
paddingBottom
protected int paddingBottom -
hoveredContent
-
-
Constructor Details
-
LytParagraph
public LytParagraph()
-
-
Method Details
-
append
- Specified by:
append
in interfaceLytFlowParent
-
isCulled
-
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
-
onMouseEnter
- Overrides:
onMouseEnter
in classLytNode
-
onMouseLeave
public void onMouseLeave()- Overrides:
onMouseLeave
in classLytNode
-
pickNode
-
renderBatch
public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) - Specified by:
renderBatch
in classLytBlock
-
render
-
pickContent
- Specified by:
pickContent
in interfaceLytFlowContainer
-
enumerateContentBounds
Description copied from interface:LytFlowContainer
Gets a stream of all the bounding rectangles for given flow content. Since flow content may be wrapped, it may consist of several disjointed bounding boxes.- Specified by:
enumerateContentBounds
in interfaceLytFlowContainer
-
visitChildren
- Overrides:
visitChildren
in classLytNode
-
getContent
-
clearContent
public void clearContent() -
getPaddingLeft
public int getPaddingLeft() -
setPaddingLeft
public void setPaddingLeft(int paddingLeft) -
getPaddingTop
public int getPaddingTop() -
setPaddingTop
public void setPaddingTop(int paddingTop) -
getPaddingRight
public int getPaddingRight() -
setPaddingRight
public void setPaddingRight(int paddingRight) -
getPaddingBottom
public int getPaddingBottom() -
setPaddingBottom
public void setPaddingBottom(int paddingBottom)
-