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.

  1. pixbufNewFromStream :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Maybe b -> m (Maybe Pixbuf)

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a new pixbuf by loading an image from an input stream. The file format is detected automatically. If NULL is returned, then error will be set. The cancellable can be used to abort the operation from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned. Other possible errors are in the GDK_PIXBUF_ERROR and G_IO_ERROR domains. The stream is not closed. Since: 2.14

  2. pixbufNewFromStreamAsync :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a new pixbuf by asynchronously loading an image from an input stream. For more details see pixbufNewFromStream, which is the synchronous version of this function. When the operation is finished, callback will be called in the main thread. You can then call pixbufNewFromStreamFinish to get the result of the operation. Since: 2.24

  3. pixbufNewFromStreamAtScale :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Int32 -> Int32 -> Bool -> Maybe b -> m (Maybe Pixbuf)

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a new pixbuf by loading an image from an input stream. The file format is detected automatically. If NULL is returned, then error will be set. The cancellable can be used to abort the operation from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned. Other possible errors are in the GDK_PIXBUF_ERROR and G_IO_ERROR domains. The image will be scaled to fit in the requested size, optionally preserving the image's aspect ratio. When preserving the aspect ratio, a width of -1 will cause the image to be scaled to the exact given height, and a height of -1 will cause the image to be scaled to the exact given width. If both width and height are given, this function will behave as if the smaller of the two values is passed as -1. When not preserving aspect ratio, a width or height of -1 means to not scale the image at all in that dimension. The stream is not closed. Since: 2.14

  4. pixbufNewFromStreamAtScaleAsync :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Int32 -> Int32 -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a new pixbuf by asynchronously loading an image from an input stream. For more details see pixbufNewFromStreamAtScale, which is the synchronous version of this function. When the operation is finished, callback will be called in the main thread. You can then call pixbufNewFromStreamFinish to get the result of the operation. Since: 2.24

  5. pixbufNewFromStreamFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m (Maybe Pixbuf)

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Finishes an asynchronous pixbuf creation operation started with pixbufNewFromStreamAsync. Since: 2.24

  6. pixbufNewFromXpmData :: (HasCallStack, MonadIO m) => [Text] -> m Pixbuf

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a new pixbuf by parsing XPM data in memory. This data is commonly the result of including an XPM file into a program's C source.

  7. pixbufNewSubpixbuf :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m Pixbuf

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Creates a new pixbuf which represents a sub-region of src_pixbuf. The new pixbuf shares its pixels with the original pixbuf, so writing to one affects both. The new pixbuf holds a reference to src_pixbuf, so src_pixbuf will not be finalized until the new pixbuf is finalized. Note that if src_pixbuf is read-only, this function will force it to be mutable.

  8. pixbufReadPixelBytes :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Bytes

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Provides a Bytes buffer containing the raw pixel data; the data must not be modified. This function allows skipping the implicit copy that must be made if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. Since: 2.32

  9. pixbufReadPixels :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Word8

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Provides a read-only pointer to the raw pixel data. This function allows skipping the implicit copy that must be made if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. Since: 2.32

  10. pixbufRemoveOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> m Bool

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Removes the key/value pair option attached to a GdkPixbuf. Since: 2.36

Page 211 of many | Previous | Next