# Xlib Functions and Protocol Requests

This appendix provides two tables that relate to Xlib functions and the X protocol. The following table lists each Xlib function (in alphabetical order) and the corresponding protocol request that it generates.

## Protocol requests made by each Xlib function

Xlib Function | Protocol Request
--- | ---
| ForceScreenSaver
| ChangeHosts
| ChangeHosts
| ChangeSaveSet
| AllocColor
| AllocColorCells
| AllocColorPlanes
| AllocNamedColor
| AllowEvents
| ChangeKeyboardControl
| ChangeKeyboardControl
| Bell
| ChangeActivePointerGrab
| ChangeGC
| ChangeKeyboardControl
| ChangeKeyboardMapping
| ChangePointerControl
| ChangeProperty
| ChangeSaveSet
| ChangeWindowAttributes
| CirculateWindow
| CirculateWindow
| CirculateWindow
| ClearArea
| ClearArea
| ConfigureWindow
| ConvertSelection
| CopyArea
| CopyColormapAndFree
| CopyGC
| CopyPlane
| CreateGC
CreatePixmap
FreeGC
PutImage
| CreateColormap
| CreateGlyphCursor
| CreateGC
| CreateGlyphCursor
| CreatePixmap
| CreateCursor
`XCreatePixmapFromData` | CreateGC
CreatePixmap
FreeGC
PutImage
| CreateWindow
| CreateWindow
| ChangeWindowAttributes
| DeleteProperty
| DestroySubwindows
| DestroyWindow
| SetAccessControl
| PolyArc
| PolyArc
| ImageText8
| ImageText16
| PolySegment
| PolyLine
| PolyPoint
| PolyPoint
| PolyRectangle
| PolyRectangle
| PolySegment
| PolyText8
| PolyText16
| PolyText8
| PolyText16
| SetAccessControl
| GetProperty
| GetProperty
| PolyFillArc
| PolyFillArc
| FillPoly
| PolyFillRectangle
| PolyFillRectangle
| ForceScreenSaver
| FreeColormap
| FreeColors
| FreeCursor
| CloseFont
| FreeGC
| FreePixmap
| GetAtomName
| GetProperty
| GetFontPath
| GetGeometry
| GetProperty
| GetProperty
| GetImage
| GetInputFocus
| GetKeyboardControl
| GetKeyboardMapping
| GetModifierMapping
| GetMotionEvents
| GetProperty
| GetPointerControl
| GetPointerMapping
| GetProperty
| GetScreenSaver
| GetSelectionOwner
| GetProperty
| GetProperty
| GetProperty
| GetProperty
| GetProperty
InternAtom
| GetProperty
| GetProperty
| GetProperty
| GetProperty
| GetProperty
InternAtom
| GetProperty
| GetWindowAttributes
GetGeometry
| GetProperty
| GetProperty
| GrabButton
| GrabKey
| GrabKeyboard
| GrabPointer
| GrabServer
| InternAtom
SendEvent
| QueryExtension
| InstallColormap
| InternAtom
| KillClient
| ListExtensions
| ListFonts
| ListFontsWithInfo
| ListHosts
| ListInstalledColormaps
| ListProperties
| OpenFont
| OpenFont
QueryFont
| LookupColor
| ConfigureWindow
| ConfigureWindow
MapWindow
| MapSubwindows
| MapWindow
| ConfigureWindow
| ConfigureWindow
| NoOperation
| CreateGC
| LookupColor
| PutImage
| QueryBestSize
| QueryBestSize
| QueryBestSize
| QueryBestSize
| QueryColors
| QueryColors
| QueryExtension
| QueryFont
| QueryKeymap
| QueryPointer
| QueryTextExtents
| QueryTextExtents
| QueryTree
| ConfigureWindow
| CreateGC
CreatePixmap
FreeGC
PutImage
| RecolorCursor
| ConfigureWindow
SendEvent
| ChangeSaveSet
| ChangeHosts
| ChangeHosts
| ReparentWindow
| ForceScreenSaver
| ConfigureWindow
| ConfigureWindow
| RotateProperties
| RotateProperties
| ChangeWindowAttributes
| SendEvent
| SetAccessControl
| ChangeGC
| ChangeGC
| ChangeProperty
| ChangeGC
| ChangeGC
| SetClipRectangles
| SetCloseDownMode
| ChangeProperty
| SetDashes
| ChangeGC
| ChangeGC
| ChangeGC
| SetFontPath
| ChangeGC
| ChangeGC
| ChangeGC
| ChangeProperty
| ChangeProperty
| SetInputFocus
| ChangeGC
| SetModifierMapping
| ChangeProperty
| ChangeGC
| SetPointerMapping
| ChangeProperty
| SetScreenSaver
| SetSelectionOwner
| ChangeProperty
| ChangeProperty
| ChangeGC
| ChangeGC
| ChangeGC
| ChangeProperty
| ChangeGC
| ChangeProperty
| ChangeGC
| ChangeProperty
| ChangeProperty
InternAtom
| ChangeProperty
| ChangeProperty
| ChangeProperty
| ChangeProperty
| ChangeProperty
| ChangeProperty
InternAtom
| ChangeProperty
| ChangeWindowAttributes
| ChangeWindowAttributes
| ChangeWindowAttributes
| ChangeWindowAttributes
| ConfigureWindow
| ChangeWindowAttributes
| ChangeProperty
| ChangeProperty
| ChangeProperty
| StoreColors
| StoreColors
| ChangeProperty
| StoreNamedColor
| GetInputFocus
`XSynchronize` | GetInputFocus
| TranslateCoordinates
| ChangeWindowAttributes
| UngrabButton
| UngrabKey
| UngrabKeyboard
| UngrabPointer
| UngrabServer
| UninstallColormap
| CloseFont
| UnmapSubwindows
| UnmapWindow
| WarpPointer
| SendEvent
UnmapWindow

The following table lists each X protocol request (in alphabetical order) and the Xlib functions that reference it.

## Xlib functions which use each Protocol Request

Protocol Request | Xlib Function
--- | ---
AllocColor |
AllocColorCells |
AllocColorPlanes |
AllocNamedColor |
AllowEvents |
Bell |
ChangeActivePointerGrab |
ChangeGC |
ChangeHosts |
ChangeKeyboardControl |
ChangeKeyboardMapping |
ChangePointerControl |
ChangeProperty |
ChangeSaveSet |
ChangeWindowAttributes |
CirculateWindow |
ClearArea |
CloseFont |
ConfigureWindow |
ConvertSelection |
CopyArea |
CopyColormapAndFree |
CopyGC |
CopyPlane |
CreateColormap |
CreateCursor |
CreateGC |
`XCreatePixmapFromData`
CreateGlyphCursor |
CreatePixmap |
`XCreatePixmapFromData`
CreateWindow |
DeleteProperty |
DestroySubwindows |
DestroyWindow |
FillPoly |
ForceScreenSaver |
FreeColormap |
FreeColors |
FreeCursor |
FreeGC |
`XCreatePixmapFromData`
FreePixmap |
GetAtomName |
GetFontPath |
GetGeometry |
GetImage |
GetInputFocus |
`XSynchronize`
GetKeyboardControl |
GetKeyboardMapping |
GetModifierMapping |
GetMotionEvents |
GetPointerControl |
GetPointerMapping |
GetProperty |
GetSelectionOwner |
GetWindowAttributes |
GrabButton |
GrabKey |
GrabKeyboard |
GrabPointer |
GrabServer |
ImageText8 |
ImageText16 |
InstallColormap |
InternAtom |
KillClient |
ListExtensions |
ListFonts |
ListFontsWithInfo |
ListHosts |
ListInstalledColormaps |
ListProperties |
LookupColor |
MapSubwindows |
MapWindow |
NoOperation |
OpenFont |
PolyArc |
PolyFillArc |
PolyFillRectangle |
PolyLine |
PolyPoint |
PolyRectangle |
PolySegment |
PolyText8 |
PolyText16 |
PutImage |
`XCreatePixmapFromData`
QueryBestSize |
QueryColors |
QueryExtension |
QueryFont |
QueryKeymap |
QueryPointer |
QueryTextExtents |
QueryTree |
RecolorCursor |
ReparentWindow |
RotateProperties |
SendEvent |
SetAccessControl |
SetClipRectangles |
SetCloseDownMode |
SetDashes |
SetFontPath |
SetInputFocus |
SetModifierMapping |
SetPointerMapping |
SetScreenSaver |
SetSelectionOwner |
StoreColors |
StoreNamedColor |
TranslateCoordinates |
UngrabButton |
UngrabKey |
UngrabKeyboard |
UngrabPointer |
UngrabServer |
UninstallColormap |
UnmapSubwindows | `XUnmapSubWindows`
UnmapWindow |
WarpPointer |