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

# titleBar.h

Go to the documentation of this file.

    00001
    00002
    00003 //
    00004 //      TITILEBAR.H                                     (c)     YoY'00                                          WEB: www.aestesis.org
    00005 //
    00008 #ifndef                                                 _TITLEBAR_H_
    00009 #define                                                 _TITLEBAR_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                                                 guidTITLEBAR                                    (AtitleBar::CI.guid)
    00024
    00027
    00028 class AtitleBar : public Asurface
    00029 {
    00030         ALIBOBJ
    00031
    00032         ADLL                                            AtitleBar                                               (char *name, Aobject *L, int x, int y, int w, int h, char *caption=NULL);
    00033         ADLL virtual                            ~AtitleBar                                              ();
    00034
    00035         ADLL virtual bool                       mouse                                                   (int x, int y, int state, int event);
    00036
    00037         ADLL virtual void                       setCaption                                              (char *caption);
    00038         virtual char *                          getCaption                                              ()                                                      { return caption; }
    00039
    00040         ADLL virtual bool                       notify                                                  (Anode *o, int event, dword p=0);
    00041
    00042         ADLL virtual void                       draw                                                    ();
    00043
    00044 private:
    00045
    00046         class Abutton                           *buttonClose;
    00047
    00048         int                                                     bac,lx,ly,wx,wy;
    00049         char                                            *caption;
    00050 };
    00051
    00054 #endif                                                  //_TITLEBAR_H_