Gtk2::I...ew::Anim(3)
πΈ Gtk2::ImageView::Anim π
okay bestie, welcome to the Gtk2::ImageView::Anim page, straight out of the User Contributed Perl Documentation. sit down, hydrate, and let's get into it β¨
β¨ NAME β¨
Gtk2::ImageView::Anim β a subclass of Gtk2::ImageView that's literally built to play animations π¬
π¦ DESCRIPTION π¦
so, Gtk2::ImageView::Anim is a subclass of Gtk2::ImageView, and it's giving... animation facilities. it provides the whole vibe for displaying and controlling an animation. that's the whole thing, that's the girlboss job description π
π HIERARCHY π
look at this family tree, she comes from good stock:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::ImageView
+----Gtk2::ImageView::Anim
π INTERFACES π
she also implements these, no big deal:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
π METHODS π
π widget or undef = Gtk2::ImageView::Anim->new
makes you a brand new Gtk2::ImageView::Anim, and she comes preloaded with these default values, periodt:
anim : NULL
is_playing : FALSE
π pixbufanimation or undef = $aview->get_anim
hands you back the current animation of the view. that's it, that's the method π«Ά
π $aview->set_anim ($anim)
$anim(Gtk2::Gdk::PixbufAnimation)
sets the pixbuf animation to play, or NULL if you'd rather not play any animation at all. valid, honestly.
the effect of this method is analoguous to Gtk2::ImageView::set_pixbuf(). fit mode gets reset to GTK_FIT_SIZE_IF_LARGER so the whole area of the animation fits in the view. and not one, not two, but three signals get emitted: first the Gtk2::ImageView will emit zoom-changed and then pixbuf-changed, and second, Gtk2::ImageView::Anim itself will emit anim-changed. three signals, one method, main character energy fr fr π₯
the default pixbuf animation is NULL.
aview: aGtk2::ImageView::Anim.anim: a pixbuf animation to play.
π boolean = $aview->get_is_playing
returns TRUE if the animation is playing, FALSE otherwise. and heads up bestie β if there's no current animation, this method will always return FALSE. no animation, no play, no exceptions π
π $aview->set_is_playing ($playing)
$playing(boolean)
sets whether the animation should play or not. and ngl, if there's no current animation, this method does not have any effect. it's giving "talking to a wall" π
aview: aGtk2::ImageView::Anim.playing:TRUEto play the animation,FALSEotherwise.
π $aview->step
steps the animation one frame forward. and if the animation is playing, it will be stopped. will it wrap around if the animation is at its last frame? honestly bestie, the manpage just leaves us hanging on that one π
aview: aGtk2::ImageView::Anim.
π₯ SIGNALS π₯
step(Gtk2::ImageView::Anim)toggle-running(Gtk2::ImageView::Anim)
π SEE ALSO π
go read these too, iykyk:
Gtk2::ImageViewGlib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ImageView
π COPYRIGHT π
Copyright (C) 2007 by Jeffrey Ratcliffe.
This software is licensed under the GPL-3; see Gtk2::ImageView for a full notice.
okay that's the whole page, you ate that π thanks for reading, love u, bye β¨
this was perl v5.42.0, dated 2025-07-25, and that's on periodt π ππ¦
π¦ where this page comes from
- fedora 43: perl-Gtk2-ImageView 0.05-35.fc43 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms