Changeset 1592 in Sophya for trunk/SophyaPI/PI/piapplx.cc
- Timestamp:
- Jul 23, 2001, 5:41:15 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piapplx.cc
r1263 r1592 117 117 118 118 int msx,msy; 119 PrefCompS z(msx, msy);119 PrefCompSize(msx, msy); 120 120 msy+=5; 121 121 topwdg->SetSize(sx, sy+msy); … … 279 279 280 280 /* --Methode-- */ 281 void PIApplicationX::PrefCompS z(int& szx, int& szy)281 void PIApplicationX::PrefCompSize(int& szx, int& szy) 282 282 { 283 283 int szf; … … 287 287 288 288 /* --Methode-- */ 289 void PIApplicationX::ScreenS z(int& szx, int& szy)289 void PIApplicationX::ScreenSize(int& szx, int& szy) 290 290 { 291 291 Display * dsp = PIXDisplay(); … … 293 293 szy = DisplayHeight(dsp, DefaultScreen(dsp)); 294 294 } 295 296 /* --Methode-- */ 297 void PIApplicationX::ScreenSizeMM(int& szx, int& szy) 298 { 299 Display * dsp = PIXDisplay(); 300 szx = DisplayWidthMM(dsp, DefaultScreen(dsp)); 301 szy = DisplayHeightMM(dsp, DefaultScreen(dsp)); 302 } 303 304 /* --Methode-- */ 305 void PIApplicationX::ScreenResolution(int& resolx, int& resoly) 306 { 307 Display * dsp = PIXDisplay(); 308 resolx = (int)((double)DisplayWidth(dsp, DefaultScreen(dsp))*10./ 309 (double)DisplayWidthMM(dsp, DefaultScreen(dsp))); 310 resoly = (int)((double)DisplayHeight(dsp, DefaultScreen(dsp))*10./ 311 (double)DisplayHeightMM(dsp, DefaultScreen(dsp))); 312 } 313 314 295 315 296 316
Note:
See TracChangeset
for help on using the changeset viewer.