Class BlendNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class BlendNode extends RenderNode
A render node applying a blending function between its two child nodes.
  • Constructor Details

    • BlendNode

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

      public BlendNode(RenderNode bottom, RenderNode top, BlendMode blendMode)
      Creates a GskRenderNode that will use blendMode to blend the top node onto the bottom node.
      Parameters:
      bottom - The bottom node to be drawn
      top - The node to be blended onto the bottom node
      blendMode - The blend mode to use
  • Method Details

    • getType

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

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

      protected BlendNode 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
    • getBlendMode

      public BlendMode getBlendMode()
      Retrieves the blend mode used by node.
      Returns:
      the blend mode
    • getBottomChild

      public RenderNode getBottomChild()
      Retrieves the bottom GskRenderNode child of the node.
      Returns:
      the bottom child node
    • getTopChild

      public RenderNode getTopChild()
      Retrieves the top GskRenderNode child of the node.
      Returns:
      the top child node