Gtk2::ProgressBar(3)
π 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::AtkImplementorIfaceGtk2::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: default5: 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: default3: readable / writable / private / static-nick / static-blurb) β the increment used for each iteration in activity mode. (Deprecated)'adjustment'(Gtk2::Adjustment: defaultundef: readable / writable / private / static-nick / static-blurb) β theGtkAdjustmentconnected 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: default10: 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: default0: 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: default0.1: readable / writable / private / static-nick / static-blurb) β the fraction of total progress to move the bouncing block when pulsed π'text'(string: defaultundef: readable / writable / private / static-nick / static-blurb) β text to be displayed in the progress bar
π§ STYLE PROPERTIES π§
'min-horizontal-bar-height'(integer: default20: readable / writable) β minimum horizontal height of the progress bar'min-horizontal-bar-width'(integer: default150: readable / writable) β the minimum horizontal width of the progress bar'min-vertical-bar-height'(integer: default80: readable / writable) β the minimum vertical height of the progress bar'min-vertical-bar-width'(integer: default22: readable / writable) β the minimum vertical width of the progress bar'xspacing'(integer: default7: readable / writable) β extra spacing applied to the width of a progress bar.'yspacing'(integer: default7: 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 π
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
- 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