Gtk2::G...ionIter(3)

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

πŸ’– NAME πŸ’–

okay so bestie, gather round β€” this is Gtk2::Gdk::PixbufAnimationIter, which is literally just a wrapper for GdkPixbufAnimationIter. that's it. that's the whole job. it's the little iterator dude who hands you frames of an animated pixbuf one at a time, and perl just wraps him up all pretty so you can talk to him. πŸ¦‹


🌈 HIERARCHY 🌈

the family tree, and yes it's giving noble lineage:

Glib::Object
+----Gtk2::Gdk::PixbufAnimationIter

so like, Glib::Object is the parent, and this class is the child that went off to art school. iconic behavior honestly. πŸ‘‘


✨ METHODS ✨

πŸŽ€ boolean = $iter->advance ($current_time_seconds=0, $current_time_microseconds=0)

this is the "bestie, move it along" method. you call it and it tells you whether things actually moved (a boolean, so true/false vibes). both args are optional and both default to 0, so you can just yell advance at it with no args and it'll cope. πŸ’…

  • $current_time_seconds β€” an integer, the seconds part of the time you're passing in. ⏱️
  • $current_time_microseconds β€” also an integer, the microseconds part. yes we're being precise, we're being extra, we're being micro. 🫢

πŸ”₯ integer = $iter->get_delay_time

hands you back an integer telling you how long to wait before you come back for more. patience is a virtue but also it's a number now. πŸ’œ

🌸 boolean = $iter->on_currently_loading_frame

returns a boolean answering the deeply philosophical question: "are we, like, on the frame that is currently loading rn?" peak main character energy. the frame is loading. you are on it. 😭

⭐ pixbuf = $iter->get_pixbuf

gives you the actual pixbuf. the goods. the frame itself. this is the payoff, bestie, this is what we came for. 🎁


πŸ‘€ SEE ALSO πŸ‘€

go bother these two if you need the bigger picture:

  • Gtk2
  • Glib::Object

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


and that's the whole page, no cap. this was perl v5.42.0, dated 2025-07-25, from the User Contributed Perl Documentation collection β€” so yeah, a real one, archived in the vaults of perldoc forever. go forth and iterate, queen. 🧚✨

πŸ“¦ where this page comes from