1Gtk2::ImageView::Anim(3U)ser Contributed Perl DocumentatiGotnk2::ImageView::Anim(3)
2
3
4

NAME

6       Gtk2::ImageView::Anim -  Subclass of Gtk2::ImageView capable of playing
7

DESCRIPTION

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

HIERARCHY

13         Glib::Object
14         +----Glib::InitiallyUnowned
15              +----Gtk2::Object
16                   +----Gtk2::Widget
17                        +----Gtk2::ImageView
18                             +----Gtk2::ImageView::Anim
19

INTERFACES

21         Glib::Object::_Unregistered::AtkImplementorIface
22         Gtk2::Buildable
23

METHODS

25   widget or undef = Gtk2::ImageView::Anim->new
26       Returns a new Gtk2::ImageView::Anim with the following default values:
27
28       anim : NULL
29       is_playing : FALSE
30
31   pixbufanimation or undef = $aview->get_anim
32       Returns the current animation of the view.
33
34   $aview->set_anim ($anim)
35       ·   $anim (Gtk2::Gdk::PixbufAnimation)
36
37       Sets the pixbuf animation to play, or NULL to not play any animation.
38
39       The effect of this method is analoguous to
40       Gtk2::ImageView::set_pixbuf(). Fit mode is reset to
41       GTK_FIT_SIZE_IF_LARGER so that the whole area of the animation fits in
42       the view. Three signals are emitted, first the Gtk2::ImageView will
43       emit zoom-changed and then pixbuf-changed, second,
44       Gtk2::ImageView::Anim itself will emit anim-changed.
45
46       The default pixbuf animation is NULL.
47
48       aview : a Gtk2::ImageView::Anim.
49       anim : A pixbuf animation to play.
50
51   boolean = $aview->get_is_playing
52       Returns TRUE if the animation is playing, FALSE otherwise. If there is
53       no current animation, this method will always return FALSE.
54
55   $aview->set_is_playing ($playing)
56       ·   $playing (boolean)
57
58       Sets whether the animation should play or not. If there is no current
59       animation this method does not have any effect.
60
61       aview : a Gtk2::ImageView::Anim.
62       playing : TRUE to play the animation, FALSE otherwise
63
64   $aview->step
65       Steps the animation one frame forward. If the animation is playing it
66       will be stopped. Will it wrap around if the animation is at its last
67       frame?
68
69       aview : a Gtk2::ImageView::Anim.
70

SIGNALS

72       step (Gtk2::ImageView::Anim)
73       toggle-running (Gtk2::ImageView::Anim)
74

SEE ALSO

76       Gtk2::ImageView, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
77       Gtk2::Widget, Gtk2::ImageView
78
80       Copyright (C) 2007 by Jeffrey Ratcliffe.
81
82       This software is licensed under the GPL-3; see Gtk2::ImageView for a
83       full notice.
84
85
86
87perl v5.30.0                      2019-07-26          Gtk2::ImageView::Anim(3)
Impressum