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

# selcolor.h

Go to the documentation of this file.

    00001
    00002
    00003 //
    00004 //      SELCOLOR.H                                      (c)     YoY'01                                          WEB: www.aestesis.org
    00005 //
    00008 #include                                                "elektrodef.h"
    00011 #ifndef                                                 _SELCOLOR_H_
    00012 #define                                                 _SELCOLOR_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                                                 guidSELCOLOR                                    (Aselcolor::CI.guid)
    00025
    00028
    00031
    00032 class Aselcolor : public Aobject
    00033 {
    00034 public:
    00035         ELIBOBJ
    00036
    00037         EDLL                                            Aselcolor                                               (char *name, Aobject *L, int x, int y);
    00038         EDLL virtual                            ~Aselcolor                                              ();
    00039
    00040         EDLL virtual bool                       mouse                                                   (int x, int y, int state, int event);
    00041         EDLL virtual bool                       notify                                                  (Anode *o, int event, dword p);
    00042
    00043         EDLL virtual void                       set                                                             (dword color);
    00044
    00045         EDLL virtual dword                      get                                                             ();
    00046
    00047         EDLL virtual void                       paint                                                   (Abitmap *b);
    00048
    00049         Acontrol                                        *control;
    00050
    00051 private:
    00052         dword                                           color;
    00053         int                                                     test;
    00054         float                                           h,l,s;
    00055         int                                                     xx,yy;
    00056 };
    00057
    00060 #endif                                                  //_SELCOLOR_H_