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.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
-
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
-
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
-
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
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
pixbufNewFromXpmData :: (HasCallStack, MonadIO m) => [Text] -> m Pixbufgi-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.
-
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.
pixbufReadPixelBytes :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Bytesgi-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
pixbufReadPixels :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Word8gi-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
pixbufRemoveOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> m Boolgi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Removes the key/value pair option attached to a GdkPixbuf. Since: 2.36