#include <Fl_Progress.H>

Public Member Functions | |
| Fl_Progress (int x, int y, int w, int h, const char *l=0) | |
| The constructor creates the progress bar using the position, size, and label. | |
| float | maximum () const |
| Gets the maximum value in the progress widget. | |
| void | maximum (float v) |
| Sets the maximum value in the progress widget. | |
| float | minimum () const |
| Gets the minimum value in the progress widget. | |
| void | minimum (float v) |
| Sets the minimum value in the progress widget. | |
| float | value () const |
| Gets the current value in the progress widget. | |
| void | value (float v) |
| Sets the current value in the progress widget. | |
Protected Member Functions | |
| virtual void | draw () |
| Draws the progress bar. | |
| Fl_Progress::Fl_Progress | ( | int | X, | |
| int | Y, | |||
| int | W, | |||
| int | H, | |||
| const char * | L = 0 | |||
| ) |
The constructor creates the progress bar using the position, size, and label.
You can set the background color with color() and the progress bar color with selection_color(), or you can set both colors together with color(unsigned bg, unsigned sel).
The default colors are FL_BACKGROUND2_COLOR and FL_YELLOW, resp.
| void Fl_Progress::draw | ( | void | ) | [protected, virtual] |
| float Fl_Progress::maximum | ( | ) | const [inline] |
Gets the maximum value in the progress widget.
| void Fl_Progress::maximum | ( | float | v | ) | [inline] |
Sets the maximum value in the progress widget.
| float Fl_Progress::minimum | ( | ) | const [inline] |
Gets the minimum value in the progress widget.
| void Fl_Progress::minimum | ( | float | v | ) | [inline] |
Sets the minimum value in the progress widget.
| float Fl_Progress::value | ( | ) | const [inline] |
Gets the current value in the progress widget.
| void Fl_Progress::value | ( | float | v | ) | [inline] |
Sets the current value in the progress widget.
© 1998-2010 by Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for
any purpose, provided this copyright and permission notice are preserved.