Class OutsetShadowNode

All Implemented Interfaces:
Proxy

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

    • OutsetShadowNode

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

      public OutsetShadowNode(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
      Creates a GskRenderNode that will render an outset shadow around the box given by outline.
      Parameters:
      outline - outline of the region surrounded by 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 OutsetShadowNode class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected OutsetShadowNode 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 of the shadow.
      Returns:
      the blur radius, in pixels
    • getColor

      public RGBA getColor()

      Retrieves the color of the outset shadow.

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

      Returns:
      a color
    • getDx

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

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

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

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