Gtk2::G...mpleAnim(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

✨ 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:

  • Gtk2
  • Glib::Object
  • Gtk2::Gdk::PixbufAnimation

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