Gtk2::C...rogress(3)

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

πŸ’– NAME πŸ’–

okay bestie, gather round, because today we're talking about Gtk2::CellRendererProgress β€” it's literally just a wrapper for GtkCellRendererProgress, no cap πŸŽ€


🌸 HIERARCHY 🌸

the family tree, and yes she has main character energy all the way down:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::CellRenderer
               +----Gtk2::CellRendererProgress

✨ METHODS ✨

πŸ¦‹ cellrenderer = Gtk2::CellRendererProgress->new

the one (1) method, and she ate πŸ’… make a fresh new Gtk2::CellRendererProgress, that's it, that's the whole vibe.


πŸ‘‘ PROPERTIES πŸ‘‘

every single one of these is readable / writable / private / static-nick / static-blurb β€” yes ALL of them, the whole squad is the same flavor πŸ“

  • 'orientation' (Gtk2::ProgressBarOrientation : default "left-to-right") β€” which way the bar points and which way it grows, like the bar's whole personality direction 🌈
  • 'pulse' (integer : default -1) β€” set this to positive values when you know something's happening but you have literally zero clue how much, so the bar just vibes and pulses instead 😭
  • 'text' (string : default undef) β€” the text sitting on top of the progress bar, her little caption πŸŽ€
  • 'text-xalign' (float : default 0.5) β€” horizontal text alignment, from 0 (left) to 1 (right). heads up bestie: it gets reversed for RTL layouts πŸ™ˆ
  • 'text-yalign' (float : default 0.5) β€” vertical text alignment, from 0 (top) to 1 (bottom), so she can sit high or low ⭐
  • 'value' (integer : default 0) β€” the actual value of the progress bar, the number that does the thing πŸ”₯

🌟 ENUMS AND FLAGS 🌟

enum Gtk2::ProgressBarOrientation

the four directions, pick your fighter:

  • 'left-to-right' / GTK_PROGRESS_LEFT_TO_RIGHT
  • 'right-to-left' / GTK_PROGRESS_RIGHT_TO_LEFT
  • 'bottom-to-top' / GTK_PROGRESS_BOTTOM_TO_TOP
  • 'top-to-bottom' / GTK_PROGRESS_TOP_TO_BOTTOM

πŸ’œ SEE ALSO πŸ’œ

go read these next, they're the group chat:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::CellRenderer

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 bestie, you're so welcome πŸ’–βœ¨

this was brought to you by perl v5.42.0, dated 2025-07-25, from the Gtk2::C...rogress(3) page in the User Contributed Perl Documentation β€” slay, mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from