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 🌈


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