1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A widget which indicates progress visually
7 <!-- ##### SECTION Long_Description ##### -->
9 The #GtkProgressBar is typically used to display the progress of a long
10 running operation. It provides a visual clue that processing
11 is underway. The #GtkProgressBar can be used in two different
12 modes: percentage mode and activity mode.
16 When an application can determine how much work needs to take place
17 (e.g. read a fixed number of bytes from a file) and can monitor its
18 progress, it can use the #GtkProgressBar in percentage mode and the user
19 sees a growing bar indicating the percentage of the work that has
20 been completed. In this mode, the application is required to call
21 gtk_progress_bar_set_fraction() periodically to update the progress bar.
25 When an application has no accurate way of knowing the amount of work
26 to do, it can use the #GtkProgressBar in activity mode, which shows activity
27 by a block moving back and forth within the progress area. In this mode,
28 the application is required to call gtk_progress_bar_pulse() perodically
29 to update the progress bar.
33 There is quite a bit of flexibility provided to control the appearance
34 of the #GtkProgressBar. Functions are provided to control the
35 orientation of the bar, optional text can be displayed along with
36 the bar, and the step size used in activity mode can be set.
39 <!-- ##### SECTION See_Also ##### -->
44 <!-- ##### SECTION Stability_Level ##### -->
47 <!-- ##### SECTION Image ##### -->
50 <!-- ##### STRUCT GtkProgressBar ##### -->
52 The #GtkProgressBar-struct struct contains private data only,
53 and should be accessed using the functions below.
57 <!-- ##### ARG GtkProgressBar:ellipsize ##### -->
62 <!-- ##### ARG GtkProgressBar:fraction ##### -->
67 <!-- ##### ARG GtkProgressBar:inverted ##### -->
72 <!-- ##### ARG GtkProgressBar:pulse-step ##### -->
77 <!-- ##### ARG GtkProgressBar:show-text ##### -->
82 <!-- ##### ARG GtkProgressBar:text ##### -->
87 <!-- ##### ARG GtkProgressBar:min-horizontal-bar-height ##### -->
92 <!-- ##### ARG GtkProgressBar:min-horizontal-bar-width ##### -->
97 <!-- ##### ARG GtkProgressBar:min-vertical-bar-height ##### -->
102 <!-- ##### ARG GtkProgressBar:min-vertical-bar-width ##### -->
107 <!-- ##### ARG GtkProgressBar:xspacing ##### -->
112 <!-- ##### ARG GtkProgressBar:yspacing ##### -->
117 <!-- ##### FUNCTION gtk_progress_bar_new ##### -->
119 Creates a new #GtkProgressBar.
123 @Returns: a #GtkProgressBar.
126 <!-- ##### FUNCTION gtk_progress_bar_pulse ##### -->
134 <!-- ##### FUNCTION gtk_progress_bar_set_fraction ##### -->
143 <!-- ##### FUNCTION gtk_progress_bar_get_fraction ##### -->
152 <!-- ##### FUNCTION gtk_progress_bar_set_inverted ##### -->
161 <!-- ##### FUNCTION gtk_progress_bar_get_inverted ##### -->
170 <!-- ##### FUNCTION gtk_progress_bar_set_show_text ##### -->
179 <!-- ##### FUNCTION gtk_progress_bar_get_show_text ##### -->
188 <!-- ##### FUNCTION gtk_progress_bar_set_text ##### -->
197 <!-- ##### FUNCTION gtk_progress_bar_get_text ##### -->
206 <!-- ##### FUNCTION gtk_progress_bar_set_ellipsize ##### -->
215 <!-- ##### FUNCTION gtk_progress_bar_get_ellipsize ##### -->
224 <!-- ##### FUNCTION gtk_progress_bar_set_pulse_step ##### -->
233 <!-- ##### FUNCTION gtk_progress_bar_get_pulse_step ##### -->