Gtk2::G...imation(3)
π NAME π
Gtk2::Gdk::PixbufAnimation β it's a lil wrapper around GdkPixbufAnimation, and bestie, it's exactly what it sounds like β¨
(also it lives in the User Contributed Perl Documentation, section 3, iykyk π )
π¦ HIERARCHY π¦
okay so the family tree is giving very much "one parent, one iconic child":
Glib::Object
+----Gtk2::Gdk::PixbufAnimation
πΈ METHODS πΈ
β¨ pixbufanimation = Gtk2::Gdk::PixbufAnimation->new_from_file ($filename)
$filenameβ the file name, and yes it's a localized file name, so mind your encodings π
π«Ά heads up: this one may croak with aGlib::Errorin$@if it fails. So like, wrap it or check$@, don't just rawdog it π
β¨ integer = $animation->get_height
gives you back an integer β the height. that's the whole thing. slay π
β¨ boolean = $animation->is_static_image
returns a boolean. is it a static image? the vibes will tell you π
β¨ pixbufanimationiter = $animation->get_iter ($start_time_seconds=0, $start_time_microseconds=0)
$start_time_secondsβ anintegerβ¨$start_time_microsecondsβ also anintegerβ¨
the seconds and microseconds values come from Time::HiRes, which has been standard since perl 5.8.0 β so like, you literally already have it, no cap π
and if both of them are undef or you just don't pass them at all? it uses the current time. easy π
β¨ pixbuf = $animation->get_static_image
hands you back a pixbuf. the static one. periodt π§
β¨ integer = $animation->get_width
returns an integer β the width. iconic, symmetrical, we love a matching pair π
π SEE ALSO π
Gtk2Glib::Object
go read those, they're the moment π«Ά
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team. π
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay bestie that's the whole page, ty for coming to my ted talk πΈ
this was served up by perl v5.42.0, dated 2025-07-25 β love that for us π β¨
π¦ 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