Class: GdkPixbuf::PixbufSimpleAnim

Inherits:
PixbufAnimation show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from PixbufAnimation

#get_iter, #height, #is_static_image, new_from_stream_async, #ref, #static_image, #unref, #width

Constructor Details

#initialize(width, height, rate) ⇒ GdkPixbuf::PixbufSimpleAnim

Creates a new, empty animation.

Parameters:

  • width (Integer)

    the width of the animation

  • height (Integer)

    the height of the animation

  • rate (GdkPixbuf::gfloat)

    the speed of the animation, in frames per second

Instance Method Details

#add_frame(pixbuf) ⇒ nil

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

Parameters:

Returns:

  • (nil)

#loopBoolean

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

Returns:

  • (Boolean)

    true if the animation loops forever, false otherwise

#loop=(loop) ⇒ Boolean

Whether the animation should loop when it reaches the end.

Parameters:

  • loop (Boolean)

Returns:

  • (Boolean)

    loop

  • (Boolean)

    loop

#loop?Boolean

Whether the animation should loop when it reaches the end.

Returns:

  • (Boolean)

    loop