Gdk.ContentFormatsBuilder¶
record (struct)
Creates GdkContentFormats objects.
Constructors¶
new¶
Create a new GdkContentFormatsBuilder object.
The resulting builder would create an empty GdkContentFormats.
Use addition functions to add types to it.
Methods¶
add_formats¶
Appends all formats from formats to builder, skipping those that
already exist.
Parameters:
formats— the formats to add
add_gtype¶
Appends type to builder if it has not already been added.
Parameters:
type— aGType
add_mime_type¶
Appends mime_type to builder if it has not already been added.
Parameters:
mime_type— a mime type
ref¶
Acquires a reference on the given builder.
This function is intended primarily for bindings.
GdkContentFormatsBuilder objects should not be kept around.
to_formats¶
Creates a new GdkContentFormats from the given builder.
The given GdkContentFormatsBuilder 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
ContentFormatsBuilder.free_to_formats.
unref¶
Releases a reference on the given builder.