Class InsetShadowNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class InsetShadowNode extends RenderNode
A render node for an inset shadow.
  • Constructor Details

    • InsetShadowNode

      public InsetShadowNode(MemorySegment address)
      Create a InsetShadowNode instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • InsetShadowNode

      public InsetShadowNode(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
      Creates a GskRenderNode that will render an inset shadow into the box given by outline.
      Parameters:
      outline - outline of the region containing the shadow
      color - color of the shadow
      dx - horizontal offset of shadow
      dy - vertical offset of shadow
      spread - how far the shadow spreads towards the inside
      blurRadius - how much blur to apply to the shadow
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the InsetShadowNode class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected InsetShadowNode asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class RenderNode
      Returns:
      the instance as if it were its parent type
    • getBlurRadius

      public float getBlurRadius()
      Retrieves the blur radius to apply to the shadow.
      Returns:
      the blur radius, in pixels
    • getColor

      public RGBA getColor()

      Retrieves the color of the inset shadow.

      The value returned by this function will not be correct if the render node was created for a non-sRGB color.

      Returns:
      the color of the shadow
    • getDx

      public float getDx()
      Retrieves the horizontal offset of the inset shadow.
      Returns:
      an offset, in pixels
    • getDy

      public float getDy()
      Retrieves the vertical offset of the inset shadow.
      Returns:
      an offset, in pixels
    • getOutline

      public RoundedRect getOutline()
      Retrieves the outline rectangle of the inset shadow.
      Returns:
      a rounded rectangle
    • getSpread

      public float getSpread()
      Retrieves how much the shadow spreads inwards.
      Returns:
      the size of the shadow, in pixels