Gtk2::I...ew::Anim(3)

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

🌸 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 : a Gtk2::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 : a Gtk2::ImageView::Anim.
  • playing : TRUE to play the animation, FALSE otherwise.

🌟 $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 : a Gtk2::ImageView::Anim.

πŸ”₯ SIGNALS πŸ”₯

  • step (Gtk2::ImageView::Anim)
  • toggle-running (Gtk2::ImageView::Anim)

🌈 SEE ALSO 🌈

go read these too, iykyk:

  • Gtk2::ImageView
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::ImageView

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