fltk::ProgressBar Class Reference

Inherits fltk::Widget.

List of all members.


Detailed Description

ProgressBar is a widget meant to display progress of some operation. maximum() and optionally minimum() values should be set, and for each step of operation step() should be called.


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


Member Function Documentation

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.

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.

ProgressBar::showtext bool  st  )  [inline]
 

Shows completition percentage inside progress widget.


Fri Apr 2 15:19:55 2010. FLTK ©2007 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.