Gtk2::Spinner(3)

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

πŸ’« Gtk2::Spinner β€” the manual page, but make it cute πŸ’«

okay bestie, so this is Gtk2::Spinner(3), straight out of the User Contributed Perl Documentation, and it's literally the Perl wrapper for GtkSpinner. That's it. That's the whole NAME vibe. She's little, she's round, she spins, we're obsessed. πŸŒ€βœ¨


🌸 HIERARCHY 🌸

the family tree is giving royalty, no cap. here's exactly who begat whom:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::DrawingArea
                      +----Gtk2::Spinner

so yeah, she's a DrawingArea at heart. main character energy all the way down. πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

she also shows up to these two parties:

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable

accessibility? iconic. buildable? iconic. πŸ’…


✨ METHODS ✨

πŸŽ€ widget = Gtk2::Spinner->new

bestie, you make a brand new spinner. that's the whole thing. fresh spinner, zero notes. 🫢

πŸ“ $spinner->start

okay so you call this and she starts spinning. the vibes? immaculate. the motion? perpetual. go off. πŸ”₯

πŸ’€ $spinner->stop

and when you've had enough of the spinning era, this one stops her. she will simply cease. periodt.


πŸ’– PROPERTIES πŸ’–

  • 'active' (boolean : default false : readable / writable) β€” is the spinner doing her little spin or not. that's literally the whole question. false by default, so she's lowkey just standing there until you say otherwise. πŸ™ˆ

🌈 STYLE PROPERTIES 🌈

these are the aesthetic knobs. the glow-up controls. 🎨

  • 'cycle-duration' (Glib::UInt : default 1000 : readable) β€” how long, in milliseconds, it takes for the spinner to complete one full loop. one thousand whole millis by default, iykyk. ⏱️
  • 'num-steps' (Glib::UInt : default 12 : readable) β€” how many steps the spinner takes to complete a full loop. and heads up: by default the animation completes a full cycle in one second (peep #GtkSpinner:cycle-duration for that whole situation). twelve lil steps, twelve lil moments. 🧚

πŸ‘€ SEE ALSO πŸ‘€

go read these too, they're all in the group chat:

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::DrawingArea


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

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

ngl the LGPL is doing the lord's work here. respect the elders. 🫑

and that's the whole page, bestie!! πŸ’œ this one shipped with perl v5.42.0, dated 2025-07-25, and it lives in your friendly neighbourhood Gtk2::Spinner(3). now go make something spin. β­πŸŒ€πŸŽ€

πŸ“¦ where this page comes from