00001
00002
00003
00004
00005
00008
00011
00012 #define _SLIDER_H_
00015 #include "control.h"
00018
00019
00020
00023
00024 #define guidSLIDER (Aslider::CI.guid)
00025
00028
00029
00030
00031 enum
00032 {
00033 sliderX=0,
00034 sliderY,
00035 };
00036
00039
00040 class Aslider : public Aobject
00041 {
00042 public:
00043 ELIBOBJ
00044
00045 EDLL Aslider (char *name, Aobject *L, int x, int y, int w, int h, int mode);
00046 EDLL virtual ~Aslider ();
00047
00048 EDLL virtual bool mouse (int x, int y, int state, int event);
00049 EDLL virtual bool notify (Anode *o, int event, dword p);
00050
00051 EDLL virtual void set (float v);
00052
00053 EDLL virtual float get ();
00054
00055 EDLL virtual void paint (Abitmap *b);
00056
00057 Acontrol *control;
00058
00059 private:
00060
00061 int mode;
00062 float value;
00063 bool test;
00064 };
00065
00068 #endif //_SLIDER_H_