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. PixbufAnimationIter :: ManagedPtr PixbufAnimationIter -> PixbufAnimationIter

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimationIter

    No documentation available.

  2. pixbufAnimationIterAdvance :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> Maybe TimeVal -> m Bool

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimationIter

    Possibly advances an animation to a new frame. Chooses the frame based on the start time passed to pixbufAnimationGetIter. currentTime would normally come from getCurrentTime, and must be greater than or equal to the time passed to pixbufAnimationGetIter, and must increase or remain unchanged each time pixbufAnimationIterGetPixbuf is called. That is, you can't go backward in time; animations only play forward. As a shortcut, pass NULL for the current time and getCurrentTime will be invoked on your behalf. So you only need to explicitly pass currentTime if you're doing something odd like playing the animation at double speed. If this function returns FALSE, there's no need to update the animation display, assuming the display had been rendered prior to advancing; if TRUE, you need to call pixbufAnimationIterGetPixbuf and update the display with the new pixbuf.

  3. pixbufAnimationIterGetDelayTime :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> m Int32

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimationIter

    Gets the number of milliseconds the current pixbuf should be displayed, or -1 if the current pixbuf should be displayed forever. The g_timeout_add() function conveniently takes a timeout in milliseconds, so you can use a timeout to schedule the next update. Note that some formats, like GIF, might clamp the timeout values in the image file to avoid updates that are just too quick. The minimum timeout for GIF images is currently 20 milliseconds.

  4. pixbufAnimationIterGetPixbuf :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> m Pixbuf

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimationIter

    Gets the current pixbuf which should be displayed. The pixbuf might not be the same size as the animation itself (pixbufAnimationGetWidth, pixbufAnimationGetHeight). This pixbuf should be displayed for pixbufAnimationIterGetDelayTime milliseconds. The caller of this function does not own a reference to the returned pixbuf; the returned pixbuf will become invalid when the iterator advances to the next frame, which may happen anytime you call pixbufAnimationIterAdvance. Copy the pixbuf to keep it (don't just add a reference), as it may get recycled as you advance the iterator.

  5. pixbufAnimationIterOnCurrentlyLoadingFrame :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> m Bool

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimationIter

    Used to determine how to respond to the area_updated signal on PixbufLoader when loading an animation. The ::area_updated signal is emitted for an area of the frame currently streaming in to the loader. So if you're on the currently loading frame, you will need to redraw the screen for the updated area.

  6. toPixbufAnimationIter :: (MonadIO m, IsPixbufAnimationIter o) => o -> m PixbufAnimationIter

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufAnimationIter

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

  7. module GI.GdkPixbuf.Objects.PixbufLoader

    Incremental image loader. GdkPixbufLoader provides a way for applications to drive the process of loading an image, by letting them send the image data directly to the loader instead of having the loader read the data from a file. Applications can use this functionality instead of gdk_pixbuf_new_from_file() or gdk_pixbuf_animation_new_from_file() when they need to parse image data in small chunks. For example, it should be used when reading an image from a (potentially) slow network connection, or when loading an extremely large file. To use GdkPixbufLoader to load an image, create a new instance, and call pixbufLoaderWrite to send the data to it. When done, pixbufLoaderClose should be called to end the stream and finalize everything. The loader will emit three important signals throughout the process:

    • PixbufLoader::sizePrepared will be emitted as soon as the image has enough information to determine the size of the image to be used. If you want to scale the image while loading it, you can call pixbufLoaderSetSize in response to this signal.
    • PixbufLoader::areaPrepared will be emitted as soon as the pixbuf of the desired has been allocated. You can obtain the GdkPixbuf instance by calling pixbufLoaderGetPixbuf. If you want to use it, simply acquire a reference to it. You can also call gdk_pixbuf_loader_get_pixbuf() later to get the same pixbuf.
    • PixbufLoader::areaUpdated will be emitted every time a region is updated. This way you can update a partially completed image. Note that you do not know anything about the completeness of an image from the updated area. For example, in an interlaced image you will need to make several passes before the image is done loading.

    Loading an animation

    Loading an animation is almost as easy as loading an image. Once the first PixbufLoader::areaPrepared signal has been emitted, you can call pixbufLoaderGetAnimation to get the PixbufAnimation instance, and then call and pixbufAnimationGetIter to get a PixbufAnimationIter to retrieve the pixbuf for the desired time stamp.

  8. class (GObject o, IsDescendantOf PixbufLoader o) => IsPixbufLoader o

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader

    Type class for types which can be safely cast to PixbufLoader, for instance with toPixbufLoader.

  9. newtype PixbufLoader

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader

    Memory-managed wrapper type.

  10. PixbufLoader :: ManagedPtr PixbufLoader -> PixbufLoader

    gi-gdkpixbuf GI.GdkPixbuf.Objects.PixbufLoader

    No documentation available.

Page 215 of many | Previous | Next