diff options
Diffstat (limited to 'beos/Stepper.h')
-rw-r--r-- | beos/Stepper.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/beos/Stepper.h b/beos/Stepper.h new file mode 100644 index 000000000..2b0493f6e --- /dev/null +++ b/beos/Stepper.h @@ -0,0 +1,31 @@ +#ifndef STEPPER_H +#define STEPPER_H + +#include <interface/View.h> + +class BTextControl; + +class HBStepper : public BView +{ + public: + HBStepper( BRect rect, int step, int min, int max, int val, + BMessage * message ); + void Draw( BRect rect ); + void AttachedToWindow(); + void MouseDown( BPoint point ); + void SetValue( int val ); + int Value(); + void SetEnabled( bool e ); + + private: + int fStep; + int fMin; + int fMax; + int fValue; + BMessage * fMessage; + + bool fEnabled; + BTextControl * fControl; +}; + +#endif |