Changeset 316 in Sophya for trunk/SophyaPI/PI/pigraphgen.h


Ignore:
Timestamp:
Jun 15, 1999, 3:56:51 PM (26 years ago)
Author:
ercodmgr
Message:

Introduction PIFont - Reza 15/06/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraphgen.h

    r292 r316  
    1111#include PIWDG_H
    1212#include PICMAP_H
     13#include PIFONT_H
    1314
    1415
     
    2223                 PI_ColorAllBits0 = 16, PI_ColorAllBits1 = 17 };
    2324
    24 enum PIFontSize { PI_NotDefFontSize = -1,
    25                   PI_SmallSizeFont = 1, PI_NormalSizeFont = 2,
    26                   PI_BigSizeFont = 3, PI_HugeSizeFont = 4 };
    27 
    28 enum PIFontAtt { PI_NotDefFontAtt = -1,
    29                  PI_RomanFont = 1, PI_BoldFont = 2, PI_ItalicFont = 4 };
    3025
    3126enum PILineAtt { PI_NotDefLineAtt = -1,
     
    112107  virtual void       SelBackground(PIColorMap& cmap, int cid)                  = 0;
    113108  virtual void       SelGOMode(PIGOMode mod=PI_GOCopy)                         = 0;
    114   virtual void       SelFont(PIFontSize sz=PI_NormalSizeFont,
    115                              PIFontAtt att=PI_RomanFont)                       = 0;
    116   virtual void       SelFontSzPt(int npt=12, PIFontAtt att=PI_RomanFont)       = 0;
    117109  virtual void       SelLine(PILineAtt att=PI_NormalLine)                      = 0;
    118110  virtual void       SelMarker(int msz=3, PIMarker mrk=PI_DotMarker)           = 0;
     111// Modifications de fonte
     112  virtual void       SelFont(PIFont & fnt)                                     = 0;
     113  virtual void       SelFont(PIFontSize sz=PI_NormalSizeFont,
     114                             PIFontAtt att=PI_RomanFont)                       = 0;
     115  virtual void       SelFontSzPt(int npt=12, PIFontAtt att=PI_RomanFont)       = 0;
    119116
    120117// Selection de zone de trace (clip)
     
    126123  virtual PIColors   GetBackground()    = 0;
    127124  virtual PIGOMode   GetGOMode()        = 0;
    128   virtual PIFontAtt  GetFontAtt()       = 0;
    129   virtual int        GetFontSize()      = 0;
    130125  virtual PILineAtt  GetLineAtt()       = 0;
    131126  virtual PIMarker   GetMarker()        = 0;
    132127  virtual int        GetMarkerSize()    = 0;
    133128
    134   virtual int        GetFontHeight(int& asc, int& desc)      = 0;
    135   virtual PIGrCoord  CalcStringWidth(char const* s)          = 0;
     129// Acces a la fonte et ses attributs
     130  inline  PIFont     GetFont() { return (myFont) ; }
     131  virtual PIGrCoord  GetFontHeight(PIGrCoord& asc, PIGrCoord& desc);
     132  virtual PIGrCoord  CalcStringWidth(char const* s);
    136133
    137134// Sauvegarde des attributs graphiques
     
    144141  PIScreenBuffer* myGrb;
    145142
     143  PIFont myFont;
    146144  PIColors  sFCol, sBCol;
    147145  PIGOMode sGOm;
    148   PIFontAtt sFAtt;
     146  PIFont sFont;
    149147  PILineAtt sLAtt;
    150148  int sFSize;
     
    152150  int sMrkSz;
    153151};
    154 
    155 #endif
    156152
    157153typedef PIGraphicGen PIGraphic;
     
    162158//     PIGraphicPS
    163159//     PIGraphicUC
     160
     161#endif      // PIGRAPHGEN_H_SEEN
Note: See TracChangeset for help on using the changeset viewer.