Gdk.ContentFormatsBuilder¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gdk.ContentFormatsBuilder¶
A
GdkContentFormatsBuilder
is an auxiliary struct used to create newGdkContentFormats
, and should not be kept around.- classmethod new()[source]¶
- Returns:
a new
GdkContentFormatsBuilder
- Return type:
Create a new
GdkContentFormatsBuilder
object.The resulting builder would create an empty
GdkContentFormats
. Use addition functions to add types to it.
- add_formats(formats)[source]¶
- Parameters:
formats (
Gdk.ContentFormats
) – the formats to add
Appends all formats from formats to self, skipping those that already exist.
- add_gtype(type)[source]¶
- Parameters:
type (
GObject.GType
) – aGType
Appends type to self if it has not already been added.
- add_mime_type(mime_type)[source]¶
- Parameters:
mime_type (
str
) – a mime type
Appends mime_type to self if it has not already been added.
- ref()[source]¶
- Returns:
the given
GdkContentFormatsBuilder
with its reference count increased- Return type:
Acquires a reference on the given self.
This function is intended primarily for bindings.
GdkContentFormatsBuilder
objects should not be kept around.
- to_formats()[source]¶
- Returns:
the newly created
GdkContentFormats
with all the formats added to self- Return type:
Creates a new
GdkContentFormats
from the given self.The given
GdkContentFormatsBuilder
is reset once this function returns; you cannot call this function multiple times on the same self instance.This function is intended primarily for bindings. C code should use [method`Gdk`.ContentFormatsBuilder.free_to_formats].