Class LayoutPrefab
java.lang.Object
dev.prozilla.pine.core.entity.prefab.Prefab
dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
dev.prozilla.pine.core.entity.prefab.ui.LayoutPrefab
- Direct Known Subclasses:
TooltipPrefab
@Components({LayoutNode.class,Node.class,Transform.class})
public class LayoutPrefab
extends NodePrefab
Prefab for UI layouts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EdgeAlignment
protected boolean
protected Direction
protected LayoutNode.Distribution
protected DimensionBase
Fields inherited from class dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
absolutePosition, anchor, backgroundColor, border, borderImage, borderImageSlice, borderImageSliceFill, classes, color, margin, padding, passThrough, position, size, styleSheet, tooltipText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds this prefab's predefined components to a given entity and copies values from this prefab.void
setAlignment
(EdgeAlignment alignment) void
setArrangeChildren
(boolean arrangeChildren) void
setDirection
(Direction direction) void
setDistribution
(LayoutNode.Distribution distribution) void
setGap
(DimensionBase gap) Methods inherited from class dev.prozilla.pine.core.entity.prefab.ui.NodePrefab
addClass, addClasses, setAbsolutePosition, setAnchor, setBackgroundColor, setBackgroundColor, setBorder, setBorderImage, setColor, setColor, setDefaultPropertyValue, setMargin, setMargin, setMargin, setPadding, setPadding, setPadding, setPassThrough, setSize, setSize, setSize, setStyleSheet, setStyleSheet, setTooltipText
Methods inherited from class dev.prozilla.pine.core.entity.prefab.Prefab
instantiate, instantiate, setActive, setName, setTag
-
Field Details
-
direction
-
alignment
-
distribution
-
gap
-
arrangeChildren
protected boolean arrangeChildren
-
-
Constructor Details
-
LayoutPrefab
public LayoutPrefab()
-
-
Method Details
-
setDirection
-
setAlignment
-
setGap
-
setArrangeChildren
public void setArrangeChildren(boolean arrangeChildren) -
setDistribution
-
apply
Description copied from class:Prefab
Adds this prefab's predefined components to a given entity and copies values from this prefab.- Overrides:
apply
in classNodePrefab
-