Public Member Functions | |
void | maximum (double nm) |
double | maximum () |
void | minimum (double nm) |
double | minimum () |
void | position (double pos) |
double | position () |
ProgressBar (int x, int y, int w, int h, const char *lbl=0) | |
void | range (double min, double max, double step=1) |
bool | showtext () |
void | showtext (bool st) |
double | step () |
void | step (double step) |
Color | text_color () |
void | text_color (Color col) |
Protected Member Functions | |
void | draw () |
Protected Attributes | |
double | mMax |
double | mMin |
double | mPresent |
bool | mShowPct |
double | mStep |
Color | mTextColor |
ProgressBar::range | ( | double | min, | |
double | max, | |||
double | step = 1 | |||
) | [inline] |
A shorthand for minimum(), maximum() and step().
ProgressBar::step | ( | double | step | ) | [inline] |
Increase bar length with given step and redraw widget. If value goes out of minimum() and maximum() bounds, it will be ignored.
References fltk::redraw().
ProgressBar::minimum | ( | double | nm | ) | [inline] |
Set minimal value for in the progess widget.
ProgressBar::maximum | ( | double | nm | ) | [inline] |
Set maximal value for in the progess widget. It should represent operation length.
ProgressBar::position | ( | double | value | ) | [inline] |
Set position of bar in progress widget and redraw it. If value goes out of minimum()/maximum() bounds, it will be ignored.
References fltk::redraw().
ProgressBar::showtext | ( | bool | st | ) | [inline] |
Shows completition percentage inside progress widget.