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)
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 /
54       private)
55           The increment used for each iteration in activity mode (Deprecated)
56
57       'adjustment' (Gtk2::Adjustment : default undef : readable / writable /
58       private)
59           The GtkAdjustment connected to the progress bar (Deprecated)
60
61       'bar-style' (Gtk2::ProgressBarStyle : default "continuous" : readable /
62       writable / private)
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)
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)
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           The fraction of total work that has been completed
78
79       'orientation' (Gtk2::ProgressBarOrientation : default "left-to-right" :
80       readable / writable / private)
81           Orientation and growth direction of the progress bar
82
83       'pulse-step' (double : default 0.1 : readable / writable / private)
84           The fraction of total progress to move the bouncing block when
85           pulsed
86
87       'text' (string : default undef : readable / writable / private)
88           Text to be displayed in the progress bar
89

STYLE PROPERTIES

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

ENUMS AND FLAGS

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

SEE ALSO

136       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
137       Glib::Object::_Unregistered::GtkProgress
138
140       Copyright (C) 2003-2011 by the gtk2-perl team.
141
142       This software is licensed under the LGPL.  See Gtk2 for a full notice.
143
144
145
146perl v5.30.1                      2020-01-30              Gtk2::ProgressBar(3)
Impressum