stdwindow.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef STDUISTDWINDOW_H
00021 #define STDUISTDWINDOW_H
00022
00023 #include <stdobject.h>
00024 #include <crect.h>
00025 #include <stdcolorgroup.h>
00026 #include <cxstring.h>
00027
00028 namespace stdui {
00029
00033 class stdwindow : public stdobject
00034 {
00035 public:
00036 typedef std::list<stdwindow*> list;
00037 typedef list::iterator iterator;
00038 typedef list::const_iterator const_iterator;
00039
00040 stdwindow(stdwindow* _parentwin, const std::string& nameid, stdflags __flags);
00041 stdwindow(stdobject* __parentobj, const std::string& nameid, stdflags __flags);
00042
00043 stdwindow();
00044
00045 ~stdwindow();
00046 cell* cellat(int, int);
00047
00053 int height() { return _geometry.height(); }
00054
00059 int width() { return _geometry.width(); }
00060 int write( const cxstring& );
00061 int write(const std::string& str);
00062 int write(int, int, const std::string&);
00063 int write(int,int, const cxstring& );
00064 bool gotoxy( const cxy& xy );
00065 bool gotoxy(int, int );
00066 const cxy& xy();
00067 cxy movewindowat(int, int );
00068 cxy movewindow( const cxy& );
00069 cxy movewindow( int, int );
00070 cxy movewindowat( const cxy& );
00071 int rx();
00072 int ry();
00073 int tx();
00074 int ty();
00075
00079 const stdcolor& setcolor(stdcolor c) { stdcolor C = _color; _color = c; return C; }
00080
00081 private:
00083 cell* _mem_block;
00084 protected:
00086 crect _geometry;
00088 cxy _topleft;
00089 stdcolorgroup _colorgroup;
00090 cxy _xy;
00091 cxy _rxy;
00092 stdcolor _color;
00093 };
00094
00095 }
00096
00097 #endif
API Documentation Generated by:
1.4.0
About the author |

Site started with trial version of DreamWeaver MX 2004 |
Finalizing with

|
Contact | ©2005, Serge Lussier ( Bretzel )