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. pixbufSetOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> Text -> m Bool

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

  2. toPixbuf :: (MonadIO m, IsPixbuf o) => o -> m Pixbuf

    gi-gdkpixbuf GI.GdkPixbuf.Objects.Pixbuf

    Cast to Pixbuf, for types for which this is known to be safe. For general casts, use castTo.

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

  4. class (GObject o, IsDescendantOf PixbufAnimation o) => IsPixbufAnimation o

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation

    Type class for types which can be safely cast to PixbufAnimation, for instance with toPixbufAnimation.

  5. newtype PixbufAnimation

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation

    Memory-managed wrapper type.

  6. PixbufAnimation :: ManagedPtr PixbufAnimation -> PixbufAnimation

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation

    No documentation available.

  7. pixbufAnimationGetHeight :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation

    Queries the height of the bounding box of a pixbuf animation.

  8. pixbufAnimationGetIter :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> Maybe TimeVal -> m PixbufAnimationIter

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

  9. pixbufAnimationGetStaticImage :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Pixbuf

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

  10. pixbufAnimationGetWidth :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimation

    Queries the width of the bounding box of a pixbuf animation.

Page 213 of many | Previous | Next