GdkPixbuf.PixbufSimpleAnim

g GObject.Object GObject.Object GdkPixbuf.PixbufAnimation GdkPixbuf.PixbufAnimation GObject.Object->GdkPixbuf.PixbufAnimation GdkPixbuf.PixbufSimpleAnim GdkPixbuf.PixbufSimpleAnim GdkPixbuf.PixbufAnimation->GdkPixbuf.PixbufSimpleAnim

Subclasses:

None

Methods

Inherited:

GdkPixbuf.PixbufAnimation (10), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (width, height, rate)

add_frame (pixbuf)

get_loop ()

set_loop (loop)

Virtual Methods

Inherited:

GdkPixbuf.PixbufAnimation (4), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

loop

bool

r/w

Whether the animation should loop when it reaches the end

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GdkPixbuf.PixbufSimpleAnim(**kwargs)
Bases:

GdkPixbuf.PixbufAnimation

Abstract:

No

Structure:

GdkPixbuf.PixbufSimpleAnimClass

An opaque struct representing a simple animation.

classmethod new(width, height, rate)[source]
Parameters:
  • width (int) – the width of the animation

  • height (int) – the height of the animation

  • rate (float) – the speed of the animation, in frames per second

Returns:

a newly allocated GdkPixbuf.PixbufSimpleAnim

Return type:

GdkPixbuf.PixbufSimpleAnim

Creates a new, empty animation.

New in version 2.8.

add_frame(pixbuf)[source]
Parameters:

pixbuf (GdkPixbuf.Pixbuf) – the pixbuf to add

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

New in version 2.8.

get_loop()[source]
Returns:

True if the animation loops forever, False otherwise

Return type:

bool

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

New in version 2.18.

set_loop(loop)[source]
Parameters:

loop (bool) – whether to loop the animation

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

New in version 2.18.

Property Details

GdkPixbuf.PixbufSimpleAnim.props.loop
Name:

loop

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the animation should loop when it reaches the end.

New in version 2.18.