2 // "$Id: Fl_Progress.H 8306 2011-01-24 17:04:22Z matt $"
4 // Progress bar widget definitions.
6 // Copyright 2000-2010 by Michael Sweet.
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Library General Public License for more details.
18 // You should have received a copy of the GNU Library General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 // Please report all bugs and problems on the following page:
25 // http://www.fltk.org/str.php
29 Fl_Progress widget . */
31 #ifndef _Fl_Progress_H_
32 # define _Fl_Progress_H_
35 // Include necessary headers.
38 #include "Fl_Widget.H"
45 Displays a progress bar for the user.
47 class FL_EXPORT Fl_Progress : public Fl_Widget {
59 Fl_Progress(int x, int y, int w, int h, const char *l = 0);
61 /** Sets the maximum value in the progress widget. */
62 void maximum(float v) { maximum_ = v; redraw(); }
63 /** Gets the maximum value in the progress widget. */
64 float maximum() const { return (maximum_); }
66 /** Sets the minimum value in the progress widget. */
67 void minimum(float v) { minimum_ = v; redraw(); }
68 /** Gets the minimum value in the progress widget. */
69 float minimum() const { return (minimum_); }
71 /** Sets the current value in the progress widget. */
72 void value(float v) { value_ = v; redraw(); }
73 /** Gets the current value in the progress widget. */
74 float value() const { return (value_); }
77 #endif // !_Fl_Progress_H_
80 // End of "$Id: Fl_Progress.H 8306 2011-01-24 17:04:22Z matt $".