Class OutsetShadowNode

All Implemented Interfaces:
PointerInterface

public class OutsetShadowNode extends RenderNode
A render node for an outset shadow.

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

  • Constructor Details

    • OutsetShadowNode

      public OutsetShadowNode(PointerContainer pointer)
    • OutsetShadowNode

      public OutsetShadowNode(@Nonnull RoundedRect outline, @Nonnull RGBA color, float dx, float dy, float spread, float blur_radius)
      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
      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 of the shadow.
      Returns:
      the blur radius, in pixels
    • getColor

      public RGBA getColor()
      Retrieves the color of the outset shadow.
      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
    • 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()