1Gtk2::ImageView::Anim(3U)ser Contributed Perl DocumentatiGotnk2::ImageView::Anim(3)
2
3
4
6 Gtk2::ImageView::Anim - Subclass of Gtk2::ImageView capable of playing
7 GIF animations.
8
10 Glib::Object
11 +----Glib::InitiallyUnowned
12 +----Gtk2::Object
13 +----Gtk2::Widget
14 +----Gtk2::ImageView
15 +----Gtk2::ImageView::Anim
16
18 Glib::Object::_Unregistered::AtkImplementorIface
19 Gtk2::Buildable
20
22 Gtk2::ImageView::Anim is a subclass of Gtk2::ImageView that provies
23 facilities for displaying and controlling an animation.
24
26 widget or undef = Gtk2::ImageView::Anim->new
27 Creates a new Gtk2::ImageView::Anim with default values. The
28 default values are:
29
30 anim : NULL
31 is_playing : FALSE
32
33 Returns
34
35 a new Gtk2::ImageView::Anim.
36
37 pixbufanimation or undef = $aview->get_anim
38 Returns the current animation of the view.
39
40 aview : a Gtk2::ImageView::Anim.
41
42 Returns
43
44 the current animation.
45
46 $aview->set_anim ($anim)
47 · $anim (Gtk2::Gdk::PixbufAnimation)
48
49 Sets the pixbuf animation to play, or NULL to not play any
50 animation.
51
52 The effect of this method is analoguous to
53 Gtk2::ImageView::set_pixbuf(). Fit mode is reset to
54 GTK_FIT_SIZE_IF_LARGER so that the whole area of the animation fits
55 in the view. Three signals are emitted, first the Gtk2::ImageView
56 will emit zoom-changed and then pixbuf-changed, second,
57 Gtk2::ImageView::Anim itself will emit anim-changed.
58
59 The default pixbuf animation is NULL.
60
61 aview : a Gtk2::ImageView::Anim.
62 anim : A pixbuf animation to play.
63
64 boolean = $aview->get_is_playing
65 Returns whether the animation is playing or not. If there is no
66 current animation, this method will always return FALSE.
67
68 aview : a Gtk2::ImageView::Anim.
69
70 Returns
71
72 TRUE if an animation is playing, FALSE otherwise.
73
74 $aview->set_is_playing ($playing)
75 · $playing (boolean)
76
77 Sets whether the animation should play or not. If there is no
78 current animation this method does not have any effect.
79
80 aview : a Gtk2::ImageView::Anim.
81 playing : TRUE to play the animation, FALSE otherwise
82
83 $aview->step
84 Steps the animation one frame forward. If the animation is playing
85 it will be stopped. Will it wrap around if the animation is at its
86 last frame?
87
88 aview : a Gtk2::ImageView::Anim.
89
91 toggle-running (Gtk2::ImageView::Anim)
92 step (Gtk2::ImageView::Anim)
93
95 Gtk2::ImageView, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
96 Gtk2::Widget, Gtk2::ImageView
97
99 Copyright (C) 2007 by Jeffrey Ratcliffe.
100
101 This software is licensed under the GPL-3; see Gtk2::ImageView for a
102 full notice.
103
105 Hey! The above document had some coding errors, which are explained
106 below:
107
108 Around line 47:
109 You forgot a '=back' before '=head3'
110
111 Around line 56:
112 =back without =over
113
114 Around line 71:
115 You forgot a '=back' before '=head3'
116
117 Around line 80:
118 =back without =over
119
120 Around line 123:
121 You forgot a '=back' before '=head3'
122
123 Around line 132:
124 =back without =over
125
126
127
128perl v5.12.0 2010-05-02 Gtk2::ImageView::Anim(3)