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

edit.h

Go to the documentation of this file.
00001 
00002 
00003 //
00004 //      EDIT.H                                          (c)     YoY'01                                          WEB: www.aestesis.org
00005 //
00008 #ifndef                                                 _EDIT_H_
00009 #define                                                 _EDIT_H_
00012 #include                                                <stdio.h>
00013 #include                                                "interface.h"
00014 #include                                                "types.h"
00015 #include                                                "object.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                                                 guidEDIT                                                (Aedit::CI.guid)
00025 
00028 
00029 class Aedit : public Aobject
00030 {
00031 public:
00032         ALIBOBJ
00033         enum
00034         {
00035                                                                 stateMULTILINE                                  = Aobject::stateLAST,
00036                                                                 stateOVERWRITE                                  = stateMULTILINE<<1,
00037                                                                 stateLAST                                               = stateOVERWRITE<<1
00038         };
00039 
00040         dword                                           colorBackground;
00041         dword                                           colorBorder;
00042         dword                                           colorText;
00043         dword                                           colorCursor;
00044         dword                                           colorSelect;
00045 
00046         
00047         ADLL                                            Aedit                                                   (char *name, class Aobject *L, int x, int y, int w, int h);
00048         ADLL virtual                            ~Aedit                                                  ();
00049 
00050         ADLL virtual void                       pulse                                                   ();
00051         ADLL virtual void                       paint                                                   (Abitmap *b);
00052         ADLL virtual bool                       mouse                                                   (int x, int y, int state, int event);
00053         ADLL virtual bool                       keyboard                                                (int event, int ascii, int scan, int state);
00054 
00055         virtual bool                            filter                                                  (char c)        { return true; }
00056 
00057         ADLL virtual void                       set                                                             (char *text);
00058         ADLL virtual void                       get                                                             (char *text, int size);
00059         ADLL virtual int                        getSize                                                 ();
00060 
00061 // private
00062 
00063     Afont                                               *font;
00064     char                                                *caption;
00065     int                                                 fsel;
00066     int                                                 lsel;
00067     int                                                 cursor;
00068     boolean                                             cursvis;
00069     int                                                 xx;
00070     int                                                 yy;
00071     int                                                 estate;
00072     int                                                 xMouse;
00073     boolean                                             haveFocus;
00074         int                                                     sizeAlloc;
00075 
00076 private:
00077         int                                                     getMpos(int x, int y);
00078 };
00079 
00082 #endif                                                  //_EDIT_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