- Main Page
- Classes
- Files

- File List

# C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.40/Woopsi/libwoopsi/include/progressbar.h

    00001 #ifndef _PROGRESS_BAR_H_
    00002 #define _PROGRESS_BAR_H_
    00003
    00004 #include <nds.h>
    00005 #include "gadget.h"
    00006
    00007 namespace WoopsiUI {
    00008
    00012         class ProgressBar : public Gadget {
    00013
    00014         public:
    00015
    00023                 ProgressBar(s16 x, s16 y, u16 width, u16 height);
    00024
    00029                 inline const s16 getMinimumValue() const { return _minimumValue; };
    00030
    00035                 inline const s16 getMaximumValue() const { return _maximumValue; };
    00036
    00041                 inline const s16 getValue() const { return _value; };
    00042
    00047                 inline void setMinimumValue(const s16 value) { _minimumValue = value; };
    00048
    00053                 inline void setMaximumValue(const s16 value) { _maximumValue = value; };
    00054
    00059                 void setValue(const s16 value);
    00060
    00066                 virtual void draw(Rect clipRect);
    00067
    00068         protected:
    00069                 s16 _minimumValue;
    00070                 s16 _maximumValue;
    00071                 s16 _value;
    00076                 virtual inline ~ProgressBar() { };
    00077
    00081                 inline ProgressBar(const ProgressBar& progressBar) : Gadget(progressBar) { };
    00082         };
    00083 }
    00084
    00085 #endif