XtAddExposureToRegion(3)
π NAME π
XtAddExposureToRegion β merge exposure events into a region, bestie β¨
πΈ SYNTAX πΈ
okay so first you gotta pull in the header, like:
#include <X11/Intrinsic.h>
and then the actual call is giving:
void XtAddExposureToRegion(XEvent *event, Region region);
π ARGUMENTS π
eventβ a pointer to theExposeorGraphicsExposeevent. yes it has to be one of those two, we'll get to why π«Άregionβ the region object, as defined over in<X11/Xutil.h>. she's the one getting updated, main character energy fr π
β¨ DESCRIPTION β¨
okay so here's the tea β XtAddExposureToRegion takes the rectangle that the exposure event is describing and the region you handed it, computes the union of the two, and then stores the result right back into region. so like, region comes out bigger (or at least never smaller), you feel me? π
and here's the important bit ngl: if event is not an Expose or a GraphicsExpose event, the function just... returns. no error, no drama, and region does not get modified. like she literally said "not my problem" and walked away, iconic behavior π
this function is what the exposure compression mechanism uses (peep Section 7.9.3 if you wanna go deeper, iykyk) π
π¦ SEE ALSO π¦
- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the whole page bestie!! this one's straight out of X Version 11, libXt 1.3.1 β slay, periodt ππ
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright 1993 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms