Package guideme.document.interaction
Class LytWidget
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.interaction.LytWidget
- All Implemented Interfaces:
InteractiveElement,Styleable
Wraps an
AbstractWidget for use within the guidebook layout tree.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LytRectcomputeLayout(LayoutContext context, int x, int y, int availableWidth) getTooltip(float x, float y) net.minecraft.client.gui.components.AbstractWidgetbooleanmouseClicked(GuideUiHost screen, int x, int y, int button) booleanmouseMoved(GuideUiHost screen, int x, int y) booleanmouseReleased(GuideUiHost screen, int x, int y, int button) protected voidonLayoutMoved(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.voidrender(RenderContext context) voidrenderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) 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, setMarginTopMethods 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, visitChildrenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface guideme.document.interaction.InteractiveElement
mouseCaptureLostMethods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytWidget
public LytWidget(net.minecraft.client.gui.components.AbstractWidget widget)
-
-
Method Details
-
computeLayout
- Specified by:
computeLayoutin classLytBlock
-
onLayoutMoved
protected void onLayoutMoved(int deltaX, int deltaY) Description copied from class:LytBlockImplement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.- Specified by:
onLayoutMovedin classLytBlock
-
renderBatch
public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) - Specified by:
renderBatchin classLytBlock
-
render
-
mouseMoved
- Specified by:
mouseMovedin interfaceInteractiveElement
-
mouseClicked
- Specified by:
mouseClickedin interfaceInteractiveElement
-
mouseReleased
- Specified by:
mouseReleasedin interfaceInteractiveElement
-
getTooltip
- Specified by:
getTooltipin interfaceInteractiveElement- Parameters:
x- X position of the mouse in document coordinates.y- Y position of the mouse in document coordinates.
-
getWidget
public net.minecraft.client.gui.components.AbstractWidget getWidget()
-