45e9809aff7304721fddb95654901b32195c9c7avboxsync/***********************************************************
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCopyright 1987, 1998 The Open Group
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPermission to use, copy, modify, distribute, and sell this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation for any purpose is hereby granted without fee, provided that
45e9809aff7304721fddb95654901b32195c9c7avboxsyncthe above copyright notice appear in all copies and that both that
45e9809aff7304721fddb95654901b32195c9c7avboxsynccopyright notice and this permission notice appear in supporting
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncThe above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsyncall copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45e9809aff7304721fddb95654901b32195c9c7avboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
45e9809aff7304721fddb95654901b32195c9c7avboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncExcept as contained in this notice, the name of The Open Group shall not be
45e9809aff7304721fddb95654901b32195c9c7avboxsyncused in advertising or otherwise to promote the sale, use or other dealings
45e9809aff7304721fddb95654901b32195c9c7avboxsyncin this Software without prior written authorization from The Open Group.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync All Rights Reserved
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPermission to use, copy, modify, and distribute this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation for any purpose and without fee is hereby granted,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncprovided that the above copyright notice appear in all copies and that
45e9809aff7304721fddb95654901b32195c9c7avboxsyncboth that copyright notice and this permission notice appear in
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsupporting documentation, and that the name of Digital not be
45e9809aff7304721fddb95654901b32195c9c7avboxsyncused in advertising or publicity pertaining to distribution of the
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsoftware without specific, written prior permission.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
45e9809aff7304721fddb95654901b32195c9c7avboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync******************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef REGIONSTRUCT_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGIONSTRUCT_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct pixman_region16 RegionRec, *RegionPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "miscstruct.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Return values from RectIn() */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define rgnOUT 0
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define rgnIN 1
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define rgnPART 2
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define NullRegion ((RegionPtr)0)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * clip region
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct pixman_region16_data RegDataRec, *RegDataPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT BoxRec miEmptyBox;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT RegDataRec miEmptyData;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT RegDataRec miBrokenData;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_NIL(reg) ((reg)->data && !(reg)->data->numRects)
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* not a region */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_NAR(reg) ((reg)->data == &miBrokenData)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_NUM_RECTS(reg) ((reg)->data ? (reg)->data->numRects : 1)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_SIZE(reg) ((reg)->data ? (reg)->data->size : 0)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_RECTS(reg) ((reg)->data ? (BoxPtr)((reg)->data + 1) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync : &(reg)->extents)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_BOXPTR(reg) ((BoxPtr)((reg)->data + 1))
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_BOX(reg,i) (&REGION_BOXPTR(reg)[i])
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_TOP(reg) REGION_BOX(reg, (reg)->data->numRects)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_END(reg) REGION_BOX(reg, (reg)->data->numRects - 1)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_SZOF(n) (sizeof(RegDataRec) + ((n) * sizeof(BoxRec)))
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_CREATE(_pScreen, _rect, _size) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionCreate(_rect, _size)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_COPY(_pScreen, dst, src) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionCopy(dst, src)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_DESTROY(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionDestroy(_pReg)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_INTERSECT(_pScreen, newReg, reg1, reg2) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miIntersect(newReg, reg1, reg2)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_UNION(_pScreen, newReg, reg1, reg2) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miUnion(newReg, reg1, reg2)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_SUBTRACT(_pScreen, newReg, reg1, reg2) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miSubtract(newReg, reg1, reg2)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_INVERSE(_pScreen, newReg, reg1, invRect) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miInverse(newReg, reg1, invRect)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_TRANSLATE(_pScreen, _pReg, _x, _y) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miTranslateRegion(_pReg, _x, _y)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define RECT_IN_REGION(_pScreen, _pReg, prect) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRectIn(_pReg, prect)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define POINT_IN_REGION(_pScreen, _pReg, _x, _y, prect) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miPointInRegion(_pReg, _x, _y, prect)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_APPEND(_pScreen, dstrgn, rgn) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionAppend(dstrgn, rgn)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_VALIDATE(_pScreen, badreg, pOverlap) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionValidate(badreg, pOverlap)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define BITMAP_TO_REGION(_pScreen, pPix) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*(_pScreen)->BitmapToRegion)(pPix) /* no mi version?! */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define RECTS_TO_REGION(_pScreen, nrects, prect, ctype) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRectsToRegion(nrects, prect, ctype)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_EQUAL(_pScreen, _pReg1, _pReg2) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionEqual(_pReg1, _pReg2)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_BREAK(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync miRegionBreak(_pReg)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_INIT(_pScreen, _pReg, _rect, _size) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync{ \
45e9809aff7304721fddb95654901b32195c9c7avboxsync if ((_rect) != NULL) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync { \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->extents = *(_rect); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data = (RegDataPtr)NULL; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync } \
45e9809aff7304721fddb95654901b32195c9c7avboxsync else \
45e9809aff7304721fddb95654901b32195c9c7avboxsync { \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->extents = miEmptyBox; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync if (((_size) > 1) && ((_pReg)->data = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (RegDataPtr)xalloc(REGION_SZOF(_size)))) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync { \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data->size = (_size); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data->numRects = 0; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync } \
45e9809aff7304721fddb95654901b32195c9c7avboxsync else \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data = &miEmptyData; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync } \
45e9809aff7304721fddb95654901b32195c9c7avboxsync }
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_UNINIT(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync{ \
45e9809aff7304721fddb95654901b32195c9c7avboxsync if ((_pReg)->data && (_pReg)->data->size) { \
45e9809aff7304721fddb95654901b32195c9c7avboxsync xfree((_pReg)->data); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data = NULL; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync } \
45e9809aff7304721fddb95654901b32195c9c7avboxsync}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_RESET(_pScreen, _pReg, _pBox) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync{ \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->extents = *(_pBox); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync REGION_UNINIT(_pScreen, _pReg); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data = (RegDataPtr)NULL; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_NOTEMPTY(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync !REGION_NIL(_pReg)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_BROKEN(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync REGION_NAR(_pReg)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_EMPTY(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync{ \
45e9809aff7304721fddb95654901b32195c9c7avboxsync REGION_UNINIT(_pScreen, _pReg); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->extents.x2 = (_pReg)->extents.x1; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->extents.y2 = (_pReg)->extents.y1; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data = &miEmptyData; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_EXTENTS(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (&(_pReg)->extents)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_NULL(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync{ \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->extents = miEmptyBox; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync (_pReg)->data = &miEmptyData; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef REGION_NULL
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define REGION_NULL(_pScreen, _pReg) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync REGION_INIT(_pScreen, _pReg, NullBox, 1)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* moved from mi.h */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void InitRegions (void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT RegionPtr miRegionCreate(
45e9809aff7304721fddb95654901b32195c9c7avboxsync BoxPtr /*rect*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*size*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miRegionInit(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync BoxPtr /*rect*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*size*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miRegionDestroy(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miRegionUninit(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miRegionCopy(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*dst*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*src*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miIntersect(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*newReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*reg1*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*reg2*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miUnion(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*newReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*reg1*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*reg2*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miRegionAppend(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*dstrgn*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*rgn*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miRegionValidate(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*badreg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool * /*pOverlap*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT RegionPtr miRectsToRegion(
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*nrects*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xRectanglePtr /*prect*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*ctype*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miSubtract(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*regD*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*regM*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*regS*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miInverse(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*newReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*reg1*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync BoxPtr /*invRect*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int miRectIn(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*region*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync BoxPtr /*prect*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miTranslateRegion(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*x*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*y*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miRegionReset(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync BoxPtr /*pBox*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miRegionBreak(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miPointInRegion(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*x*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*y*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync BoxPtr /*box*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miRegionEqual(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg1*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg2*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool miRegionNotEmpty(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miRegionEmpty(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT BoxPtr miRegionExtents(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void miPrintRegion(
45e9809aff7304721fddb95654901b32195c9c7avboxsync RegionPtr /*pReg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* REGIONSTRUCT_H */