XGraphicsExposeEvent(3)
π XGraphicsExposeEvent(3) π
XLIB FUNCTIONS bestie, we're so back β¨
πΈ NAME πΈ
XGraphicsExposeEvent, XNoExposeEvent β the GraphicsExpose and NoExpose event structures. iconic, honestly π«Ά
β¨ STRUCTURES β¨
the structs for GraphicsExpose and NoExpose events contain these members, no cap:
typedef struct {
int type; /* GraphicsExpose */
unsigned long serial; /* # of last request processed by server */
Bool send_event; /* true if this came from a SendEvent request */
Display *display; /* Display the event was read from */
Drawable drawable;
int x, y;
int width, height;
int count; /* if nonzero, at least this many more */
int major_code; /* core is CopyArea or CopyPlane */
int minor_code; /* not defined in the core */
} XGraphicsExposeEvent;
typedef struct {
int type; /* NoExpose */
unsigned long serial; /* # of last request processed by server */
Bool send_event; /* true if this came from a SendEvent request */
Display *display; /* Display the event was read from */
Drawable drawable;
int major_code; /* core is CopyArea or CopyPlane */
int minor_code; /* not defined in the core */
} XNoExposeEvent;
when you receive these events, their structure members are set as follows. main character energy only π
- the
typemember is set to the event type constant name that uniquely identifies it. for example, when the X server reports a GraphicsExpose event to a client application, it sends anXGraphicsExposeEventstructure with thetypemember set toGraphicsExpose. - the
displaymember is set to a pointer to the display the event was read on. - the
send_eventmember is set toTrueif the event came from aSendEventprotocol request. - the
serialmember is set from the serial number reported in the protocol but expanded from the 16-bit least-significant bits to a full 32-bit value. - the
windowmember is set to the window that is most useful to toolkit dispatchers.
both structures have these common members: drawable, major_code, and minor_code.
- the
drawablemember is set to the drawable of the destination region on which the graphics request was to be performed. - the
major_codemember is set to the graphics request initiated by the client and can be eitherX_CopyAreaorX_CopyPlane. if it isX_CopyArea, a call toXCopyAreainitiated the request. if it isX_CopyPlane, a call toXCopyPlaneinitiated the request. these constants are defined inX11/Xproto.h. - the
minor_codemember, like themajor_codemember, indicates which graphics request was initiated by the client. however, theminor_codemember is not defined by the core X protocol and will be zero in these cases, although it may be used by an extension.
π«Ά lowkey note: minor_code being zero in those core cases is a whole thing, iykyk.
the XGraphicsExposeEvent structure has these additional members: x, y, width, height, and count.
- the
xandymembers are set to the coordinates relative to the drawable's origin and indicate the upper-left corner of the rectangle. - the
widthandheightmembers are set to the size (extent) of the rectangle. - the
countmember is set to the number of GraphicsExpose events to follow. ifcountis zero, no more GraphicsExpose events follow for this window. however, ifcountis nonzero, at least that number of GraphicsExpose events (and possibly more) are to follow for this window.
π¦ SEE ALSO π¦
XAnyEvent(3), XButtonEvent(3), XCreateWindowEvent(3), XCirculateEvent(3), XCirculateRequestEvent(3), XColormapEvent(3), XConfigureEvent(3), XConfigureRequestEvent(3), XCopyArea(3), XCrossingEvent(3), XDestroyWindowEvent(3), XErrorEvent(3), XExposeEvent(3), XFocusChangeEvent(3), XGravityEvent(3), XKeymapEvent(3), XMapEvent(3), XMapRequestEvent(3), XPropertyEvent(3), XReparentEvent(3), XResizeRequestEvent(3), XSelectionClearEvent(3), XSelectionEvent(3), XSelectionRequestEvent(3), XUnmapEvent(3), XVisibilityEvent(3)
Xlib - C Language X Interface
okay bye bestie π«Ά this page is from X Version 11, libX11 1.8.14, and it's filed under XGraphicsExposeEvent(3) β¨π
π¦ 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