DmabufFormats.getNFormats

Returns the number of formats that the formats object contains.

Note that DMA buffers are a Linux concept, so on other platforms, gdk.dmabuf_formats.DmabufFormats.getNFormats will always return zero.

class DmabufFormats
size_t
getNFormats
()

Return Value

Type: size_t

the number of formats