Class DmabufTexture

All Implemented Interfaces:
Paintable, Icon, LoadableIcon, Proxy

@Generated("org.javagi.JavaGI") public class DmabufTexture extends Texture implements Paintable, Icon, LoadableIcon

A GdkTexture representing a DMA buffer.

To create a GdkDmabufTexture, use the auxiliary DmabufTextureBuilder object.

Dma-buf textures can only be created on Linux.

Since:
4.14
  • Constructor Details

    • DmabufTexture

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

      public DmabufTexture()
      Create a new DmabufTexture.
  • Method Details

    • getType

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

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

      protected DmabufTexture 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 Texture
      Returns:
      the instance as if it were its parent type
    • builder

      public static DmabufTexture.Builder<? extends DmabufTexture.Builder> builder()
      A DmabufTexture.Builder object constructs a DmabufTexture with the specified properties. Use the various set...() methods to set properties, and finish construction with DmabufTexture.Builder.build().
      Returns:
      the builder object