Class ComponentTransferNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ComponentTransferNode extends RenderNode
A render node for applying a GskComponentTransfer for each color component of the child node.
Since:
4.20
  • Constructor Details

    • ComponentTransferNode

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

      public ComponentTransferNode(RenderNode child, ComponentTransfer r, ComponentTransfer g, ComponentTransfer b, ComponentTransfer a)
      Creates a render node that will apply component transfers to a child node.
      Parameters:
      child - The child to apply component transfers to
      r - transfer for the red component
      g - transfer for the green component
      b - transfer for the blue component
      a - transfer for the alpha component
      Since:
      4.20
  • Method Details

    • getType

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

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

      protected ComponentTransferNode 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()
      Gets the child node that is getting drawn by the given node.
      Returns:
      the child GskRenderNode
      Since:
      4.20
    • getTransfer

      public ComponentTransfer getTransfer(ColorChannel component)
      Gets the component transfer for one of the components.
      Parameters:
      component - the component to get the transfer for
      Returns:
      the GskComponentTransfer
      Since:
      4.20