Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateRegion(3X)

XEmptyRegion(3X)




XIntersectRegion(3X) XIntersectRegion(3X)
NAME XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion - perform region arithmetic SYNOPSIS XIntersectRegion (sra, srb, dr-return) Region sra,srb,dr-return XUnionRegion (sra, srb, dr-return) Region sra,srb,dr-return XUnionRectWithRegion (rectangle, src-region, dest-region) Rectangle *rectangle; Region src-region; Region dest-region; XSubtractRegion (sra, srb, dr-return) Region sra,srb,dr-return XXorRegion (sra, srb, dr-return) Region sra,srb,dr-return XOffsetRegion (r, dx, dy) Region r; int dx,dy; XShrinkRegion (r, dx, dy) Region r; int dx,dy; DESCRIPTION The XIntersectRegion function computes the intersection of two regions. The XUnionRegion function computes the union of two regions. The XUnionRectWithRegion function updates the destination region from a union of the specified rectangle and the specified source region. The XSubtractRegion function subtracts srb from sra and stores the result in dr-return. The XXorRegion function calculates the difference between the union and the intersection of two regions. The XOffsetRegion function moves the specified region by a specified amount. November, 1990 1



XIntersectRegion(3X) XIntersectRegion(3X)
The XShrinkRegion function reduces the specified region by a specified amount. Positive values shrink the size of the region, and negative values expand the region. Arguments These functions accept the following arguments: dest-region-return Returns the destination region. dr-return Stores the result of the computation. dx, dy Specify the x and y coordinates, which define the amount you want to move or shrink the specified re- gion. r Specifies the region. rectangle Specifies the rectangle. sra, srb Specify the two regions with which you want to per- form the computation. src-region Specifies the source region to be used. SEE ALSO XCreateRegion(3X), XEmptyRegion(3X)
Xlib - C Language Interface
2 November, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026