"Fossies" - the Fresh Open Source Software Archive

Member "fltk-1.3.3/documentation/html/Fl__Progress_8H_source.html" (3 Nov 2014, 16681 Bytes) of package /linux/misc/fltk-1.3.3-docs-html.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

FLTK 1.3.3
Fl_Progress.H
1 //
2 // "$Id: Fl_Progress.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Progress bar widget definitions.
5 //
6 // Copyright 2000-2010 by Michael Sweet.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 /* \file
20  Fl_Progress widget . */
21 
22 #ifndef _Fl_Progress_H_
23 # define _Fl_Progress_H_
24 
25 //
26 // Include necessary headers.
27 //
28 
29 #include "Fl_Widget.H"
30 
31 
32 //
33 // Progress class...
34 //
38 class FL_EXPORT Fl_Progress : public Fl_Widget {
39 
40  float value_,
41  minimum_,
42  maximum_;
43 
44  protected:
45 
46  virtual void draw();
47 
48  public:
49 
50  Fl_Progress(int x, int y, int w, int h, const char *l = 0);
51 
53  void maximum(float v) { maximum_ = v; redraw(); }
55  float maximum() const { return (maximum_); }
56 
58  void minimum(float v) { minimum_ = v; redraw(); }
60  float minimum() const { return (minimum_); }
61 
63  void value(float v) { value_ = v; redraw(); }
65  float value() const { return (value_); }
66 };
67 
68 #endif // !_Fl_Progress_H_
69 
70 //
71 // End of "$Id: Fl_Progress.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
72 //
Fl_Widget is the base class for all widgets in FLTK.
Definition: Fl_Widget.H:100
void redraw()
Schedules the drawing of the widget.
Definition: Fl.cxx:1706
virtual void draw()=0
Draws the widget.
void value(float v)
Sets the current value in the progress widget.
Definition: Fl_Progress.H:63
float value() const
Gets the current value in the progress widget.
Definition: Fl_Progress.H:65
Fl_Widget, Fl_Label classes .
float maximum() const
Gets the maximum value in the progress widget.
Definition: Fl_Progress.H:55
float minimum() const
Gets the minimum value in the progress widget.
Definition: Fl_Progress.H:60
void minimum(float v)
Sets the minimum value in the progress widget.
Definition: Fl_Progress.H:58
Displays a progress bar for the user.
Definition: Fl_Progress.H:38
void maximum(float v)
Sets the maximum value in the progress widget.
Definition: Fl_Progress.H:53