Class ColorMatrixNode

All Implemented Interfaces:
PointerInterface

public class ColorMatrixNode extends RenderNode
A render node controlling the color matrix of its single child node.

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

  • Constructor Details

    • ColorMatrixNode

      public ColorMatrixNode(PointerContainer pointer)
    • ColorMatrixNode

      public ColorMatrixNode(@Nonnull RenderNode child, @Nonnull Matrix color_matrix, @Nonnull Vec4 color_offset)
      Creates a `GskRenderNode` that will drawn the @child with
      @color_matrix.

      In particular, the node will transform the operation

      pixel = color_matrix * pixel + color_offset

      for every pixel.
      Parameters:
      child - The node to draw
      color_matrix - The matrix to apply
      color_offset - Values to add to the color
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getChild

      public RenderNode getChild()
      Gets the child node that is getting its colors modified by the given @node.
      Returns:
      The child that is getting its colors modified
    • getColorMatrix

      public Matrix getColorMatrix()
      Retrieves the color matrix used by the @node.
      Returns:
      a 4x4 color matrix
    • getColorOffset

      public Vec4 getColorOffset()
      Retrieves the color offset used by the @node.
      Returns:
      a color vector
    • 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()