Changeset 56 for trunk/src/helpers/gpih.c
- Timestamp:
- Apr 8, 2001, 9:17:16 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/gpih.c
r53 r56 102 102 103 103 static HMTX G_hmtxLCIDs = NULLHANDLE; 104 105 /* ****************************************************************** 106 * 107 * Rectangle helpers 108 * 109 ********************************************************************/ 110 111 /* 112 *@@ gpihIsPointInRect: 113 * like WinPtInRect, but doesn't need a HAB. 114 * 115 * NOTE: as opposed to WinPtInRect, prcl is 116 * considered inclusive, that is, TRUE is 117 * returned even if x or y are exactly 118 * the same as prcl->xRight or prcl->yTop. 119 * 120 *@@added V0.9.9 (2001-02-28) [umoeller] 121 */ 122 123 BOOL gpihIsPointInRect(PRECTL prcl, 124 LONG x, 125 LONG y) 126 { 127 if (prcl) 128 { 129 return ( (x >= prcl->xLeft) 130 && (x <= prcl->xRight) 131 && (y >= prcl->yBottom) 132 && (y <= prcl->yTop) 133 ); 134 } 135 136 return (FALSE); 137 } 138 139 /* 140 *@@ gpihInflateRect: 141 * Positive l will make the rectangle larger. 142 * Negative l will make the rectangle smaller. 143 * 144 *@@added V0.9.9 (2001-02-28) [umoeller] 145 */ 146 147 VOID gpihInflateRect(PRECTL prcl, 148 LONG l) 149 { 150 if (prcl && l) 151 { 152 prcl->xLeft -= l; 153 prcl->yBottom -= l; 154 prcl->xRight += l; 155 prcl->yTop += l; 156 } 157 } 104 158 105 159 /* ******************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.