.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Gtk2::ImageView::Anim 3pm" .TH Gtk2::ImageView::Anim 3pm "2017-07-23" "perl v5.26.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::ImageView::Anim \- Subclass of Gtk2::ImageView capable of playing .SH "DESCRIPTION" .IX Header "DESCRIPTION" Gtk2::ImageView::Anim is a subclass of Gtk2::ImageView that provies facilities for displaying and controlling an animation. .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 6 \& Glib::Object \& +\-\-\-\-Glib::InitiallyUnowned \& +\-\-\-\-Gtk2::Object \& +\-\-\-\-Gtk2::Widget \& +\-\-\-\-Gtk2::ImageView \& +\-\-\-\-Gtk2::ImageView::Anim .Ve .SH "INTERFACES" .IX Header "INTERFACES" .Vb 2 \& Glib::Object::_Unregistered::AtkImplementorIface \& Gtk2::Buildable .Ve .SH "METHODS" .IX Header "METHODS" .SS "widget or undef = Gtk2::ImageView::Anim\->\fBnew\fP" .IX Subsection "widget or undef = Gtk2::ImageView::Anim->new" Returns a new Gtk2::ImageView::Anim with the following default values: .IP "anim : \s-1NULL\s0" 4 .IX Item "anim : NULL" .PD 0 .IP "is_playing : \s-1FALSE\s0" 4 .IX Item "is_playing : FALSE" .PD .ie n .SS "pixbufanimation or undef = $aview\->\fBget_anim\fP" .el .SS "pixbufanimation or undef = \f(CW$aview\fP\->\fBget_anim\fP" .IX Subsection "pixbufanimation or undef = $aview->get_anim" Returns the current animation of the view. .ie n .SS "$aview\->\fBset_anim\fP ($anim)" .el .SS "\f(CW$aview\fP\->\fBset_anim\fP ($anim)" .IX Subsection "$aview->set_anim ($anim)" .IP "\(bu" 4 \&\f(CW$anim\fR (Gtk2::Gdk::PixbufAnimation) .PP Sets the pixbuf animation to play, or \s-1NULL\s0 to not play any animation. .PP The effect of this method is analoguous to \fIGtk2::ImageView::set_pixbuf()\fR. Fit mode is reset to \s-1GTK_FIT_SIZE_IF_LARGER\s0 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. .PP The default pixbuf animation is \s-1NULL.\s0 .IP "aview : a Gtk2::ImageView::Anim." 4 .IX Item "aview : a Gtk2::ImageView::Anim." .PD 0 .IP "anim : A pixbuf animation to play." 4 .IX Item "anim : A pixbuf animation to play." .PD .ie n .SS "boolean = $aview\->\fBget_is_playing\fP" .el .SS "boolean = \f(CW$aview\fP\->\fBget_is_playing\fP" .IX Subsection "boolean = $aview->get_is_playing" Returns \s-1TRUE\s0 if the animation is playing, \s-1FALSE\s0 otherwise. If there is no current animation, this method will always return \s-1FALSE.\s0 .ie n .SS "$aview\->\fBset_is_playing\fP ($playing)" .el .SS "\f(CW$aview\fP\->\fBset_is_playing\fP ($playing)" .IX Subsection "$aview->set_is_playing ($playing)" .IP "\(bu" 4 \&\f(CW$playing\fR (boolean) .PP Sets whether the animation should play or not. If there is no current animation this method does not have any effect. .IP "aview : a Gtk2::ImageView::Anim." 4 .IX Item "aview : a Gtk2::ImageView::Anim." .PD 0 .IP "playing : \s-1TRUE\s0 to play the animation, \s-1FALSE\s0 otherwise" 4 .IX Item "playing : TRUE to play the animation, FALSE otherwise" .PD .ie n .SS "$aview\->\fBstep\fP" .el .SS "\f(CW$aview\fP\->\fBstep\fP" .IX Subsection "$aview->step" 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? .IP "aview : a Gtk2::ImageView::Anim." 4 .IX Item "aview : a Gtk2::ImageView::Anim." .SH "SIGNALS" .IX Header "SIGNALS" .PD 0 .IP "\fBstep\fR (Gtk2::ImageView::Anim)" 4 .IX Item "step (Gtk2::ImageView::Anim)" .IP "\fBtoggle-running\fR (Gtk2::ImageView::Anim)" 4 .IX Item "toggle-running (Gtk2::ImageView::Anim)" .PD .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2::ImageView, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::ImageView .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2007 by Jeffrey Ratcliffe. .PP This software is licensed under the \s-1GPL\-3\s0; see Gtk2::ImageView for a full notice.