Interface GuiClipPath

All Known Implementing Classes:
GuiClipPath.Circle, GuiClipPath.Ellipse, GuiClipPath.Inset, GuiClipPath.Path, GuiClipPath.Polygon

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.

  • Method Details

    • referenceBox

      GuiClipPath.ReferenceBox referenceBox()
    • conservativeBounds

      GuiRect conservativeBounds(GuiRect reference)
    • contains

      default boolean contains(GuiRect reference, float x, float y)
      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

      static GuiClipPath.Inset inset(float inset)
    • inset

      static GuiClipPath.Inset inset(float top, float right, float bottom, float left, float radius)
    • circle

      static GuiClipPath.Circle circle(float radius, float centerX, float centerY)
    • ellipse

      static GuiClipPath.Ellipse ellipse(float radiusX, float radiusY, float centerX, float centerY)