XEmptyRegion(3)
π
XEmptyRegion(3) β straight outta XLIB FUNCTIONS π
okay so this is the XEmptyRegion(3) page from the XLIB FUNCTIONS chapter β manual name right there, bestie, we're in Xlib land. It's giving "four functions that check regions" and honestly that's the whole vibe. π¦
πΈ NAME πΈ
XEmptyRegion, XEqualRegion, XPointInRegion, XRectInRegion β determine if regions are empty or equal. slay.
β¨ SYNTAX β¨
Bool XEmptyRegion(Region r);
Bool XEqualRegion(Region r1, Region r2);
Bool XPointInRegion(Region r, int x, int y);
int XRectInRegion(Region r, int x, int y, unsigned int width, unsigned
int height);
π ARGUMENTS π
rβ specifies the region.r1,r2β specify the two regions.width,heightβ specify the width and height, which define the rectangle.x,yβ specify the x and y coordinates, which define the point or the coordinates of the upper-left corner of the rectangle.
π₯ DESCRIPTION π₯
The XEmptyRegion function returns True if the region is empty. iconic behavior, no notes.
The XEqualRegion function returns True if the two regions have the same offset, size, and shape. matching offsets, matching sizes, matching shapes β it's giving twins.
The XPointInRegion function returns True if the point (x, y) is contained in the region r. point-in-region check, periodt.
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. three possible moods: in, out, and partially in β she contains multitudes.
π SEE ALSO π
XCreateRegion(3)XIntersectRegion(3)Xlib - C Language X Interface
okay that's the page β footer sign-off time: source/version says X Version 11 and libX11 1.8.14, the corner says XEmptyRegion(3), and no separate date is printed, so that's the whole footer tea as-is π«Άπ
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms