Changeset 25 for trunk/src/helpers/gpih.c
- Timestamp:
- Jan 17, 2001, 6:34:55 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/gpih.c
r23 r25 225 225 * This is different from WinFillRect. 226 226 * 227 * If (lColor != -1), the HPS's current foreground color 228 * is changed to that color. 229 * 227 230 * Changes to the HPS: 228 * -- the current (foreground) color is changed to 229 * lBackColor; 230 * -- the current area color is changed to lForeColor; 231 * 231 232 * -- the current position is moved to the lower left 232 233 * corner of *prcl. … … 234 235 *@@changed V0.9.0 [umoeller]: renamed from gpihFillRect 235 236 *@@changed V0.9.0 [umoeller]: modified function prototype to support lControl 237 *@@changed V0.9.7 (2001-01-17) [umoeller]: removed lColor 236 238 */ 237 239 238 240 VOID gpihBox(HPS hps, // in: presentation space for output 239 241 LONG lControl, // in: one of DRO_OUTLINE, DRO_FILL, DRO_OUTLINEFILL 240 PRECTL prcl, // in: rectangle to draw (exclusive) 241 LONG lColor) // in: color for outline and/or fill 242 PRECTL prcl) // in: rectangle to draw (exclusive) 242 243 { 243 244 POINTL ptl; 244 245 245 GpiSetColor(hps, lColor);246 246 ptl.x = prcl->xLeft; 247 247 ptl.y = prcl->yBottom; … … 263 263 * 264 264 * No PS data is changed. 265 * 266 *@@changed V0.9.7 (2001-01-17) [umoeller]: removed lColor 265 267 */ 266 268 … … 268 270 LONG x, // in: x-center of rectangle 269 271 LONG y, // in: y-center of rectangle 270 ULONG ulWidth, // in: rectangle width and height 271 LONG lColor) // in: color 272 ULONG ulWidth) // in: rectangle width and height 272 273 { 273 274 POINTL ptlSave; 274 LONG lColorSave;275 275 RECTL rclTemp; 276 276 ULONG ulWidth2 = ulWidth / 2; … … 280 280 rclTemp.yTop = y + ulWidth2; 281 281 282 lColorSave = GpiQueryColor(hps);283 282 GpiQueryCurrentPosition(hps, &ptlSave); 284 283 gpihBox(hps, 285 284 DRO_FILL, 286 &rclTemp, 287 lColor); 285 &rclTemp); 288 286 GpiMove(hps, &ptlSave); 289 GpiSetColor(hps, lColorSave);290 287 } 291 288 … … 746 743 * semaphore is held by the wrapper. Then use only 747 744 * the wrapper in your code. 745 * 746 * <B>Font metrics:</B> 747 * 748 * The important values in the returned FONTMETRICS are 749 * like this (according to PMREF): 750 * 751 + ÉÍ ________________________________________________ 752 + º 753 + º lExternalLeading, according to font designer. 754 + º ________________________________________________ Í» 755 + ÈÍ º 756 + # # º 757 + ## ## º lMaxAscender (of entire; 758 + ÉÍ _______________ # # # # º font); this can be > capital 759 + º #### # # # # º letters because miniscules 760 + º # # # # # º can exceed that. 761 + º lXHeight # # # # º 762 + º # # # # º 763 + º # # # # º 764 + º _______________#####________#_______#___ baseline Í» 765 + ÈÍ # º 766 + # º lMaxDescender 767 + ______________ ####______________________________ ÍŒ 768 + 769 * 770 * In turn, lMaxBaselineExt is lMaxAscender + lMaxDescender. 771 * 772 * Soooo... to find out about the optimal line spacing, GPIREF 773 * recommends to use lMaxBaselineExt + lExternalLeading. 748 774 * 749 775 *@@added V0.9.0 [umoeller]
Note:
See TracChangeset
for help on using the changeset viewer.