1
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
3
.\" Permission is hereby granted, free of charge, to any person obtaining
4
.\" a copy of this software and associated documentation files (the
5
.\" "Software"), to deal in the Software without restriction, including
6
.\" without limitation the rights to use, copy, modify, merge, publish,
7
.\" distribute, sublicense, and/or sell copies of the Software, and to
8
.\" permit persons to whom the Software is furnished to do so, subject to
9
.\" the following conditions:
11
.\" The above copyright notice and this permission notice shall be included
12
.\" in all copies or substantial portions of the Software.
14
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
18
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
.\" OTHER DEALINGS IN THE SOFTWARE.
22
.\" Except as contained in this notice, the name of the X Consortium shall
23
.\" not be used in advertising or otherwise to promote the sale, use or
24
.\" other dealings in this Software without prior written authorization
25
.\" from the X Consortium.
27
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
28
.\" Digital Equipment Corporation
30
.\" Portions Copyright \(co 1990, 1991 by
33
.\" Permission to use, copy, modify and distribute this documentation for
34
.\" any purpose and without fee is hereby granted, provided that the above
35
.\" copyright notice appears in all copies and that both that copyright notice
36
.\" and this permission notice appear in all copies, and that the names of
37
.\" Digital and Tektronix not be used in in advertising or publicity pertaining
38
.\" to this documentation without specific, written prior permission.
39
.\" Digital and Tektronix makes no representations about the suitability
40
.\" of this documentation for any purpose.
41
.\" It is provided ``as is'' without express or implied warranty.
46
\s+1\fBAppendix A\fP\s-1
48
\s+1\fBXlib Functions and Protocol Requests\fP\s-1
53
Appendix A: Xlib Functions and Protocol Requests
55
This appendix provides two tables that relate to Xlib functions
57
The following table lists each Xlib function (in alphabetical order)
58
and the corresponding protocol request that it generates.
65
Xlib Function Protocol Request
71
XActivateScreenSaver ForceScreenSaver
74
XAddToSaveSet ChangeSaveSet
75
XAllocColor AllocColor
76
XAllocColorCells AllocColorCells
77
XAllocColorPlanes AllocColorPlanes
78
XAllocNamedColor AllocNamedColor
79
XAllowEvents AllowEvents
80
XAutoRepeatOff ChangeKeyboardControl
81
XAutoRepeatOn ChangeKeyboardControl
83
XChangeActivePointerGrab ChangeActivePointerGrab
85
XChangeKeyboardControl ChangeKeyboardControl
86
XChangeKeyboardMapping ChangeKeyboardMapping
87
XChangePointerControl ChangePointerControl
88
XChangeProperty ChangeProperty
89
XChangeSaveSet ChangeSaveSet
90
XChangeWindowAttributes ChangeWindowAttributes
91
XCirculateSubwindows CirculateWindow
92
XCirculateSubwindowsDown CirculateWindow
93
XCirculateSubwindowsUp CirculateWindow
95
XClearWindow ClearArea
96
XConfigureWindow ConfigureWindow
97
XConvertSelection ConvertSelection
99
XCopyColormapAndFree CopyColormapAndFree
102
XCreateBitmapFromData CreateGC
106
XCreateColormap CreateColormap
107
XCreateFontCursor CreateGlyphCursor
109
XCreateGlyphCursor CreateGlyphCursor
110
XCreatePixmap CreatePixmap
111
XCreatePixmapCursor CreateCursor
112
XCreatePixmapFromData CreateGC
116
XCreateSimpleWindow CreateWindow
117
XCreateWindow CreateWindow
118
XDefineCursor ChangeWindowAttributes
119
XDeleteProperty DeleteProperty
120
XDestroySubwindows DestroySubwindows
121
XDestroyWindow DestroyWindow
122
XDisableAccessControl SetAccessControl
125
XDrawImageString ImageText8
126
XDrawImageString16 ImageText16
127
XDrawLine PolySegment
130
XDrawPoints PolyPoint
131
XDrawRectangle PolyRectangle
132
XDrawRectangles PolyRectangle
133
XDrawSegments PolySegment
134
XDrawString PolyText8
135
XDrawString16 PolyText16
137
XDrawText16 PolyText16
138
XEnableAccessControl SetAccessControl
139
XFetchBytes GetProperty
140
XFetchName GetProperty
142
XFillArcs PolyFillArc
143
XFillPolygon FillPoly
144
XFillRectangle PolyFillRectangle
145
XFillRectangles PolyFillRectangle
146
XForceScreenSaver ForceScreenSaver
147
XFreeColormap FreeColormap
148
XFreeColors FreeColors
149
XFreeCursor FreeCursor
152
XFreePixmap FreePixmap
153
XGetAtomName GetAtomName
154
XGetClassHint GetProperty
155
XGetFontPath GetFontPath
156
XGetGeometry GetGeometry
157
XGetIconName GetProperty
158
XGetIconSizes GetProperty
160
XGetInputFocus GetInputFocus
161
XGetKeyboardControl GetKeyboardControl
162
XGetKeyboardMapping GetKeyboardMapping
163
XGetModifierMapping GetModifierMapping
164
XGetMotionEvents GetMotionEvents
165
XGetNormalHints GetProperty
166
XGetPointerControl GetPointerControl
167
XGetPointerMapping GetPointerMapping
168
XGetRGBColormaps GetProperty
169
XGetScreenSaver GetScreenSaver
170
XGetSelectionOwner GetSelectionOwner
171
XGetSizeHints GetProperty
172
XGetTextProperty GetProperty
173
XGetTransientForHint GetProperty
174
XGetWMClientMachine GetProperty
175
XGetWMColormapWindows GetProperty
177
XGetWMHints GetProperty
178
XGetWMIconName GetProperty
179
XGetWMName GetProperty
180
XGetWMNormalHints GetProperty
181
XGetWMProtocols GetProperty
183
XGetWMSizeHints GetProperty
184
XGetWindowAttributes GetWindowAttributes
186
XGetWindowProperty GetProperty
187
XGetZoomHints GetProperty
188
XGrabButton GrabButton
190
XGrabKeyboard GrabKeyboard
191
XGrabPointer GrabPointer
192
XGrabServer GrabServer
193
XIconifyWindow InternAtom
195
XInitExtension QueryExtension
196
XInstallColormap InstallColormap
197
XInternAtom InternAtom
198
XKillClient KillClient
199
XListExtensions ListExtensions
201
XListFontsWithInfo ListFontsWithInfo
203
XListInstalledColormaps ListInstalledColormaps
204
XListProperties ListProperties
206
XLoadQueryFont OpenFont
208
XLookupColor LookupColor
209
XLowerWindow ConfigureWindow
210
XMapRaised ConfigureWindow
212
XMapSubwindows MapSubwindows
214
XMoveResizeWindow ConfigureWindow
215
XMoveWindow ConfigureWindow
217
XOpenDisplay CreateGC
218
XParseColor LookupColor
220
XQueryBestCursor QueryBestSize
221
XQueryBestSize QueryBestSize
222
XQueryBestStipple QueryBestSize
223
XQueryBestTile QueryBestSize
224
XQueryColor QueryColors
225
XQueryColors QueryColors
226
XQueryExtension QueryExtension
228
XQueryKeymap QueryKeymap
229
XQueryPointer QueryPointer
230
XQueryTextExtents QueryTextExtents
231
XQueryTextExtents16 QueryTextExtents
233
XRaiseWindow ConfigureWindow
234
XReadBitmapFile CreateGC
238
XRecolorCursor RecolorCursor
239
XReconfigureWMWindow ConfigureWindow
241
XRemoveFromSaveSet ChangeSaveSet
242
XRemoveHost ChangeHosts
243
XRemoveHosts ChangeHosts
244
XReparentWindow ReparentWindow
245
XResetScreenSaver ForceScreenSaver
246
XResizeWindow ConfigureWindow
247
XRestackWindows ConfigureWindow
248
XRotateBuffers RotateProperties
249
XRotateWindowProperties RotateProperties
250
XSelectInput ChangeWindowAttributes
252
XSetAccessControl SetAccessControl
254
XSetBackground ChangeGC
255
XSetClassHint ChangeProperty
256
XSetClipMask ChangeGC
257
XSetClipOrigin ChangeGC
258
XSetClipRectangles SetClipRectangles
259
XSetCloseDownMode SetCloseDownMode
260
XSetCommand ChangeProperty
262
XSetFillRule ChangeGC
263
XSetFillStyle ChangeGC
265
XSetFontPath SetFontPath
266
XSetForeground ChangeGC
267
XSetFunction ChangeGC
268
XSetGraphicsExposures ChangeGC
269
XSetIconName ChangeProperty
270
XSetIconSizes ChangeProperty
271
XSetInputFocus SetInputFocus
272
XSetLineAttributes ChangeGC
273
XSetModifierMapping SetModifierMapping
274
XSetNormalHints ChangeProperty
275
XSetPlaneMask ChangeGC
276
XSetPointerMapping SetPointerMapping
277
XSetRGBColormaps ChangeProperty
278
XSetScreenSaver SetScreenSaver
279
XSetSelectionOwner SetSelectionOwner
280
XSetSizeHints ChangeProperty
281
XSetStandardProperties ChangeProperty
284
XSetSubwindowMode ChangeGC
285
XSetTextProperty ChangeProperty
287
XSetTransientForHint ChangeProperty
288
XSetTSOrigin ChangeGC
289
XSetWMClientMachine ChangeProperty
290
XSetWMColormapWindows ChangeProperty
292
XSetWMHints ChangeProperty
293
XSetWMIconName ChangeProperty
294
XSetWMName ChangeProperty
295
XSetWMNormalHints ChangeProperty
296
XSetWMProperties ChangeProperty
297
XSetWMProtocols ChangeProperty
299
XSetWMSizeHints ChangeProperty
300
XSetWindowBackground ChangeWindowAttributes
301
XSetWindowBackgroundPixmap ChangeWindowAttributes
302
XSetWindowBorder ChangeWindowAttributes
303
XSetWindowBorderPixmap ChangeWindowAttributes
304
XSetWindowBorderWidth ConfigureWindow
305
XSetWindowColormap ChangeWindowAttributes
306
XSetZoomHints ChangeProperty
307
XStoreBuffer ChangeProperty
308
XStoreBytes ChangeProperty
309
XStoreColor StoreColors
310
XStoreColors StoreColors
311
XStoreName ChangeProperty
312
XStoreNamedColor StoreNamedColor
314
XSynchronize GetInputFocus
315
XTranslateCoordinates TranslateCoordinates
316
XUndefineCursor ChangeWindowAttributes
317
XUngrabButton UngrabButton
319
XUngrabKeyboard UngrabKeyboard
320
XUngrabPointer UngrabPointer
321
XUngrabServer UngrabServer
322
XUninstallColormap UninstallColormap
323
XUnloadFont CloseFont
324
XUnmapSubwindows UnmapSubwindows
325
XUnmapWindow UnmapWindow
326
XWarpPointer WarpPointer
327
XWithdrawWindow SendEvent
332
The following table lists each X protocol request (in alphabetical
333
order) and the Xlib functions that reference it.
339
Protocol Request Xlib Function
345
AllocColor XAllocColor
346
AllocColorCells XAllocColorCells
347
AllocColorPlanes XAllocColorPlanes
348
AllocNamedColor XAllocNamedColor
349
AllowEvents XAllowEvents
351
ChangeActivePointerGrab XChangeActivePointerGrab
362
XSetGraphicsExposures
374
ChangeKeyboardControl XAutoRepeatOff
376
XChangeKeyboardControl
377
ChangeKeyboardMapping XChangeKeyboardMapping
378
ChangePointerControl XChangePointerControl
379
ChangeProperty XChangeProperty
387
XSetStandardProperties
391
XSetWMColormapWindows
403
ChangeSaveSet XAddToSaveSet
406
ChangeWindowAttributes XChangeWindowAttributes
410
XSetWindowBackgroundPixmap
412
XSetWindowBorderPixmap
415
CirculateWindow XCirculateSubwindowsDown
416
XCirculateSubwindowsUp
422
ConfigureWindow XConfigureWindow
431
XSetWindowBorderWidth
432
ConvertSelection XConvertSelection
434
CopyColormapAndFree XCopyColormapAndFree
437
CreateColormap XCreateColormap
438
CreateCursor XCreatePixmapCursor
440
XCreateBitmapFromData
441
XCreatePixmapFromData
444
CreateGlyphCursor XCreateFontCursor
446
CreatePixmap XCreatePixmap
447
XCreateBitmapFromData
448
XCreatePixmapFromData
450
CreateWindow XCreateSimpleWindow
452
DeleteProperty XDeleteProperty
453
DestroySubwindows XDestroySubwindows
454
DestroyWindow XDestroyWindow
455
FillPoly XFillPolygon
456
ForceScreenSaver XActivateScreenSaver
459
FreeColormap XFreeColormap
460
FreeColors XFreeColors
461
FreeCursor XFreeCursor
463
XCreateBitmapFromData
464
XCreatePixmapFromData
466
FreePixmap XFreePixmap
467
GetAtomName XGetAtomName
468
GetFontPath XGetFontPath
469
GetGeometry XGetGeometry
472
GetInputFocus XGetInputFocus
475
GetKeyboardControl XGetKeyboardControl
476
GetKeyboardMapping XGetKeyboardMapping
477
GetModifierMapping XGetModifierMapping
478
GetMotionEvents XGetMotionEvents
479
GetPointerControl XGetPointerControl
480
GetPointerMapping XGetPointerMapping
481
GetProperty XFetchBytes
492
XGetWMColormapWindows
501
GetSelectionOwner XGetSelectionOwner
502
GetWindowAttributes XGetWindowAttributes
503
GrabButton XGrabButton
505
GrabKeyboard XGrabKeyboard
506
GrabPointer XGrabPointer
507
GrabServer XGrabServer
508
ImageText8 XDrawImageString
509
ImageText16 XDrawImageString16
510
InstallColormap XInstallColormap
511
InternAtom XGetWMColormapWindows
515
XSetWMColormapWindows
517
KillClient XKillClient
518
ListExtensions XListExtensions
520
ListFontsWithInfo XListFontsWithInfo
522
ListInstalledColormaps XListInstalledColormaps
523
ListProperties XListProperties
524
LookupColor XLookupColor
526
MapSubwindows XMapSubwindows
536
PolyFillRectangle XFillRectangle
541
PolyRectangle XDrawRectangle
543
PolySegment XDrawLine
545
PolyText8 XDrawString
547
PolyText16 XDrawString16
550
XCreateBitmapFromData
551
XCreatePixmapFromData
553
QueryBestSize XQueryBestCursor
557
QueryColors XQueryColor
559
QueryExtension XInitExtension
561
QueryFont XLoadQueryFont
563
QueryKeymap XQueryKeymap
564
QueryPointer XQueryPointer
565
QueryTextExtents XQueryTextExtents
568
RecolorCursor XRecolorCursor
569
ReparentWindow XReparentWindow
570
RotateProperties XRotateBuffers
571
XRotateWindowProperties
572
SendEvent XIconifyWindow
576
SetAccessControl XDisableAccessControl
579
SetClipRectangles XSetClipRectangles
580
SetCloseDownMode XSetCloseDownMode
582
SetFontPath XSetFontPath
583
SetInputFocus XSetInputFocus
584
SetModifierMapping XSetModifierMapping
585
SetPointerMapping XSetPointerMapping
586
SetScreenSaver XGetScreenSaver
588
SetSelectionOwner XSetSelectionOwner
589
StoreColors XStoreColor
591
StoreNamedColor XStoreNamedColor
592
TranslateCoordinates XTranslateCoordinates
593
UngrabButton XUngrabButton
595
UngrabKeyboard XUngrabKeyboard
596
UngrabPointer XUngrabPointer
597
UngrabServer XUngrabServer
598
UninstallColormap XUninstallColormap
599
UnmapSubwindows XUnmapSubWindows
600
UnmapWindow XUnmapWindow
602
WarpPointer XWarpPointer