FLTK 1.3.0
|
00001 // 00002 // "$Id$" 00003 // 00004 // Progress bar widget definitions. 00005 // 00006 // Copyright 2000-2010 by Michael Sweet. 00007 // 00008 // This library is free software. Distribution and use rights are outlined in 00009 // the file "COPYING" which should have been included with this file. If this 00010 // file is missing or damaged, see the license at: 00011 // 00012 // http://www.fltk.org/COPYING.php 00013 // 00014 // Please report all bugs and problems on the following page: 00015 // 00016 // http://www.fltk.org/str.php 00017 // 00018 00019 /* \file 00020 Fl_Progress widget . */ 00021 00022 #ifndef _Fl_Progress_H_ 00023 # define _Fl_Progress_H_ 00024 00025 // 00026 // Include necessary headers. 00027 // 00028 00029 #include "Fl_Widget.H" 00030 00031 00032 // 00033 // Progress class... 00034 // 00038 class FL_EXPORT Fl_Progress : public Fl_Widget { 00039 00040 float value_, 00041 minimum_, 00042 maximum_; 00043 00044 protected: 00045 00046 virtual void draw(); 00047 00048 public: 00049 00050 Fl_Progress(int x, int y, int w, int h, const char *l = 0); 00051 00053 void maximum(float v) { maximum_ = v; redraw(); } 00055 float maximum() const { return (maximum_); } 00056 00058 void minimum(float v) { minimum_ = v; redraw(); } 00060 float minimum() const { return (minimum_); } 00061 00063 void value(float v) { value_ = v; redraw(); } 00065 float value() const { return (value_); } 00066 }; 00067 00068 #endif // !_Fl_Progress_H_ 00069 00070 // 00071 // End of "$Id$". 00072 //