Gtk2::G...mpleAnim(3)
β¨ NAME β¨
Gtk2::Gdk::PixbufSimpleAnim β bestie, it's a lil wrapper for GdkPixbufSimpleAnim π
(also hi, you're reading the Gtk2::G...mpleAnim(3) page from the User Contributed Perl Documentation, welcome to the group chat π«Ά)
πΈ HIERARCHY πΈ
okay so the family tree is giving noble lineage, everyone say thank you Glib::Object:
Glib::Object
+----Gtk2::Gdk::PixbufAnimation
+----Gtk2::Gdk::PixbufSimpleAnim
so it's a Glib::Object at heart, then it's a Gtk2::Gdk::PixbufAnimation, and then it's the simple-anim version. three layers of iconic, no cap π
π METHODS π
π pixbufsimpleanim = Gtk2::Gdk::PixbufSimpleAnim->new ($width, $height, $rate)
the constructor!! make a brand new simple animation from scratch β¨ here's what you gotta hand it:
$width(integer) β how wide bestie is$height(integer) β how tall bestie is$rate(double) β the rate, the speed, the tempo, the main character pacing πβοΈ
π¦ $animation->add_frame ($pixbuf)
slap another frame onto the animation. that's it, that's the method π
$pixbuf(Gtk2::Gdk::Pixbuf) β the frame you're adding, obviously
β boolean = $animation->get_loop
does it loop or does it not, let's find out π
Since: gtk+ 2.18
πΈ $animation->set_loop ($loop)
tell the animation whether to loop. yes queen, go in circles forever if you want to π
$loop(boolean)
Since: gtk+ 2.18
π PROPERTIES π
'loop'(boolean : default false : readable / writable) β Whether the animation should loop when it reaches the end
so by default it does NOT loop, she plays once and she's done, one-woman show, no encore π but you can read it and write it, so flip it whenever you feel like it π
π SEE ALSO π
go read these too bestie, iykyk:
Gtk2Glib::ObjectGtk2::Gdk::PixbufAnimation
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay that's the whole page, mwah π this was perl v5.42.0, dated 2025-07-25, filed under Gtk2::G...mpleAnim(3) β and yes the name is literally truncated in the corner like that, we don't make the rules, periodt πβ¨
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms