Changeset 316 in Sophya for trunk/SophyaPI/PI/pigraphgen.h
- Timestamp:
- Jun 15, 1999, 3:56:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraphgen.h
r292 r316 11 11 #include PIWDG_H 12 12 #include PICMAP_H 13 #include PIFONT_H 13 14 14 15 … … 22 23 PI_ColorAllBits0 = 16, PI_ColorAllBits1 = 17 }; 23 24 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 };30 25 31 26 enum PILineAtt { PI_NotDefLineAtt = -1, … … 112 107 virtual void SelBackground(PIColorMap& cmap, int cid) = 0; 113 108 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;117 109 virtual void SelLine(PILineAtt att=PI_NormalLine) = 0; 118 110 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; 119 116 120 117 // Selection de zone de trace (clip) … … 126 123 virtual PIColors GetBackground() = 0; 127 124 virtual PIGOMode GetGOMode() = 0; 128 virtual PIFontAtt GetFontAtt() = 0;129 virtual int GetFontSize() = 0;130 125 virtual PILineAtt GetLineAtt() = 0; 131 126 virtual PIMarker GetMarker() = 0; 132 127 virtual int GetMarkerSize() = 0; 133 128 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); 136 133 137 134 // Sauvegarde des attributs graphiques … … 144 141 PIScreenBuffer* myGrb; 145 142 143 PIFont myFont; 146 144 PIColors sFCol, sBCol; 147 145 PIGOMode sGOm; 148 PIFont Att sFAtt;146 PIFont sFont; 149 147 PILineAtt sLAtt; 150 148 int sFSize; … … 152 150 int sMrkSz; 153 151 }; 154 155 #endif156 152 157 153 typedef PIGraphicGen PIGraphic; … … 162 158 // PIGraphicPS 163 159 // PIGraphicUC 160 161 #endif // PIGRAPHGEN_H_SEEN
Note:
See TracChangeset
for help on using the changeset viewer.