Class TextureNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TextureNode extends RenderNode
A render node for a GdkTexture.
  • Constructor Details

    • TextureNode

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

      public TextureNode(Texture texture, Rect bounds)

      Creates a GskRenderNode that will render the given texture into the area given by bounds.

      Note that GSK applies linear filtering when textures are scaled and transformed. See TextureScaleNode for a way to influence filtering.

      Parameters:
      texture - the GdkTexture
      bounds - the rectangle to render the texture into
  • Method Details

    • getType

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

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

      protected TextureNode 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
    • getTexture

      public Texture getTexture()
      Retrieves the GdkTexture used when creating this GskRenderNode.
      Returns:
      the GdkTexture