Class LytGuiSprite
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytGuiSprite
- All Implemented Interfaces:
InteractiveElement, Styleable
Render a
GuiSprite.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LytRectcomputeLayout(LayoutContext context, int x, int y, int availableWidth) getColor()getSize()@Nullable GuiSpriteprotected voidonLayoutMoved(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(LayoutContext, int, int, int)being moved.voidrender(RenderContext context) voidsetColor(ColorValue color) voidsetSize(int width, int height) voidvoidMethods inherited from class 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 LytNode
getChildren, getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, removeChild, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildrenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InteractiveElement
getTooltip, mouseCaptureLost, mouseClicked, mouseMoved, mouseReleasedMethods inherited from interface Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytGuiSprite
public LytGuiSprite() -
LytGuiSprite
-
-
Method Details
-
getSprite
-
setSprite
-
getColor
-
setColor
-
getSize
-
setSize
-
setSize
public void setSize(int width, int height) -
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(LayoutContext, int, int, int)being moved.- Specified by:
onLayoutMovedin classLytBlock
-
render
-