Gtk2::ProgressBar(3p)

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 / static-nick / static-blurb)
    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 / 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.

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