---
name: "Gtk2::ProgressBar"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::ProgressBar"
---

# Gtk2::ProgressBar(3pm)

wrapper for GtkProgressBar

## NAME

Gtk2::ProgressBar - wrapper for GtkProgressBar

## HIERARCHY

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

## INTERFACES

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

## METHODS

### widget = Gtk2::ProgressBar-\>new

### ellipsizemode = $pbar-\>get\_ellipsize

Since: gtk+ 2.6

### $pbar-\>set\_ellipsize ($mode)

- •

  `$mode` (Pango::EllipsizeMode)

Since: gtk+ 2.6

### double = $pbar-\>get\_fraction

### $pbar-\>set\_fraction ($fraction)

- •

  `$fraction` (double)

### progressbarorientation = $pbar-\>get\_orientation

### $pbar-\>set\_orientation ($orientation)

- •

  `$orientation` (Gtk2::ProgressBarOrientation)

### $pbar-\>pulse

### 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)

  The number of blocks which can fit in the progress bar area in activity mode (Deprecated)

- 'activity-step' (Glib::UInt : default 3 : readable / writable / private)

  The increment used for each iteration in activity mode (Deprecated)

- 'adjustment' (Gtk2::Adjustment : default undef : readable / writable / private)

  The GtkAdjustment connected to the progress bar (Deprecated)

- 'bar-style' (Gtk2::ProgressBarStyle : default "continuous" : readable / writable / private)

  Specifies the visual style of the bar in percentage mode (Deprecated)

- 'discrete-blocks' (Glib::UInt : default 10 : readable / writable / private)

  The number of discrete blocks in a progress bar (when shown in the discrete style)

- 'ellipsize' (Pango::EllipsizeMode : default "none" : readable / writable / private)

  The preferred place to ellipsize the string, if the progress bar does not have enough room to display the entire string, if at all.

- 'fraction' (double : default 0 : readable / writable / private)

  The fraction of total work that has been completed

- 'orientation' (Gtk2::ProgressBarOrientation : default "left-to-right" : readable / writable / private)

  Orientation and growth direction of the progress bar

- 'pulse-step' (double : default 0.1 : readable / writable / private)

  The fraction of total progress to move the bouncing block when pulsed

- 'text' (string : default undef : readable / writable / private)

  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

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.
