About my projects, examples and tutorials
Gnome::Gdk4::N-ContentFormatsBuilder

Gnome::Gdk4::N-ContentFormatsBuilder

Description§

A Gnome::Gdk4::N-ContentFormatsBuilder is an auxiliary struct used to create new Gnome::Gdk4::N-ContentFormats, and should not be kept around.

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-contentformatsbuilder§

Create a new Gnome::Gdk4::N-ContentFormatsBuilder object.

The resulting builder would create an empty Gnome::Gdk4::N-ContentFormats. Use addition functions to add types to it.

method new-contentformatsbuilder ( --> Gnome::Gdk4::ContentFormatsBuilder )
Code

Methods§

add-formats§

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

method add-formats ( N-Object $formats )
Code
  • $formats; the formats to add

add-gtype§

Appends $type to $builder if it has not already been added.

method add-gtype ( GType $type )
Code
  • $type; a Gnome::GObject::ContentFormatsBuilder.

add-mime-type§

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

method add-mime-type ( Str $mime-type )
Code
  • $mime-type; a mime type.

free-to-formats§

Creates a new Gnome::Gdk4::N-ContentFormats from the current state of the given $builder, and frees the $builder instance.

method free-to-formats (--> N-Object )
Code

Return value; the newly created Gnome::Gdk4::N-ContentFormats with all the formats added to $builder.

ref§

Acquires a reference on the given $builder.

This function is intended primarily for bindings. Gnome::Gdk4::N-ContentFormatsBuilder objects should not be kept around.

method ref (--> N-Object )
Code

Return value; the given Gnome::Gdk4::N-ContentFormatsBuilder with its reference count increased.

to-formats§

Creates a new Gnome::Gdk4::N-ContentFormats from the given $builder.

The given Gnome::Gdk4::N-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 .free-to-formats().

method to-formats (--> N-Object )
Code

Return value; the newly created Gnome::Gdk4::N-ContentFormats with all the formats added to $builder.

unref§

Releases a reference on the given $builder.

method unref ( )
Code