Jeffrey Ratcliffe > Gtk2-ImageView-0.04 > AnimView.xs

Download:
Gtk2-ImageView-0.04.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Gtk2-ImageView-0.05

DESCRIPTION ^

Gtk2::ImageView::Anim is a subclass of Gtk2::ImageView that provies facilities for displaying and controlling an animation.

Creates a new Gtk2::ImageView::Anim with default values. The default values are:

anim : NULL
is_playing : FALSE

Returns

a new Gtk2::ImageView::Anim.

Returns the current animation of the view.

aview : a Gtk2::ImageView::Anim.

Returns

the current animation.

Sets the pixbuf animation to play, or NULL to not play any animation.

The effect of this method is analoguous to Gtk2::ImageView::set_pixbuf(). Fit mode is reset to GTK_FIT_SIZE_IF_LARGER so that the whole area of the animation fits in the view. Three signals are emitted, first the Gtk2::ImageView will emit zoom-changed and then pixbuf-changed, second, Gtk2::ImageView::Anim itself will emit anim-changed.

The default pixbuf animation is NULL.

aview : a Gtk2::ImageView::Anim.
anim : A pixbuf animation to play.

Sets whether the animation should play or not. If there is no current animation this method does not have any effect.

aview : a Gtk2::ImageView::Anim.
playing : TRUE to play the animation, FALSE otherwise

Returns whether the animation is playing or not. If there is no current animation, this method will always return FALSE.

aview : a Gtk2::ImageView::Anim.

Returns

TRUE if an animation is playing, FALSE otherwise.

Steps the animation one frame forward. If the animation is playing it will be stopped. Will it wrap around if the animation is at its last frame?

aview : a Gtk2::ImageView::Anim.