Klasse DmabufFormats

Alle implementierten Schnittstellen:
PointerInterface

public class DmabufFormats extends Record
Provides information about supported DMA buffer formats.

You can query whether a given format is supported with
[method@Gdk.DmabufFormats.contains] and you can iterate
over the list of all supported formats with
[method@Gdk.DmabufFormats.get_n_formats] and
[method@Gdk.DmabufFormats.get_format].

The list of supported formats is sorted by preference,
with the best formats coming first.

The list may contains (format, modifier) pairs where the modifier
is `DMA_FORMAT_MOD_INVALID`, indicating that **_implicit modifiers_**
may be used with this format.

See [class@Gdk.DmabufTextureBuilder] for more information
about DMA buffers.

Note that DMA buffers only exist on Linux.

https://docs.gtk.org/gdk4/struct.DmabufFormats.html

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • contains

      public boolean contains(int fourcc, long modifier)
      Returns whether a given format is contained in @formats.
      Parameter:
      fourcc - a format code
      modifier - a format modifier
      Gibt zurück:
      `TRUE` if the format specified by the arguments is part of @formats
    • equal

      public boolean equal(@Nullable DmabufFormats formats2)
      Returns whether @formats1 and @formats2 contain the
      same dmabuf formats, in the same order.
      Parameter:
      formats2 - another `GdkDmabufFormats`
      Gibt zurück:
      `TRUE` if @formats1 and @formats2 are equal
    • getNFormats

      public long getNFormats()
      Returns the number of formats that the @formats object
      contains.

      Note that DMA buffers are a Linux concept, so on other
      platforms, [method@Gdk.DmabufFormats.get_n_formats] will
      always return zero.
      Gibt zurück:
      the number of formats
    • ref

      public DmabufFormats ref()
      Increases the reference count of @formats.
      Gibt zurück:
      the passed-in object
    • unref

      public void unref()
      Decreases the reference count of @formats.

      When the reference count reaches zero,
      the object is freed.
    • 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()