Ignore:
Timestamp:
Apr 8, 2001, 9:17:16 AM (24 years ago)
Author:
umoeller
Message:

misc changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/gpih.c

    r53 r56  
    102102
    103103static 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
     123BOOL 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
     147VOID 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}
    104158
    105159/* ******************************************************************
Note: See TracChangeset for help on using the changeset viewer.