Changeset 63 in Sophya for trunk/SophyaPI/PI/pibwdggen.cc
- Timestamp:
- Dec 5, 1997, 11:13:15 PM (28 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pibwdggen.cc
r52 r63 50 50 return; 51 51 } 52 53 /* --Methode-- */ 54 void PIBaseWdgGen::Refresh() 55 { 56 if ( IsVisible() ) { 57 Draw(); 58 CallDrawers(); 59 } 60 return; 61 } 62 63 /* --Methode-- */ 64 void PIBaseWdgGen::Draw(int /*x0*/, int /*y0*/, int /*dx*/, int /*dy*/) 65 { 66 this->Draw(); 67 return; 68 } 69 70 /* --Methode-- */ 71 void PIBaseWdgGen::Draw() 72 { 73 #ifdef DEBUG_RZXB 74 puts("Debug_PIBaseWdgGen::Draw() Efface la fenetre par defaut ! "); 75 #endif 76 this->EraseWindow(); 77 return; 78 } 79 80 81 /* --Methode-- */ 82 void PIBaseWdgGen::Resize() 83 { 84 #ifdef DEBUG_RZXB 85 puts("Debug_PIBaseWdgGen::Resize() resize notify "); 86 #endif 87 return; 88 } 89 52 90 53 91 /* --Methode-- */ … … 173 211 drw->Attach((PIBaseWdg*)this, mDrwId); 174 212 return(mDrwId); 213 } 214 215 /* --Methode-- */ 216 void PIBaseWdgGen::MoveResizeDrawer(int id, int x0, int y0, int dx, int dy) 217 { 218 list<BWDrwId>::iterator it; 219 for(it = mDrwList.begin(); it != mDrwList.end(); it++) 220 if ((*it).id == id) { 221 (*it).x0 = x0; (*it).y0 = y0; 222 (*it).dx = dx; (*it).dy = dy; 223 break; 224 } 225 return; 175 226 } 176 227 … … 226 277 if (fgc) ClearClipRectangle(); 227 278 228 } 279 return; 280 } 281 282 /* --Methode-- */ 283 void PIBaseWdgGen::CallDrawer(int id) 284 { 285 list<BWDrwId>::iterator it; 286 for(it = mDrwList.begin(); it != mDrwList.end(); it++) 287 if ((*it).id == id) { 288 SaveGraphicAtt(); 289 (*it).drw->SetDrwWdg(this, (*it).x0, (*it).y0, (*it).dx, (*it).dy); 290 SetClipRectangle((*it).x0, (*it).y0, (*it).dx , (*it).dy); 291 (*it).drw->Draw(); 292 RestoreGraphicAtt(); 293 ClearClipRectangle(); 294 break; 295 } 296 return; 297 }
Note:
See TracChangeset
for help on using the changeset viewer.