Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A GdkContentFormatsBuilder
is an auxiliary struct used to create
new GdkContentFormats
, and should not be kept around.
Synopsis
- newtype ContentFormatsBuilder = ContentFormatsBuilder (ManagedPtr ContentFormatsBuilder)
- contentFormatsBuilderAddFormats :: (HasCallStack, MonadIO m) => ContentFormatsBuilder -> ContentFormats -> m ()
- contentFormatsBuilderAddGtype :: (HasCallStack, MonadIO m) => ContentFormatsBuilder -> GType -> m ()
- contentFormatsBuilderAddMimeType :: (HasCallStack, MonadIO m) => ContentFormatsBuilder -> Text -> m ()
- contentFormatsBuilderNew :: (HasCallStack, MonadIO m) => m ContentFormatsBuilder
- contentFormatsBuilderRef :: (HasCallStack, MonadIO m) => ContentFormatsBuilder -> m ContentFormatsBuilder
- contentFormatsBuilderToFormats :: (HasCallStack, MonadIO m) => ContentFormatsBuilder -> m ContentFormats
- contentFormatsBuilderUnref :: (HasCallStack, MonadIO m) => ContentFormatsBuilder -> m ()
Exported types
newtype ContentFormatsBuilder Source #
Memory-managed wrapper type.
ContentFormatsBuilder (ManagedPtr ContentFormatsBuilder) |
Instances
Methods
Click to display all available methods, including inherited ones
addFormats
contentFormatsBuilderAddFormats Source #
:: (HasCallStack, MonadIO m) | |
=> ContentFormatsBuilder |
|
-> ContentFormats |
|
-> m () |
Appends all formats from formats
to builder
, skipping those that
already exist.
addGtype
contentFormatsBuilderAddGtype Source #
:: (HasCallStack, MonadIO m) | |
=> ContentFormatsBuilder |
|
-> GType |
|
-> m () |
Appends type
to builder
if it has not already been added.
addMimeType
contentFormatsBuilderAddMimeType Source #
:: (HasCallStack, MonadIO m) | |
=> ContentFormatsBuilder |
|
-> Text |
|
-> m () |
Appends mimeType
to builder
if it has not already been added.
new
contentFormatsBuilderNew Source #
:: (HasCallStack, MonadIO m) | |
=> m ContentFormatsBuilder | Returns: a new |
Create a new GdkContentFormatsBuilder
object.
The resulting builder would create an empty GdkContentFormats
.
Use addition functions to add types to it.
ref
contentFormatsBuilderRef Source #
:: (HasCallStack, MonadIO m) | |
=> ContentFormatsBuilder |
|
-> m ContentFormatsBuilder | Returns: the given |
Acquires a reference on the given builder
.
This function is intended primarily for bindings.
GdkContentFormatsBuilder
objects should not be kept around.
toFormats
contentFormatsBuilderToFormats Source #
:: (HasCallStack, MonadIO m) | |
=> ContentFormatsBuilder |
|
-> m ContentFormats | Returns: the newly created |
Creates a new GdkContentFormats
from the given builder
.
The given GdkContentFormatsBuilder
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
ContentFormatsBuilder
.free_to_formats
().
unref
contentFormatsBuilderUnref Source #
:: (HasCallStack, MonadIO m) | |
=> ContentFormatsBuilder |
|
-> m () |
Releases a reference on the given builder
.