Class ShadowNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ShadowNode extends RenderNode
A render node drawing one or more shadows behind its single child node.
  • Constructor Details

    • ShadowNode

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

      public ShadowNode(RenderNode child, @Nullable Shadow @Nullable [] shadows)
      Creates a GskRenderNode that will draw a child with the given shadows below it.
      Parameters:
      child - The node to draw
      shadows - The shadows to apply
  • Method Details

    • getType

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

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

      protected ShadowNode 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
    • getChild

      public RenderNode getChild()
      Retrieves the child GskRenderNode of the shadow node.
      Returns:
      the child render node
    • getNShadows

      public long getNShadows()
      Retrieves the number of shadows in the node.
      Returns:
      the number of shadows.
    • getShadow

      public Shadow getShadow(long i)
      Retrieves the shadow data at the given index i.
      Parameters:
      i - the given index
      Returns:
      the shadow data