Interface GuiClipPath
- All Known Implementing Classes:
GuiClipPath.Circle, GuiClipPath.Ellipse, GuiClipPath.Inset, GuiClipPath.Path, GuiClipPath.Polygon
public sealed interface GuiClipPath
permits GuiClipPath.Inset, GuiClipPath.Circle, GuiClipPath.Ellipse, GuiClipPath.Polygon, GuiClipPath.Path
Immutable component clip path.
Basic shapes and tessellated SVG paths provide exact retained hit and mask geometry. The GPU compositor paints the same coverage into its pooled mask targets.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordCircle values are normalized to the reference box.static final recordEllipse radii and center coordinates are normalized to the reference box.static final recordstatic final recordRetained path data interpreted by a capable compositor path backend.static final recordstatic final recordPolygon whose points use normalized reference-box coordinates.static enum -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiClipPath.Circlecircle(float radius, float centerX, float centerY) conservativeBounds(GuiRect reference) default booleanTests a design-space point against the authored clip.static GuiClipPath.Ellipseellipse(float radiusX, float radiusY, float centerX, float centerY) default booleanstatic GuiClipPath.Insetinset(float inset) static GuiClipPath.Insetinset(float top, float right, float bottom, float left, float radius) default boolean
-
Method Details
-
referenceBox
GuiClipPath.ReferenceBox referenceBox() -
conservativeBounds
-
contains
Tests a design-space point against the authored clip. Basic shapes are exact; retained path data is flattened using the motion-path tessellator. -
portableExact
default boolean portableExact() -
inputExact
default boolean inputExact() -
inset
-
inset
-
circle
-
ellipse
-