GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  ]

class Fl_Progress

Class Hierarchy

Include Files

    #include <FL/Fl_Progress.H>


The Fl_Progress widget displays a progress bar for the user.


Fl_Progress::Fl_Progress(int x, int y, int w, int h, const char *label = 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.


The destructor removes the progress bar.

void maximum(float v);
float maximum() const;

Gets or sets the maximum value in the progress widget.

void minimum(float v);
float minimum() const;

Gets or sets the minimum value in the progress widget.

void value(float v);
float value() const;

Gets or sets the current value in the progress widget.

User Comments [ Add Comment ]

No comments for this page.


Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.