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.
pixbufSetOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> Text -> m Boolgi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Attaches a key/value pair as an option to a GdkPixbuf. If key already exists in the list of options attached to the pixbuf, the new value is ignored and FALSE is returned. Since: 2.2
toPixbuf :: (MonadIO m, IsPixbuf o) => o -> m Pixbufgi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf Cast to Pixbuf, for types for which this is known to be safe. For general casts, use castTo.
module GI.GdkPixbuf.Objects.
PixbufAnimation An opaque object representing an animation. The GdkPixBuf library provides a simple mechanism to load and represent animations. An animation is conceptually a series of frames to be displayed over time. The animation may not be represented as a series of frames internally; for example, it may be stored as a sprite and instructions for moving the sprite around a background. To display an animation you don't need to understand its representation, however; you just ask GdkPixbuf what should be displayed at a given point in time.
class (GObject o, IsDescendantOf PixbufAnimation o) =>
IsPixbufAnimation ogi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation Type class for types which can be safely cast to PixbufAnimation, for instance with toPixbufAnimation.
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation Memory-managed wrapper type.
PixbufAnimation :: ManagedPtr PixbufAnimation -> PixbufAnimationgi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation No documentation available.
pixbufAnimationGetHeight :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Int32gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation Queries the height of the bounding box of a pixbuf animation.
-
gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation Get an iterator for displaying an animation. The iterator provides the frames that should be displayed at a given time. startTime would normally come from getCurrentTime, and marks the beginning of animation playback. After creating an iterator, you should immediately display the pixbuf returned by pixbufAnimationIterGetPixbuf. Then, you should install a timeout (with g_timeout_add()) or by some other mechanism ensure that you'll update the image after pixbufAnimationIterGetDelayTime milliseconds. Each time the image is updated, you should reinstall the timeout with the new, possibly-changed delay time. As a shortcut, if startTime is NULL, the result of getCurrentTime will be used automatically. To update the image (i.e. possibly change the result of pixbufAnimationIterGetPixbuf to a new frame of the animation), call pixbufAnimationIterAdvance. If you're using PixbufLoader, in addition to updating the image after the delay time, you should also update it whenever you receive the area_updated signal and pixbufAnimationIterOnCurrentlyLoadingFrame returns TRUE. In this case, the frame currently being fed into the loader has received new data, so needs to be refreshed. The delay time for a frame may also be modified after an area_updated signal, for example if the delay time for a frame is encoded in the data after the frame itself. So your timeout should be reinstalled after any area_updated signal. A delay time of -1 is possible, indicating "infinite".
pixbufAnimationGetStaticImage :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Pixbufgi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation Retrieves a static image for the animation. If an animation is really just a plain image (has only one frame), this function returns that image. If the animation is an animation, this function returns a reasonable image to use as a static unanimated image, which might be the first frame, or something more sophisticated depending on the file format. If an animation hasn't loaded any frames yet, this function will return NULL.
pixbufAnimationGetWidth :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Int32gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation Queries the width of the bounding box of a pixbuf animation.