gi-gdkpixbuf-2.0.29: GdkPixbuf bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GdkPixbuf.Objects.PixbufSimpleAnim

Description

An opaque struct representing a simple animation.

Synopsis

Exported types

newtype PixbufSimpleAnim Source #

Memory-managed wrapper type.

Constructors

PixbufSimpleAnim (ManagedPtr PixbufSimpleAnim) 

Instances

Instances details
Eq PixbufSimpleAnim Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

GObject PixbufSimpleAnim Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

ManagedPtrNewtype PixbufSimpleAnim Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

TypedObject PixbufSimpleAnim Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

Methods

glibType :: IO GType

HasParentTypes PixbufSimpleAnim Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

IsGValue (Maybe PixbufSimpleAnim) Source #

Convert PixbufSimpleAnim to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe PixbufSimpleAnim -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe PixbufSimpleAnim)

type ParentTypes PixbufSimpleAnim Source # 
Instance details

Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim

type ParentTypes PixbufSimpleAnim = '[PixbufAnimation, Object]

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

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, MonadIO m) => Bool -> m (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 ]