Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Connect a signal handler for the closed signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on pixbufLoader #closed callback
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Connect a signal handler for the sizePrepared signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on pixbufLoader #sizePrepared callback
pixbufLoaderClose :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m ()gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Informs a pixbuf loader that no further writes with pixbufLoaderWrite will occur, so that it can free its internal loading structures. This function also tries to parse any data that hasn't yet been parsed; if the remaining data is partial or corrupt, an error will be returned. If FALSE is returned, error will be set to an error from the GDK_PIXBUF_ERROR or G_FILE_ERROR domains. If you're just cancelling a load rather than expecting it to be finished, passing NULL for error to ignore it is reasonable. Remember that this function does not release a reference on the loader, so you will need to explicitly release any reference you hold.
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Queries the PixbufAnimation that a pixbuf loader is currently creating. In general it only makes sense to call this function after the PixbufLoader::areaPrepared signal has been emitted by the loader. If the loader doesn't have enough bytes yet, and hasn't emitted the area-prepared signal, this function will return NULL.
pixbufLoaderGetFormat :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m (Maybe PixbufFormat)gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Obtains the available information about the format of the currently loading image file. Since: 2.2
pixbufLoaderGetPixbuf :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m (Maybe Pixbuf)gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Queries the Pixbuf that a pixbuf loader is currently creating. In general it only makes sense to call this function after the PixbufLoader::areaPrepared signal has been emitted by the loader; this means that enough data has been read to know the size of the image that will be allocated. If the loader has not received enough data via pixbufLoaderWrite, then this function returns NULL. The returned pixbuf will be the same in all future calls to the loader, so if you want to keep using it, you should acquire a reference to it. Additionally, if the loader is an animation, it will return the "static image" of the animation (see pixbufAnimationGetStaticImage).
pixbufLoaderNew :: (HasCallStack, MonadIO m) => m PixbufLoadergi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Creates a new pixbuf loader object.
pixbufLoaderNewWithMimeType :: (HasCallStack, MonadIO m) => Text -> m PixbufLoadergi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Creates a new pixbuf loader object that always attempts to parse image data as if it were an image of MIME type mimeType, instead of identifying the type automatically. This function is useful if you want an error if the image isn't the expected MIME type; for loading image formats that can't be reliably identified by looking at the data; or if the user manually forces a specific MIME type. The list of supported mime types depends on what image loaders are installed, but typically "image/png", "image/jpeg", "image/gif", "image/tiff" and "image/x-xpixmap" are among the supported mime types. To obtain the full list of supported mime types, call pixbufFormatGetMimeTypes on each of the PixbufFormat structs returned by pixbufGetFormats. Since: 2.4
pixbufLoaderNewWithType :: (HasCallStack, MonadIO m) => Text -> m PixbufLoadergi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Creates a new pixbuf loader object that always attempts to parse image data as if it were an image of type imageType, instead of identifying the type automatically. This function is useful if you want an error if the image isn't the expected type; for loading image formats that can't be reliably identified by looking at the data; or if the user manually forces a specific type. The list of supported image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call pixbufFormatGetName on each of the PixbufFormat structs returned by pixbufGetFormats.
pixbufLoaderSetSize :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> Int32 -> Int32 -> m ()gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader Causes the image to be scaled while it is loaded. The desired image size can be determined relative to the original size of the image by calling pixbufLoaderSetSize from a signal handler for the sizePrepared signal. Attempts to set the desired image size are ignored after the emission of the sizePrepared signal. Since: 2.2