summaryrefslogtreecommitdiffstats
path: root/beos/Stepper.h
blob: 2b0493f6eb132635bcf8ee86e0accc9cfcb46389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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