Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class (GObject o, IsDescendantOf ContentProvider o) =>
IsContentProvider ogi-gdk4 GI.Gdk.Objects.ContentProvider Type class for types which can be safely cast to ContentProvider, for instance with toContentProvider.
-
gi-gdk4 GI.Gdk.Objects.ContentProvider Connect a signal handler for the contentChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after contentProvider #contentChanged callback
By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension. contentProviderContentChanged :: (HasCallStack, MonadIO m, IsContentProvider a) => a -> m ()gi-gdk4 GI.Gdk.Objects.ContentProvider Emits the contentChanged signal.
contentProviderGetValue :: (HasCallStack, MonadIO m, IsContentProvider a) => a -> GValue -> m ()gi-gdk4 GI.Gdk.Objects.ContentProvider Gets the contents of provider stored in value. The value will have been initialized to the GType the value should be provided in. This given GType does not need to be listed in the formats returned by contentProviderRefFormats. However, if the given GType is not supported, this operation can fail and G_IO_ERROR_NOT_SUPPORTED will be reported.
contentProviderNewForBytes :: (HasCallStack, MonadIO m) => Text -> Bytes -> m ContentProvidergi-gdk4 GI.Gdk.Objects.ContentProvider Create a content provider that provides the given bytes as data for the given mimeType.
contentProviderNewForValue :: (HasCallStack, MonadIO m) => GValue -> m ContentProvidergi-gdk4 GI.Gdk.Objects.ContentProvider Create a content provider that provides the given value.
contentProviderNewUnion :: (HasCallStack, MonadIO m) => Maybe [ContentProvider] -> m ContentProvidergi-gdk4 GI.Gdk.Objects.ContentProvider Creates a content provider that represents all the given providers. Whenever data needs to be written, the union provider will try the given providers in the given order and the first one supporting a format will be chosen to provide it. This allows an easy way to support providing data in different formats. For example, an image may be provided by its file and by the image contents with a call such as
c code
gdk_content_provider_new_union ((GdkContentProvider *[2]) { gdk_content_provider_new_typed (G_TYPE_FILE, file), gdk_content_provider_new_typed (G_TYPE_TEXTURE, texture) }, 2);contentProviderRefFormats :: (HasCallStack, MonadIO m, IsContentProvider a) => a -> m ContentFormatsgi-gdk4 GI.Gdk.Objects.ContentProvider Gets the formats that the provider can provide its current contents in.
-
gi-gdk4 GI.Gdk.Objects.ContentProvider Gets the formats that the provider suggests other applications to store the data in. An example of such an application would be a clipboard manager. This can be assumed to be a subset of contentProviderRefFormats.
-
gi-gdk4 GI.Gdk.Objects.ContentProvider Asynchronously writes the contents of provider to stream in the given mimeType. When the operation is finished callback will be called. You must then call contentProviderWriteMimeTypeFinish to get the result of the operation. The given mime type does not need to be listed in the formats returned by contentProviderRefFormats. However, if the given GType is not supported, G_IO_ERROR_NOT_SUPPORTED will be reported. The given stream will not be closed.