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

slider.h

Go to the documentation of this file.
00001 
00002 
00003 //
00004 //      SLIDER.H                                        (c)     YoY'01                                          WEB: www.aestesis.org
00005 //
00008 #include                                                "elektrodef.h"
00011 #ifndef                                                 _SLIDER_H_
00012 #define                                                 _SLIDER_H_
00015 #include                                                "control.h"
00018 
00019 //      If you use directly the variables in the class API, it's at your own risks. Prefer the methods...   
00020 
00023 
00024 #define                                                 guidSLIDER                                              (Aslider::CI.guid)
00025 
00028 
00029 //                                                              slider modes
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_

Generated on Tue Nov 20 10:21:25 2001 for elektronika plugz SDK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001