#include <stdwindow.h>
Inheritance diagram for stdui::stdwindow:


Public Types | |
| typedef std::list< stdwindow * > | list |
| typedef list::iterator | iterator |
| typedef list::const_iterator | const_iterator |
Public Member Functions | |
| stdwindow (stdwindow *_parentwin, const std::string &nameid, stdflags __flags) | |
| stdwindow (stdobject *__parentobj, const std::string &nameid, stdflags __flags) | |
| stdwindow () | |
| ~stdwindow () | |
| cell * | cellat (int, int) |
| Provides the address of the pixel/cell contained into the private screen memry buffer data, at the givin position. | |
| int | height () |
| Gives the height of the widget's geometry. | |
| int | width () |
| Gives the width of the widget's geometry. | |
| int | write (const cxstring &) |
| int | write (const std::string &str) |
| int | write (int, int, const std::string &) |
| int | write (int, int, const cxstring &) |
| bool | gotoxy (const cxy &xy) |
| bool | gotoxy (int, int) |
| const cxy & | xy () |
| cxy | movewindowat (int, int) |
| cxy | movewindow (const cxy &) |
| cxy | movewindow (int, int) |
| cxy | movewindowat (const cxy &) |
| int | rx () |
| int | ry () |
| int | tx () |
| int | ty () |
| const stdcolor & | setcolor (stdcolor c) |
Protected Attributes | |
| crect | _geometry |
| The geometry of this window ( starting a 0,0 ). | |
| cxy | _topleft |
| The absollute coords position of this window on the common screen buffer. | |
| stdcolorgroup | _colorgroup |
| cxy | _xy |
| cxy | _rxy |
| stdcolor | _color |
Private Attributes | |
| cell * | _mem_block |
| private screen contents memory buffer | |
Definition at line 33 of file stdwindow.h.
|
|
Reimplemented from stdui::stdobject. Definition at line 38 of file stdwindow.h. |
|
|
Reimplemented from stdui::stdobject. Definition at line 37 of file stdwindow.h. |
|
|
Reimplemented from stdui::stdobject. Definition at line 36 of file stdwindow.h. |
|
||||||||||||||||
|
Definition at line 35 of file stdwindow.cpp. References _mem_block. 00035 :stdobject(_parentwin, _nameid, __flags) 00036 { 00037 _mem_block = 0l; 00038 }
|
|
||||||||||||||||
|
Definition at line 29 of file stdwindow.cpp. References _mem_block. 00029 : stdobject(__parentobj, _nameid, __flags) 00030 { 00031 _mem_block = 0l; 00032 }
|
|
|
Definition at line 25 of file stdwindow.cpp. References _mem_block. 00025 :stdobject(){ 00026 _mem_block = 0l; 00027 }
|
|
|
Definition at line 41 of file stdwindow.cpp. References _mem_block. 00042 {
00043 if( _mem_block ) delete [] _mem_block;
00044 }
|
|
||||||||||||
|
Provides the address of the pixel/cell contained into the private screen memry buffer data, at the givin position.
Definition at line 56 of file stdwindow.cpp. References _mem_block, height(), and width(). Referenced by gotoxy(), and write(). 00057 {
00058 if ( ( x < 0 ) || ( y < 0 ) || ( x >= width() ) || ( y >= height() ) ) return 0l;
00059 // Prevent memory leak. return the beggining of the buffer.
00060 //return _mem_block;
00061 return _mem_block + ( y*width() + x );
00062 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 121 of file stdwindow.cpp.
|
Here is the call graph for this function:

|
|
Definition at line 112 of file stdwindow.cpp. References xy(). 00113 {
00114 return gotoxy(xy.x(), xy.y());
00115 }
|
Here is the call graph for this function:

|
|
Gives the height of the widget's geometry.
Definition at line 53 of file stdwindow.h. References _geometry. Referenced by cellat(). 00053 { return _geometry.height(); }
|
|
||||||||||||
|
Definition at line 164 of file stdwindow.cpp. References _topleft. 00165 {
00167 cxy pxy = _topleft;
00168
00169 return pxy;
00170
00171 }
|
|
|
Definition at line 152 of file stdwindow.cpp. References _topleft. 00153 {
00155 cxy pxy = _topleft;
00156 return pxy;
00157
00158 }
|
|
|
Definition at line 177 of file stdwindow.cpp. References _topleft. 00178 {
00180 cxy pxy = _topleft;
00181 return pxy;
00182
00183 }
|
|
||||||||||||
|
Definition at line 142 of file stdwindow.cpp. References _topleft. 00143 {
00144 cxy pxy = _topleft;
00145 return pxy;
00146 }
|
|
|
Definition at line 191 of file stdwindow.cpp. References _geometry. 00192 {
00193 return _geometry.topleft().x();
00194 }
|
|
|
Definition at line 200 of file stdwindow.cpp. References _geometry. 00201 {
00202 return _geometry.topleft().y();
00203 }
|
|
|
Definition at line 79 of file stdwindow.h. References _color.
|
|
|
Definition at line 209 of file stdwindow.cpp. References _topleft. 00210 {
00211 return _topleft.x();
00212 }
|
|
|
Definition at line 218 of file stdwindow.cpp. References _topleft. 00219 {
00220 return _topleft.y();
00221 }
|
|
|
Gives the width of the widget's geometry.
Definition at line 59 of file stdwindow.h. References _geometry. Referenced by cellat(). 00059 { return _geometry.width(); }
|
|
||||||||||||||||
|
Definition at line 102 of file stdwindow.cpp. 00103 {
00105 return 0;
00106 }
|
|
||||||||||||||||
|
Definition at line 87 of file stdwindow.cpp. References _color, and cellat(). 00088 {
00089 int n = 0;
00090 cell* p = cellat( xx,yy);
00091 const char* c = str.c_str();
00092 while(*c){
00093 *p++ = _color.code()|*c++;
00094 }
00095 return c-str.c_str();
00096 }
|
Here is the call graph for this function:

|
|
Definition at line 78 of file stdwindow.cpp.
|
Here is the call graph for this function:

|
|
Definition at line 68 of file stdwindow.cpp. References _xy. Referenced by write().
|
|
|
Definition at line 133 of file stdwindow.cpp. References _xy. Referenced by gotoxy(). 00134 {
00135 return _xy;
00136 }
|
|
|
Definition at line 92 of file stdwindow.h. Referenced by setcolor(), and write(). |
|
|
Definition at line 89 of file stdwindow.h. |
|
|
The geometry of this window ( starting a 0,0 ).
Definition at line 86 of file stdwindow.h. |
|
|
private screen contents memory buffer
Definition at line 83 of file stdwindow.h. Referenced by cellat(), stdwindow(), and ~stdwindow(). |
|
|
Definition at line 91 of file stdwindow.h. |
|
|
The absollute coords position of this window on the common screen buffer.
Definition at line 88 of file stdwindow.h. Referenced by movewindow(), movewindowat(), tx(), and ty(). |
|
|
Definition at line 90 of file stdwindow.h. |
1.4.0