1XGraphicsExposeEvent(3) XLIB FUNCTIONS XGraphicsExposeEvent(3)
2
3
4
6 XGraphicsExposeEvent, XNoExposeEvent - GraphicsExpose and NoExpose
7 event structures
8
10 The structures for GraphicsExpose and NoExpose events contain:
11
12 typedef struct {
13 int type; /* GraphicsExpose */
14 unsigned long serial; /* # of last request processed by server */
15 Bool send_event; /* true if this came from a SendEvent request */
16 Display *display; /* Display the event was read from */
17 Drawable drawable;
18 int x, y;
19 int width, height;
20 int count; /* if nonzero, at least this many more */
21 int major_code; /* core is CopyArea or CopyPlane */
22 int minor_code; /* not defined in the core */
23 } XGraphicsExposeEvent;
24
25 typedef struct {
26 int type; /* NoExpose */
27 unsigned long serial; /* # of last request processed by server */
28 Bool send_event; /* true if this came from a SendEvent request */
29 Display *display; /* Display the event was read from */
30 Drawable drawable;
31 int major_code; /* core is CopyArea or CopyPlane */
32 int minor_code; /* not defined in the core */
33 } XNoExposeEvent;
34
35 When you receive these events, their structure members are set as fol‐
36 lows.
37
38 The type member is set to the event type constant name that uniquely
39 identifies it. For example, when the X server reports a GraphicsExpose
40 event to a client application, it sends an XGraphicsExposeEvent struc‐
41 ture with the type member set to GraphicsExpose. The display member is
42 set to a pointer to the display the event was read on. The send_event
43 member is set to True if the event came from a SendEvent protocol
44 request. The serial member is set from the serial number reported in
45 the protocol but expanded from the 16-bit least-significant bits to a
46 full 32-bit value. The window member is set to the window that is most
47 useful to toolkit dispatchers.
48
49 Both structures have these common members: drawable, major_code, and
50 minor_code. The drawable member is set to the drawable of the destina‐
51 tion region on which the graphics request was to be performed. The
52 major_code member is set to the graphics request initiated by the
53 client and can be either X_CopyArea or X_CopyPlane. If it is X_Copy‐
54 Area, a call to XCopyArea initiated the request. If it is X_CopyPlane,
55 a call to XCopyPlane initiated the request. These constants are
56 defined in <X11/Xproto.h>. The minor_code member, like the major_code
57 member, indicates which graphics request was initiated by the client.
58 However, the minor_code member is not defined by the core X protocol
59 and will be zero in these cases, although it may be used by an exten‐
60 sion.
61
62 The XGraphicsExposeEvent structure has these additional members: x, y,
63 width, height, and count. The x and y members are set to the coordi‐
64 nates relative to the drawable's origin and indicate the upper-left
65 corner of the rectangle. The width and height members are set to the
66 size (extent) of the rectangle. The count member is set to the number
67 of GraphicsExpose events to follow. If count is zero, no more Graphic‐
68 sExpose events follow for this window. However, if count is nonzero,
69 at least that number of GraphicsExpose events (and possibly more) are
70 to follow for this window.
71
73 XAnyEvent(3), XButtonEvent(3), XCreateWindowEvent(3), XCircula‐
74 teEvent(3), XCirculateRequestEvent(3), XColormapEvent(3), XConfig‐
75 ureEvent(3), XConfigureRequestEvent(3), XCopyArea(3),
76 XCrossingEvent(3), XDestroyWindowEvent(3), XErrorEvent(3), XEx‐
77 poseEvent(3), XFocusChangeEvent(3), XGravityEvent(3), XKeymapEvent(3),
78 XMapEvent(3), XMapRequestEvent(3), XPropertyEvent(3), XRepar‐
79 entEvent(3), XResizeRequestEvent(3), XSelectionClearEvent(3), XSelec‐
80 tionEvent(3), XSelectionRequestEvent(3), XUnmapEvent(3), XVisibili‐
81 tyEvent(3)
82 Xlib - C Language X Interface
83
84
85
86X Version 11 libX11 1.3.4 XGraphicsExposeEvent(3)