to_formats


Description:

public ContentFormats to_formats ()

Creates a new `GdkContentFormats` from the given this.

The given `GdkContentFormatsBuilder` is reset once this function returns; you cannot call this function multiple times on the same this instance.

This function is intended primarily for bindings. C code should use [method@Gdk.ContentFormatsBuilder.free_to_formats].

Parameters:

this

a `GdkContentFormats`Builder

Returns:

the newly created `GdkContentFormats` with all the formats added to this