Lines Matching defs:area

50  *	Creates a new rectangular clipping area
55 XmuArea *area;
57 area = (XmuArea *)XtMalloc(sizeof(XmuArea));
60 area->scanline = XmuNewScanline(y1, x1, x2);
61 area->scanline->next = XmuNewScanline(y2, 0, 0);
64 area->scanline = (XmuScanline *)NULL;
66 return (area);
74 * area - Area to copy
80 XmuAreaDup(XmuArea *area)
84 if (!area)
88 XmuAreaCopy(dst, area);
97 * dst - destination area
98 * src - source area
159 * area - area to operate
183 XmuAreaNot(XmuArea *area, int x1, int y1, int x2, int y2)
188 if (!area)
189 return (area);
199 if (!area->scanline)
201 if ((area->scanline = XmuNewScanline(y1, x1, x2)) != NULL)
202 area->scanline->next = XmuNewScanline(y2, 0, 0);
203 return (area);
206 XmuAreaAnd(area, and);
208 z = area->scanline;
213 area->scanline = q;
217 area->scanline = area->scanline->next;
219 XmuOptimizeArea(area);
220 if((z = area->scanline) == (XmuScanline *)NULL)
221 return (area);
242 return (area);
250 * dst - destination area
251 * src - source area
415 * dst - destination area
416 * src - source area
507 * XmuValidArea(area)
510 * area - area to verify
513 * Verifies if the area is valid and/or useful
516 XmuValidArea(XmuArea *area)
520 if (!area || !area->scanline)
523 at = area->scanline;
1533 * XmuDestroyScanlineList(area->scanline);
1534 * area->scanline = (XmuScanline *)NULL;
1557 * area - area to optimize
1560 * Optimizes an area. This function is called when finishing a
1562 * and the algorithms for area combination waits a area with
1563 * correct data (but can left unnecessary data in the area, to avoid
1566 XmuArea *XmuOptimizeArea(XmuArea *area)
1570 if (!area || !area->scanline)
1571 return (area);
1573 if (!area->scanline->next)
1575 XmuDestroyScanlineList(area->scanline);
1576 area->scanline = (XmuScanline *)0;
1577 return (area);
1580 pr = area->scanline;
1581 at = area->scanline->next;
1582 while (area->scanline && (!XmuValidScanline(area->scanline)
1583 || (area->scanline->next && area->scanline->y
1584 >= area->scanline->next->y)))
1586 area->scanline = area->scanline->next;
1588 pr = area->scanline;
1609 if (area->scanline && !area->scanline->next)
1611 XmuDestroyScanlineList(area->scanline);
1612 area->scanline = (XmuScanline *)NULL;
1615 return (area);