XDestroyRegion(3)

XDestroyRegion3

Create or destroy regions

Part of XCreateRegion(3).

Usage

Region XCreateRegion(void);

int XDestroyRegion(Region r);

Arguments

display

Specifies the connection to the X server.

gc

Specifies the GC.

r

Specifies the region.

Overview

The XCreateRegion function creates a new empty region.

The XSetRegion function sets the clip-mask in the GC to the specified region. The region is specified relative to the drawable's origin. The resulting GC clip origin is implementation-dependent. Once it is set in the GC, the region can be destroyed.

The XDestroyRegion function deallocates the storage associated with a specified region.

Releases

11 releases since Debian 4.0 (Etch); the text changed 10 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

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