Project stdui: "Simple Type Dialog User-Interface"

|
Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

stdwindow.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Serge Lussier,,,   *
00003  *   serge.lussier@videotron.ca   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
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:  doxygen 1.4.0
About the author | Site started with trial version of DreamWeaver MX 2004 | Finalizing with  | Contact | ©2005, Serge Lussier ( Bretzel )