Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BProgressBar.h

Go to the documentation of this file.
00001 // BProgressBar.h (this is -*- C++ -*-)
00002 // 
00003 // \author: Bjoern Giesler <bjoern@giesler.de>
00004 // 
00005 // 
00006 // 
00007 // $Author: giesler $
00008 // $Locker$
00009 // $Revision$
00010 // $Date: 2002-08-19 10:41:28 +0200 (Mon, 19 Aug 2002) $
00011 
00012 #ifndef BPROGRESSBAR_H
00013 #define BPROGRESSBAR_H
00014 
00015 /* system includes */
00016 /* (none) */
00017 
00018 /* my includes */
00019 #include "BWidget.h"
00020 
00021 class BProgressBar: public BWidget {
00022 public:
00023   BProgressBar(BWidget* parent, const BRect& frame);
00024 
00031   void setTotal(int total);
00032   int total() { return _total; }
00033 
00034   void setProgress(int progress);
00035   int progress() { return _progress; }
00036   
00037   virtual void draw(BImage& img);
00038 
00039 protected:
00040   int _progress, _total;
00041 };
00042 
00043 #endif /* BPROGRESSBAR_H */

Generated on Sat Dec 29 09:59:23 2007 for DSGUI by doxygen1.3-rc3