Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
Creates GdkContentFormats objects.
GdkContentFormatsBuilder (Handle = null)
Create a new
GdkContentFormatsBuilderobject. The resulting builder would create an emptyGdkContentFormats. Use addition functions to add types to it.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.add_formats (object formats)
Appends all formats from @formats to @builder, skipping those that already exist.
formats is the formats to add.None.add_gtype (int type)
Appends @type to @builder if it has not already been added.
type is a GType.None.add_mime_type (string mime_type)
Appends @mime_type to @builder if it has not already been added.
mime_type is a mime type.None.free_to_formats ()
Creates a new
GdkContentFormatsfrom the current state of the given
and frees the @builder instance.the newly created GdkContentFormats with all the formats added toref ()
Acquires a reference on the given @builder. This function is intended primarily for bindings.
GdkContentFormatsBuilderobjects should not be kept around.
the given GdkContentFormatsBuilder with its reference count increased.to_formats ()
Creates a new
GdkContentFormatsfrom the given @builder. The givenGdkContentFormatsBuilderis reset once this function returns; you cannot call this function multiple times on the same @builder instance. This function is intended primarily for bindings. C code should use [method@Gdk.ContentFormatsBuilder.free_to_formats].
the newly created GdkContentFormats with all the formats added tounref ()
Releases a reference on the given @builder.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.