3.3 <GdkContentFormatsBuilder>

Structure: <GdkContentFormatsBuilder>

Creates <GdkContentFormats> objects.

Procedures

Method: content-formats-builder:add-formats self formats
Method: add-formats self formats

Appends all formats from formats to self, skipping those that already exist.

self

Passed: a <GdkContentFormatsBuilder>.

a <GdkContentFormatsBuilder>

formats

Passed: a <GdkContentFormats>.

the formats to add

Method: content-formats-builder:add-gtype self type
Method: add-gtype self type

Appends type to self if it has not already been added.

self

Passed: a <GdkContentFormatsBuilder>.

a <GdkContentFormats>Builder

type

Passed: a class, or a GType number.

a GType

Method: content-formats-builder:add-mime-type self mime-type
Method: add-mime-type self mime-type

Appends mime-type to self if it has not already been added.

self

Passed: a <GdkContentFormatsBuilder>.

a <GdkContentFormatsBuilder>

mime-type

Passed: a string.

a mime type

Procedure: content-formats-builder:new ⇒ %return

Create a new <GdkContentFormatsBuilder> object.

The resulting builder would create an empty <GdkContentFormats>. Use addition functions to add types to it.

%return

Returned: a <GdkContentFormatsBuilder>.

a new <GdkContentFormatsBuilder>

Method: content-formats-builder:ref self ⇒ %return
Method: ref self ⇒ %return

Acquires a reference on the given self.

This function is intended primarily for bindings. <GdkContentFormatsBuilder> objects should not be kept around.

self

Passed: a <GdkContentFormatsBuilder>.

a <GdkContentFormatsBuilder>

%return

Returned: a <GdkContentFormatsBuilder>.

the given <GdkContentFormatsBuilder> with its reference count increased

Method: content-formats-builder:to-formats self ⇒ %return
Method: to-formats self ⇒ %return

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 Gdk.ContentFormatsBuilder.free_to_formats.

self

Passed: a <GdkContentFormatsBuilder>.

a <GdkContentFormats>Builder

%return

Returned: a <GdkContentFormats>.

the newly created <GdkContentFormats> with all the formats added to self

Method: content-formats-builder:unref self
Method: unref self

Releases a reference on the given self.

self

Passed: a <GdkContentFormatsBuilder>.

a <GdkContentFormatsBuilder>