Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
contentFormatsGetMimeTypes :: (HasCallStack, MonadIO m) => ContentFormats -> m (Maybe [Text], CSize)gi-gdk4 GI.Gdk.Structs.ContentFormats Gets the mime types included in formats. Note that formats may not contain any mime types, in particular when they are empty. In that case Nothing will be returned.
contentFormatsMatch :: (HasCallStack, MonadIO m) => ContentFormats -> ContentFormats -> m Boolgi-gdk4 GI.Gdk.Structs.ContentFormats Checks if first and second have any matching formats.
contentFormatsMatchGtype :: (HasCallStack, MonadIO m) => ContentFormats -> ContentFormats -> m GTypegi-gdk4 GI.Gdk.Structs.ContentFormats Finds the first GType from first that is also contained in second. If no matching GType is found, G_TYPE_INVALID is returned.
-
gi-gdk4 GI.Gdk.Structs.ContentFormats Finds the first mime type from first that is also contained in second. If no matching mime type is found, Nothing is returned.
contentFormatsNew :: (HasCallStack, MonadIO m) => Maybe [Text] -> m ContentFormatsgi-gdk4 GI.Gdk.Structs.ContentFormats Creates a new GdkContentFormats from an array of mime types. The mime types must be valid and different from each other or the behavior of the return value is undefined. If you cannot guarantee this, use ContentFormatsBuilder instead.
contentFormatsNewForGtype :: (HasCallStack, MonadIO m) => GType -> m ContentFormatsgi-gdk4 GI.Gdk.Structs.ContentFormats Creates a new GdkContentFormats for a given GType.
contentFormatsParse :: (HasCallStack, MonadIO m) => Text -> m (Maybe ContentFormats)gi-gdk4 GI.Gdk.Structs.ContentFormats Parses the given string into GdkContentFormats and returns the formats. Strings printed via contentFormatsToString can be read in again successfully using this function. If string does not describe valid content formats, Nothing is returned. Since: 4.4
contentFormatsPrint :: (HasCallStack, MonadIO m) => ContentFormats -> String -> m ()gi-gdk4 GI.Gdk.Structs.ContentFormats Prints the given formats into a string for human consumption. The result of this function can later be parsed with contentFormatsParse.
contentFormatsRef :: (HasCallStack, MonadIO m) => ContentFormats -> m ContentFormatsgi-gdk4 GI.Gdk.Structs.ContentFormats Increases the reference count of a GdkContentFormats by one.
contentFormatsToString :: (HasCallStack, MonadIO m) => ContentFormats -> m Textgi-gdk4 GI.Gdk.Structs.ContentFormats Prints the given formats into a human-readable string. The resulting string can be parsed with contentFormatsParse. This is a small wrapper around contentFormatsPrint to help when debugging.