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.

  1. class (GObject o, IsDescendantOf ContentProvider o) => IsContentProvider o

    gi-gdk4 GI.Gdk.Objects.ContentProvider

    Type class for types which can be safely cast to ContentProvider, for instance with toContentProvider.

  2. afterContentProviderContentChanged :: (IsContentProvider a, MonadIO m) => a -> ((?self :: a) => ContentProviderContentChangedCallback) -> m SignalHandlerId

    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.

  3. contentProviderContentChanged :: (HasCallStack, MonadIO m, IsContentProvider a) => a -> m ()

    gi-gdk4 GI.Gdk.Objects.ContentProvider

    Emits the contentChanged signal.

  4. 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.

  5. contentProviderNewForBytes :: (HasCallStack, MonadIO m) => Text -> Bytes -> m ContentProvider

    gi-gdk4 GI.Gdk.Objects.ContentProvider

    Create a content provider that provides the given bytes as data for the given mimeType.

  6. contentProviderNewForValue :: (HasCallStack, MonadIO m) => GValue -> m ContentProvider

    gi-gdk4 GI.Gdk.Objects.ContentProvider

    Create a content provider that provides the given value.

  7. contentProviderNewUnion :: (HasCallStack, MonadIO m) => Maybe [ContentProvider] -> m ContentProvider

    gi-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);
    

  8. contentProviderRefFormats :: (HasCallStack, MonadIO m, IsContentProvider a) => a -> m ContentFormats

    gi-gdk4 GI.Gdk.Objects.ContentProvider

    Gets the formats that the provider can provide its current contents in.

  9. contentProviderRefStorableFormats :: (HasCallStack, MonadIO m, IsContentProvider a) => a -> m ContentFormats

    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.

  10. contentProviderWriteMimeTypeAsync :: (HasCallStack, MonadIO m, IsContentProvider a, IsOutputStream b, IsCancellable c) => a -> Text -> b -> Int32 -> Maybe c -> Maybe AsyncReadyCallback -> m ()

    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.

Page 1071 of many | Previous | Next