Class IsolationNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class IsolationNode extends RenderNode
A render node that isolates its child from surrounding rendernodes.
Since:
4.22
  • Constructor Details

    • IsolationNode

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

      public IsolationNode(RenderNode child, Set<Isolation> isolations)

      Creates a GskRenderNode that isolates the drawing operations of the child from surrounding ones.

      You can express "everything but these flags" in a forward compatible way by using bit math: GSK_ISOLATION_ALL & ~(GSK_ISOLATION_BACKGROUND | GSK_ISOLATION_COPY_PASTE) will isolate everything but background and copy/paste.

      For the available isolations, see Gsk.Isolation.

      Parameters:
      child - The child
      isolations - features to isolate
      Since:
      4.22
    • IsolationNode

      public IsolationNode(RenderNode child, Isolation... isolations)

      Creates a GskRenderNode that isolates the drawing operations of the child from surrounding ones.

      You can express "everything but these flags" in a forward compatible way by using bit math: GSK_ISOLATION_ALL & ~(GSK_ISOLATION_BACKGROUND | GSK_ISOLATION_COPY_PASTE) will isolate everything but background and copy/paste.

      For the available isolations, see Gsk.Isolation.

      Parameters:
      child - The child
      isolations - features to isolate
      Since:
      4.22
  • Method Details

    • getType

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

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

      protected IsolationNode 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.22
    • getIsolations

      public Set<Isolation> getIsolations()
      Gets the isolation features that are enforced by this node.
      Returns:
      the isolation features
      Since:
      4.22