Google


class Fl_ProgressBox


Class Hierarchy

Include Files

    #include <FL/Fl_ProgressBox.H>
    

Description

This is a simple "progress bar" that you can use to show the progress of lengthy operations. You can use an arbitrary range, not just 0 to 100. You can also show (or not) the percentage as text in the middle (and still display a normal widget label too).

Methods

Fl_ProgressBox::Fl_ProgressBox(int x, int y, int w, int h, const char *label = 0)

Creates a new Fl_ProgressBox widget using the given position, size, and label string. You probably don't want to put your label inside the box, since it's going to be overridden when it gets drawn.

void Fl_ProgressBox::minimum(double)
double Fl_ProgressBox::minimum()

Get or set the minimum value of the range to be displayed.

void Fl_ProgressBox::maximum(double)
double Fl_ProgressBox::maximum()

Get or set the maximum value of the range to be displayed.

void Fl_ProgressBox::position(double)
double Fl_ProgressBox::position()

Set the position of the progress bar and redraw it. Poisition should be between the minimum and maximum values.

void Fl_ProgressBox::showtext(bool)
bool Fl_ProgressBox::showtext()

Controls whether or not a percentage text is displayed within the bar. Text is displayed in the textcolor() color.

void Fl_ProgressBox::showtext(bool)
bool Fl_ProgressBox::showtext()

Controls whether or not a percentage text is displayed within the bar. Text is displayed in the textcolor() color.

Fl_Color Fl_ProgressBox::textcolor() const
void Fl_ProgressBox::textcolor(Fl_Color)

Gets or sets the color of the text used to display the percentage text.