FLTK logo

Documentation

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   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>
    

Description

The Fl_Progress widget displays a progress bar for the user.

Methods

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.

Fl_Progress::~Fl_Progress(void)

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-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.