Class OpacityNode

All Implemented Interfaces:
PointerInterface

public class OpacityNode extends RenderNode
A render node controlling the opacity of its single child node.

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

  • Constructor Details

    • OpacityNode

      public OpacityNode(PointerContainer pointer)
    • OpacityNode

      public OpacityNode(@Nonnull RenderNode child, float opacity)
      Creates a `GskRenderNode` that will drawn the @child with reduced
      @opacity.
      Parameters:
      child - The node to draw
      opacity - The opacity to apply
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getChild

      public RenderNode getChild()
      Gets the child node that is getting opacityed by the given @node.
      Returns:
      The child that is getting opacityed
    • getOpacity

      public float getOpacity()
      Gets the transparency factor for an opacity node.
      Returns:
      the opacity factor
    • 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()