carta
XUnionRectWithRegion(3)

XUnionRectWithRegion3

Region arithmetic

Part of XIntersectRegion(3).

Usage

int XUnionRectWithRegion(XRectangle *rectangle, Region src_region, Region dest_region_return);

Arguments

dest_region_return

Returns the destination region.

dr_return

Returns 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 region.

r

Specifies the region.

rectangle

Specifies the rectangle.

sra
srb

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

src_region

Specifies the source region to be used.

Overview

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 results in dr_return.

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. Positive values shrink the size of the region, and negative values expand the region.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

From libx11 1.8.14-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.