Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XInterReg(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateRegion(3X)

XEmptyRegion(3X)

XIntersectRegion(3X)  —  X Version 11

NAME

XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion, XPointInRegion, XRectInRegion − region arthmetic

SYNTAX

XIntersectRegion(sra, srb, dr)
      Region sra, srb, dr;

XUnionRegion(sra, srb, dr)
      Region sra, srb, dr;

XUnionRectWithRegion(rectangle, src_region, dest_region)
     Rectangle ∗rectangle;
     Region src_region;
     Region dest_region;

XSubtractRegion(sra, srb, dr)
      Region sra, srb, dr;

XXorRegion(sra, srb, dr)
      Region sra, srb, dr;

XOffsetRegion(r, dx, dy)
      Region r;
      int dx, dy;

XShrinkRegion(r, dx, dy)
      Region r;
      int dx, dy;

int XPointInRegion(r, x, y)
      Region r;
      int x, y;

int XRectInRegion(r, x, y, width, height)
      Region r;
      int x, y;
      unsigned int width, height;

ARGUMENTS

drStores the result of the computation. 

dest_regionSpecifies the destination region. 

dx

dySpecify the x and y coordinates. 

rSpecifies the region. 

rectangleSpecifies the rectangle. 

sra

srbSpecify the two regions with which you want to perform the computation. 

src_regionSpecifies the source region to be used. 

width

heightSpecify the width and height. 

x

ySpecify the x and y coordinates. 

DESCRIPTION

The XIntersectRegion function computes the intersection of two regions.

The XUnionRegion function computes the union of two regions.

The XUnionRectWithRegion function creates the destination region from a union of the specified rectangle and the specified source region.

The XSubtractRegion function subtracts two regions.

The XXorRegion function calculates the difference between the union and intersection of two regions.

The XOffsetRegion function moves the specified region by a specified amount.

The XShrinkRegion function reduces the specified region by a specified amount.

The XPointInRegion function returns nonzero if the point x, y is contained in the region r.

The XRectInRegion function returns RectangleIn if the rectangle is entirely in the specified region, RectangleOut if the rectangle is entirely out of the specified region, and RectanglePart if the rectangle is partially in the specified region.

SEE ALSO

XCreateRegion(3X), XEmptyRegion(3X),
Xlib − C Language X Interface

1 March 1988

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