Package guideme.scene
Class LytGuidebookScene
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytBox
guideme.scene.LytGuidebookScene
- All Implemented Interfaces:
LytBlockContainer
,LytErrorSink
,Styleable
Shows a pseudo-in-world scene within the guidebook.
-
Field Summary
Fields inherited from class guideme.document.block.LytBox
children, paddingBottom, paddingLeft, paddingRight, paddingTop
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LytRect
computeBoxLayout
(LayoutContext context, int x, int y, int availableWidth) byte[]
exportAsPng
(float scale, boolean hideAnnotations) @Nullable GuidebookScene
getScene()
boolean
boolean
void
setBackground
(ColorValue background) void
setFullWidth
(boolean fullWidth) void
setInteractive
(boolean interactive) void
setScene
(@Nullable GuidebookScene scene) protected LytVisitor.Result
visitChildren
(LytVisitor visitor, boolean includeOutOfTreeContent) Methods inherited from class guideme.document.block.LytBox
append, clearContent, computeLayout, getChildren, onLayoutMoved, removeChild, render, renderBatch, setPadding
Methods inherited from class guideme.document.block.LytBlock
getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isCulled, layout, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from class guideme.document.block.LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, 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.block.LytBlockContainer
appendError
Methods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytGuidebookScene
-
-
Method Details
-
getScene
-
setScene
-
computeBoxLayout
- Specified by:
computeBoxLayout
in classLytBox
-
setInteractive
public void setInteractive(boolean interactive) -
isInteractive
public boolean isInteractive() -
setBackground
-
isFullWidth
public boolean isFullWidth() -
setFullWidth
public void setFullWidth(boolean fullWidth) -
getPreferredSize
-
exportAsPng
public byte[] exportAsPng(float scale, boolean hideAnnotations) -
visitChildren
- Overrides:
visitChildren
in classLytNode
-