Changeset 1592 in Sophya for trunk/SophyaPI/PI/piapplx.cc


Ignore:
Timestamp:
Jul 23, 2001, 5:41:15 PM (24 years ago)
Author:
ansari
Message:

Info resolution ecran/preparation pour calcul facteur d'echelle pour fontes ds PSFile - Reza 23/7/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piapplx.cc

    r1263 r1592  
    117117
    118118int msx,msy;
    119 PrefCompSz(msx, msy);
     119PrefCompSize(msx, msy);
    120120msy+=5;
    121121topwdg->SetSize(sx, sy+msy);
     
    279279
    280280/* --Methode-- */
    281 void PIApplicationX::PrefCompSz(int& szx, int& szy)
     281void PIApplicationX::PrefCompSize(int& szx, int& szy)
    282282{
    283283int szf;
     
    287287
    288288/* --Methode-- */
    289 void PIApplicationX::ScreenSz(int& szx, int& szy)
     289void PIApplicationX::ScreenSize(int& szx, int& szy)
    290290{
    291291Display * dsp = PIXDisplay();
     
    293293szy = DisplayHeight(dsp, DefaultScreen(dsp));
    294294}
     295
     296/* --Methode-- */
     297void PIApplicationX::ScreenSizeMM(int& szx, int& szy)
     298{
     299Display * dsp = PIXDisplay();
     300szx = DisplayWidthMM(dsp, DefaultScreen(dsp));
     301szy = DisplayHeightMM(dsp, DefaultScreen(dsp));
     302}
     303
     304/* --Methode-- */
     305void PIApplicationX::ScreenResolution(int& resolx, int& resoly)
     306{
     307Display * dsp = PIXDisplay();
     308resolx = (int)((double)DisplayWidth(dsp, DefaultScreen(dsp))*10./
     309  (double)DisplayWidthMM(dsp, DefaultScreen(dsp)));
     310resoly = (int)((double)DisplayHeight(dsp, DefaultScreen(dsp))*10./
     311  (double)DisplayHeightMM(dsp, DefaultScreen(dsp)));
     312}
     313
     314
    295315
    296316
Note: See TracChangeset for help on using the changeset viewer.