1.4 <GdkPixbufSimpleAnim>

Class: <GdkPixbufSimpleAnim>

It derives from <GdkPixbufAnimation>.

An opaque struct representing a simple animation.

Properties

Property: pixbuf-simple-anim:loop self

Whether the animation should loop when it reaches the end.

Its value is a boolean.

Set it with (set! (pixbuf-simple-anim:loop self) value).

Procedures

Method: pixbuf-simple-anim:add-frame self pixbuf
Method: add-frame self pixbuf

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

self

Passed: a <GdkPixbufSimpleAnim>.

a <GdkPixbufSimpleAnim>

pixbuf

Passed: a <GdkPixbuf>.

the pixbuf to add

Method: pixbuf-simple-anim:get-loop? self ⇒ %return
Method: get-loop? self ⇒ %return

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

self

Passed: a <GdkPixbufSimpleAnim>.

a <GdkPixbufSimpleAnim>

%return

Returned: a boolean.

#t if the animation loops forever, #f otherwise

Procedure: pixbuf-simple-anim:new width height rate ⇒ %return

Creates a new, empty animation.

width

Passed: a 32-bit integer.

the width of the animation

height

Passed: a 32-bit integer.

the height of the animation

rate

Passed: a real number.

the speed of the animation, in frames per second

%return

Returned: a <GdkPixbufSimpleAnim>.

a newly allocated <GdkPixbufSimpleAnim>

Method: pixbuf-simple-anim:set-loop self loop
Method: set-loop self loop

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

self

Passed: a <GdkPixbufSimpleAnim>.

a <GdkPixbufSimpleAnim>

loop

Passed: a boolean.

whether to loop the animation