Package ch.bailu.gtk.gdk
Klasse DmabufFormats
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.DmabufFormats
- Alle implementierten Schnittstellen:
PointerInterface
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.
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.
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
contains
(int fourcc, long modifier) Returns whether a given format is contained in @formats.boolean
equal
(DmabufFormats formats2) Returns whether @formats1 and @formats2 contain the
same dmabuf formats, in the same order.static ClassHandler
static int
long
Returns the number of formats that the @formats object
contains.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
ref()
Increases the reference count of @formats.void
unref()
Decreases the reference count of @formats.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
DmabufFormats
-
-
Methodendetails
-
getClassHandler
-
contains
public boolean contains(int fourcc, long modifier) Returns whether a given format is contained in @formats.- Parameter:
fourcc
- a format codemodifier
- a format modifier- Gibt zurück:
- `TRUE` if the format specified by the arguments is part of @formats
-
equal
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
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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-