gi-gdkpixbuf-2.0.14: GdkPixbuf bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GdkPixbuf.Objects.PixbufSimpleAnim

Contents

Description

An opaque struct representing a simple animation.

Synopsis

Exported types

Methods

addFrame

pixbufSimpleAnimAddFrame Source #

Arguments

:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a, IsPixbuf b) 
=> a

animation: a PixbufSimpleAnim

-> b

pixbuf: the pixbuf to add

-> m () 

Adds a new frame to animation. The pixbuf must have the dimensions specified when the animation was constructed.

Since: 2.8

getLoop

pixbufSimpleAnimGetLoop Source #

Arguments

:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) 
=> a

animation: a PixbufSimpleAnim

-> m Bool

Returns: True if the animation loops forever, False otherwise

Gets whether animation should loop indefinitely when it reaches the end.

Since: 2.18

new

pixbufSimpleAnimNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

width: the width of the animation

-> Int32

height: the height of the animation

-> Float

rate: the speed of the animation, in frames per second

-> m PixbufSimpleAnim

Returns: a newly allocated PixbufSimpleAnim

Creates a new, empty animation.

Since: 2.8

setLoop

pixbufSimpleAnimSetLoop Source #

Arguments

:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) 
=> a

animation: a PixbufSimpleAnim

-> Bool

loop: whether to loop the animation

-> m () 

Sets whether animation should loop indefinitely when it reaches the end.

Since: 2.18

Properties

loop