gi-gdk-4.0.3: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Structs.ContentFormatsBuilder

Description

A ContentFormatsBuilder struct is an opaque struct. It is meant to not be kept around and only be used to create new ContentFormats objects.

Synopsis

Exported types

newtype ContentFormatsBuilder Source #

Memory-managed wrapper type.

Constructors

ContentFormatsBuilder (ManagedPtr ContentFormatsBuilder) 

Instances

Instances details
Eq ContentFormatsBuilder Source # 
Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

GBoxed ContentFormatsBuilder Source # 
Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

ManagedPtrNewtype ContentFormatsBuilder Source # 
Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

TypedObject ContentFormatsBuilder Source # 
Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

Methods

glibType :: IO GType

HasParentTypes ContentFormatsBuilder Source # 
Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

IsGValue (Maybe ContentFormatsBuilder) Source #

Convert ContentFormatsBuilder to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

type ParentTypes ContentFormatsBuilder Source # 
Instance details

Defined in GI.Gdk.Structs.ContentFormatsBuilder

type ParentTypes ContentFormatsBuilder = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

addFormats, addGtype, addMimeType, ref, toFormats, unref.

Getters

None.

Setters

None.

addFormats

contentFormatsBuilderAddFormats Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ContentFormatsBuilder

builder: a ContentFormatsBuilder

-> ContentFormats

formats: the formats to add

-> m () 

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

addGtype

contentFormatsBuilderAddGtype Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ContentFormatsBuilder

builder: a ContentFormatsBuilder

-> GType

type: a GType

-> m () 

Appends gtype to builder if it has not already been added.

addMimeType

contentFormatsBuilderAddMimeType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ContentFormatsBuilder

builder: a ContentFormatsBuilder

-> Text

mimeType: a mime type

-> m () 

Appends mimeType to builder if it has not already been added.

new

contentFormatsBuilderNew Source #

Create a new ContentFormatsBuilder object. The resulting builder would create an empty ContentFormats. Use addition functions to add types to it.

ref

contentFormatsBuilderRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ContentFormatsBuilder

builder: a ContentFormatsBuilder

-> m ContentFormatsBuilder

Returns: the given ContentFormatsBuilder with its reference count increased

Acquires a reference on the given builder.

This function is intended primarily for bindings. ContentFormatsBuilder objects should not be kept around.

toFormats

contentFormatsBuilderToFormats Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ContentFormatsBuilder

builder: a ContentFormatsBuilder

-> m ContentFormats

Returns: the newly created ContentFormats with all the formats added to builder

Creates a new ContentFormats from the given builder.

The given 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 gdk_content_formats_builder_free_to_formats().

unref

contentFormatsBuilderUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ContentFormatsBuilder

builder: a ContentFormatsBuilder

-> m () 

Releases a reference on the given builder.