gi-gdkpixbuf-2.0.23: GdkPixbuf bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GdkPixbuf.Objects.PixbufSimpleAnim

Description

An opaque struct representing a simple animation.

Synopsis

Exported types

class (GObject o, IsDescendantOf PixbufSimpleAnim o) => IsPixbufSimpleAnim o Source #

Type class for types which can be safely cast to PixbufSimpleAnim, for instance with toPixbufSimpleAnim.

Instances

Instances details
(GObject o, IsDescendantOf PixbufSimpleAnim o) => IsPixbufSimpleAnim o Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

toPixbufSimpleAnim :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m PixbufSimpleAnim Source #

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

Methods

Overloaded 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

Whether the animation should loop when it reaches the end.

Since: 2.18

constructPixbufSimpleAnimLoop :: IsPixbufSimpleAnim o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “loop” property. This is rarely needed directly, but it is used by new.

getPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m Bool Source #

Get the value of the “loop” property. When overloading is enabled, this is equivalent to

get pixbufSimpleAnim #loop

setPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> Bool -> m () Source #

Set the value of the “loop” property. When overloading is enabled, this is equivalent to

set pixbufSimpleAnim [ #loop := value ]