Class MaskNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class MaskNode extends RenderNode
A render node masking one child node with another.
Since:
4.10
  • Constructor Details

    • MaskNode

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

      public MaskNode(RenderNode source, RenderNode mask, MaskMode maskMode)

      Creates a GskRenderNode that will mask a given node by another.

      The maskMode determines how the 'mask values' are derived from the colors of the mask. Applying the mask consists of multiplying the 'mask value' with the alpha of the source.

      Parameters:
      source - The source node to be drawn
      mask - The node to be used as mask
      maskMode - The mask mode to use
      Since:
      4.10
  • Method Details

    • getType

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

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

      protected MaskNode 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
    • getMask

      public RenderNode getMask()
      Retrieves the mask GskRenderNode child of the node.
      Returns:
      the mask child node
      Since:
      4.10
    • getMaskMode

      public MaskMode getMaskMode()
      Retrieves the mask mode used by node.
      Returns:
      the mask mode
      Since:
      4.10
    • getSource

      public RenderNode getSource()
      Retrieves the source GskRenderNode child of the node.
      Returns:
      the source child node
      Since:
      4.10