Class InsetShadowNode

All Implemented Interfaces:
PointerInterface

public class InsetShadowNode extends RenderNode
A render node for an inset shadow.

https://docs.gtk.org/gsk4/class.InsetShadowNode.html

  • Constructor Details

    • InsetShadowNode

      public InsetShadowNode(PointerContainer pointer)
    • InsetShadowNode

      public InsetShadowNode(@Nonnull RoundedRect outline, @Nonnull RGBA color, float dx, float dy, float spread, float blur_radius)
      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
      blur_radius - how much blur to apply to the shadow
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • 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.
      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
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()