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

# display.h

Go to the documentation of this file.

    00001
    00002
    00003 //
    00004 //      DISPLAY.H                                       (c)     YoY'00                                          WEB: www.aestesis.org
    00005 //
    00008 #ifndef                                                 _DISPLAY_H_
    00009 #define                                                 _DISPLAY_H_
    00012 #include                                                <stdio.h>
    00013 #include                                                "types.h"
    00014 #include                                                "surface.h"
    00017
    00018 //      If you use directly the variables in the class API, it's at your own risks. Prefer the methods...
    00019
    00022
    00023 #define                                                 guidDISPLAY                                             (Adisplay::CI.guid)
    00024
    00027
    00028 //                                                              display types
    00029
    00030 enum
    00031 {
    00032                                                                 displayVM0001=0,
    00033                                                                 displayVM0002,
    00034 };
    00035
    00038
    00039 class Adisplay : public Asurface
    00040 {
    00041         ALIBOBJ
    00042
    00043         ADLL                                            Adisplay                                                (char *name, Aobject *L, int x, int y, int w, int h, Aresobj *o, int ow, int oy, int mode);
    00044         ADLL                                            Adisplay                                                (char *name, Aobject *L, int x, int y, int type);
    00045         ADLL virtual                            ~Adisplay                                               ();
    00046
    00047         virtual void                            set                                                             (float v)       { val=mini(maxi(0.f, v), 1.f); NCdisplay(); repaint(); }
    00048
    00049 private:
    00050
    00051         ADLL virtual void                       NCdisplay                                               ();
    00052
    00053         Abitmap                                         *bmp;
    00054         int                                                     ow,oh;
    00055         float                                           val;
    00056 };
    00057
    00060 #endif                                                  //_PADDLE_H_