Gdk.ContentFormatsBuilder¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gdk.ContentFormatsBuilder¶
Creates
GdkContentFormatsobjects.- classmethod new()[source]¶
- Returns:
a new
GdkContentFormatsBuilder- Return type:
Create a new
GdkContentFormatsBuilderobject.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
GdkContentFormatsBuilderwith its reference count increased- Return type:
Acquires a reference on the given self.
This function is intended primarily for bindings.
GdkContentFormatsBuilderobjects should not be kept around.
- to_formats()[source]¶
- Returns:
the newly created
GdkContentFormatswith all the formats added to self- Return type:
Creates a new
GdkContentFormatsfrom the given self.The given
GdkContentFormatsBuilderis 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].