Class OpacityNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class OpacityNode extends RenderNode
A render node controlling the opacity of its single child node.
  • Constructor Details

    • OpacityNode

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

      public OpacityNode(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

    • getType

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

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

      protected OpacityNode 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 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