Gnome::Gdk4::N-ContentFormatsBuilder

#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------

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]------------------------------------------------------- #-------------------------------------------------------------------------------

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! )

#-------------------------------------------------------------------------------

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 )

#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------

Methods

#-------------------------------------------------------------------------------

add-formats

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

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

#-------------------------------------------------------------------------------

add-gtype

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

method add-gtype ( GType $type )
  • $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 )
  • $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 )

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 )

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 )

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 ( )

Gnome::Gdk4 v0.1.23

Authors

  • Marcel Timmerman

License

Artistic-2.0

Dependencies

Gnome::Gio:api<2>Gnome::GObject:api<2>Gnome::Glib:api<2>Gnome::N:api<2>

Test Dependencies

Provides

  • Gnome::Gdk4::ContentProvider
  • Gnome::Gdk4::Display
  • Gnome::Gdk4::Drag
  • Gnome::Gdk4::Drop
  • Gnome::Gdk4::MemoryTexture
  • Gnome::Gdk4::N-ContentFormats
  • Gnome::Gdk4::N-ContentFormatsBuilder
  • Gnome::Gdk4::N-FileList
  • Gnome::Gdk4::N-RGBA
  • Gnome::Gdk4::N-Rectangle
  • Gnome::Gdk4::R-Paintable
  • Gnome::Gdk4::Snapshot
  • Gnome::Gdk4::Surface
  • Gnome::Gdk4::T-contentformats
  • Gnome::Gdk4::T-drag
  • Gnome::Gdk4::T-enums
  • Gnome::Gdk4::T-keysyms
  • Gnome::Gdk4::T-paintable
  • Gnome::Gdk4::T-rgba
  • Gnome::Gdk4::T-texture
  • Gnome::Gdk4::T-types
  • Gnome::Gdk4::Texture

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.