Gtk2::ProgressBar(3)

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

πŸ’– Gtk2::ProgressBar πŸ’–

okay so bestie, this is the Gtk2::ProgressBar page from the User Contributed Perl Documentation β€” it's the Perl wrapper for the GtkProgressBar situation, and honestly? it's giving "loading screen but make it fashion" ✨


🌸 NAME 🌸

Gtk2::ProgressBar β€” it's literally just a wrapper for GtkProgressBar, no cap 🫢


πŸ¦‹ HIERARCHY πŸ¦‹

so here's the family tree, the whole lineage, the ancestry.com situation:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Glib::Object::_Unregistered::GtkProgress
                      +----Gtk2::ProgressBar

look at her go, four generations deep and thriving πŸ’…


✨ INTERFACES ✨

she implements these, periodt:

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

πŸŽ€ METHODS πŸŽ€

widget = Gtk2::ProgressBar->new

make a brand new progress bar, fresh out the box 🌈

ellipsizemode = $pbar->get_ellipsize

gets the ellipsize mode.

Since: gtk+ 2.6

$pbar->set_ellipsize ($mode)

sets the ellipsize mode.

  • $mode (Pango::EllipsizeMode) β€” the mode in question, bestie
Since: gtk+ 2.6

double = $pbar->get_fraction

grabs the fraction, iykyk

$pbar->set_fraction ($fraction)

  • $fraction (double) β€” the fraction you're setting

progressbarorientation = $pbar->get_orientation

$pbar->set_orientation ($orientation)

  • $orientation (Gtk2::ProgressBarOrientation)

$pbar->pulse

the iconic bounce πŸ•Ί

double = $pbar->get_pulse_step

$pbar->set_pulse_step ($fraction)

  • $fraction (double)

string or undef = $pbar->get_text

$pbar->set_text ($text)

  • $text (string or undef)

πŸ”₯ PROPERTIES πŸ”₯

  • 'activity-blocks' (Glib::UInt : default 5 : readable / writable / private / static-nick / static-blurb) β€” the number of blocks which can fit in the progress bar area in activity mode. (Deprecated) β€” yes babe, deprecated, tread carefully πŸ’€
  • 'activity-step' (Glib::UInt : default 3 : readable / writable / private / static-nick / static-blurb) β€” the increment used for each iteration in activity mode. (Deprecated)
  • 'adjustment' (Gtk2::Adjustment : default undef : readable / writable / private / static-nick / static-blurb) β€” the GtkAdjustment connected to the progress bar. (Deprecated)
  • 'bar-style' (Gtk2::ProgressBarStyle : default "continuous" : readable / writable / private / static-nick / static-blurb) β€” specifies the visual style of the bar in percentage mode. (Deprecated)
  • 'discrete-blocks' (Glib::UInt : default 10 : readable / writable / private / static-nick / static-blurb) β€” the number of discrete blocks in a progress bar (when shown in the discrete style)
  • 'ellipsize' (Pango::EllipsizeMode : default "none" : readable / writable / private / static-nick / static-blurb) β€” the preferred place to ellipsize the string, if the progress bar does not have enough room to display the entire string, if at all. lowkey a mouthful but okay
  • 'fraction' (double : default 0 : readable / writable / private / static-nick / static-blurb) β€” the fraction of total work that has been completed πŸ“ˆ
  • 'orientation' (Gtk2::ProgressBarOrientation : default "left-to-right" : readable / writable / private / static-nick / static-blurb) β€” orientation and growth direction of the progress bar
  • 'pulse-step' (double : default 0.1 : readable / writable / private / static-nick / static-blurb) β€” the fraction of total progress to move the bouncing block when pulsed πŸ€
  • 'text' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” text to be displayed in the progress bar

🧚 STYLE PROPERTIES 🧚

  • 'min-horizontal-bar-height' (integer : default 20 : readable / writable) β€” minimum horizontal height of the progress bar
  • 'min-horizontal-bar-width' (integer : default 150 : readable / writable) β€” the minimum horizontal width of the progress bar
  • 'min-vertical-bar-height' (integer : default 80 : readable / writable) β€” the minimum vertical height of the progress bar
  • 'min-vertical-bar-width' (integer : default 22 : readable / writable) β€” the minimum vertical width of the progress bar
  • 'xspacing' (integer : default 7 : readable / writable) β€” extra spacing applied to the width of a progress bar.
  • 'yspacing' (integer : default 7 : readable / writable) β€” extra spacing applied to the height of a progress bar.

⭐ ENUMS AND FLAGS ⭐

enum Gtk2::ProgressBarOrientation

  • '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'

enum Gtk2::ProgressBarStyle

  • 'continuous' / 'GTK_PROGRESS_CONTINUOUS'
  • 'discrete' / 'GTK_PROGRESS_DISCRETE'

enum Pango::EllipsizeMode

  • 'none' / 'PANGO_ELLIPSIZE_NONE'
  • 'start' / 'PANGO_ELLIPSIZE_START'
  • 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
  • 'end' / 'PANGO_ELLIPSIZE_END'

πŸ‘‘ SEE ALSO πŸ‘‘

go check out these besties too, they're all part of the squad:

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Glib::Object::_Unregistered::GtkProgress


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!! this was perl v5.42.0, dated 2025-07-25, filed under Gtk2::ProgressBar(3) β€” slay, ily, go make a progress bar that actually finishes for once πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from