1Gtk2::ProgressBar(3)  User Contributed Perl Documentation Gtk2::ProgressBar(3)
2
3
4

NAME

6       Gtk2::ProgressBar - wrapper for GtkProgressBar
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Glib::Object::_Unregistered::GtkProgress
14                             +----Gtk2::ProgressBar
15

INTERFACES

17         Glib::Object::_Unregistered::AtkImplementorIface
18         Gtk2::Buildable
19

METHODS

21   widget = Gtk2::ProgressBar->new
22   ellipsizemode = $pbar->get_ellipsize
23       Since: gtk+ 2.6
24
25   $pbar->set_ellipsize ($mode)
26       •   $mode (Pango::EllipsizeMode)
27
28       Since: gtk+ 2.6
29
30   double = $pbar->get_fraction
31   $pbar->set_fraction ($fraction)
32       •   $fraction (double)
33
34   progressbarorientation = $pbar->get_orientation
35   $pbar->set_orientation ($orientation)
36       •   $orientation (Gtk2::ProgressBarOrientation)
37
38   $pbar->pulse
39   double = $pbar->get_pulse_step
40   $pbar->set_pulse_step ($fraction)
41       •   $fraction (double)
42
43   string or undef = $pbar->get_text
44   $pbar->set_text ($text)
45       •   $text (string or undef)
46

PROPERTIES

48       'activity-blocks' (Glib::UInt : default 5 : readable / writable /
49       private / static-nick / static-blurb)
50           The number of blocks which can fit in the progress bar area in
51           activity mode (Deprecated)
52
53       'activity-step' (Glib::UInt : default 3 : readable / writable / private
54       / static-nick / static-blurb)
55           The increment used for each iteration in activity mode (Deprecated)
56
57       'adjustment' (Gtk2::Adjustment : default undef : readable / writable /
58       private / static-nick / static-blurb)
59           The GtkAdjustment connected to the progress bar (Deprecated)
60
61       'bar-style' (Gtk2::ProgressBarStyle : default "continuous" : readable /
62       writable / private / static-nick / static-blurb)
63           Specifies the visual style of the bar in percentage mode
64           (Deprecated)
65
66       'discrete-blocks' (Glib::UInt : default 10 : readable / writable /
67       private / static-nick / static-blurb)
68           The number of discrete blocks in a progress bar (when shown in the
69           discrete style)
70
71       'ellipsize' (Pango::EllipsizeMode : default "none" : readable /
72       writable / private / static-nick / static-blurb)
73           The preferred place to ellipsize the string, if the progress bar
74           does not have enough room to display the entire string, if at all.
75
76       'fraction' (double : default 0 : readable / writable / private /
77       static-nick / static-blurb)
78           The fraction of total work that has been completed
79
80       'orientation' (Gtk2::ProgressBarOrientation : default "left-to-right" :
81       readable / writable / private / static-nick / static-blurb)
82           Orientation and growth direction of the progress bar
83
84       'pulse-step' (double : default 0.1 : readable / writable / private /
85       static-nick / static-blurb)
86           The fraction of total progress to move the bouncing block when
87           pulsed
88
89       'text' (string : default undef : readable / writable / private /
90       static-nick / static-blurb)
91           Text to be displayed in the progress bar
92

STYLE PROPERTIES

94       'min-horizontal-bar-height' (integer : default 20 : readable /
95       writable)
96           Minimum horizontal height of the progress bar
97
98       'min-horizontal-bar-width' (integer : default 150 : readable /
99       writable)
100           The minimum horizontal width of the progress bar
101
102       'min-vertical-bar-height' (integer : default 80 : readable / writable)
103           The minimum vertical height of the progress bar
104
105       'min-vertical-bar-width' (integer : default 22 : readable / writable)
106           The minimum vertical width of the progress bar
107
108       'xspacing' (integer : default 7 : readable / writable)
109           Extra spacing applied to the width of a progress bar.
110
111       'yspacing' (integer : default 7 : readable / writable)
112           Extra spacing applied to the height of a progress bar.
113

ENUMS AND FLAGS

115   enum Gtk2::ProgressBarOrientation
116       •   'left-to-right' / 'GTK_PROGRESS_LEFT_TO_RIGHT'
117
118       •   'right-to-left' / 'GTK_PROGRESS_RIGHT_TO_LEFT'
119
120       •   'bottom-to-top' / 'GTK_PROGRESS_BOTTOM_TO_TOP'
121
122       •   'top-to-bottom' / 'GTK_PROGRESS_TOP_TO_BOTTOM'
123
124   enum Gtk2::ProgressBarStyle
125       •   'continuous' / 'GTK_PROGRESS_CONTINUOUS'
126
127       •   'discrete' / 'GTK_PROGRESS_DISCRETE'
128
129   enum Pango::EllipsizeMode
130       •   'none' / 'PANGO_ELLIPSIZE_NONE'
131
132       •   'start' / 'PANGO_ELLIPSIZE_START'
133
134       •   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
135
136       •   'end' / 'PANGO_ELLIPSIZE_END'
137

SEE ALSO

139       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
140       Glib::Object::_Unregistered::GtkProgress
141
143       Copyright (C) 2003-2011 by the gtk2-perl team.
144
145       This software is licensed under the LGPL.  See Gtk2 for a full notice.
146
147
148
149perl v5.34.0                      2021-07-22              Gtk2::ProgressBar(3)
Impressum