ContentFormatsBuilder.toFormats

Creates a new [gdk.content_formats.ContentFormats] from the given builder.

The given [gdk.content_formats_builder.ContentFormatsBuilder] is 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 [gdk.content_formats_builder.ContentFormatsBuilder.freeToFormats].

Returns

the newly created [gdk.content_formats.ContentFormats]

with all the formats added to builder