From f2388fcb82e72ee921139e9a4c8f9223e4ae04cd Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 13 Jul 2010 07:22:41 +0000 Subject: keyboard-config libX11 libxcb git update 13/7/2010 --- libX11/configure.ac | 2 +- libX11/specs/libX11/AppA.xml | 2618 ++++++++++++++++----- libX11/specs/libX11/AppC.xml | 358 +-- libX11/specs/libX11/AppD.xml | 166 +- libX11/specs/libX11/CH01.xml | 49 +- libX11/specs/libX11/CH02.xml | 284 +-- libX11/specs/libX11/CH03.xml | 800 +++---- libX11/specs/libX11/CH04.xml | 308 +-- libX11/specs/libX11/CH05.xml | 70 +- libX11/specs/libX11/CH06.xml | 652 +++--- libX11/specs/libX11/CH07.xml | 582 ++--- libX11/specs/libX11/CH08.xml | 520 ++-- libX11/specs/libX11/CH09.xml | 226 +- libX11/specs/libX11/CH10.xml | 1400 +++++------ libX11/specs/libX11/CH11.xml | 286 +-- libX11/specs/libX11/CH12.xml | 724 +++--- libX11/specs/libX11/CH13.xml | 1120 ++++----- libX11/specs/libX11/CH14.xml | 508 ++-- libX11/specs/libX11/CH15.xml | 142 +- libX11/specs/libX11/CH16.xml | 298 +-- libX11/specs/libX11/glossary.xml | 502 ++-- libX11/specs/xmlrules.in | 5 + libxcb/configure.ac | 2 +- xorg-server/xkbdata.src/rules/base.xml.in | 70 +- xorg-server/xkbdata.src/symbols/br | 642 +++-- xorg-server/xkbdata.src/symbols/inet | 3649 ++++++++++++++--------------- xorg-server/xkbdata.src/symbols/keypad | 1161 ++++----- 27 files changed, 9288 insertions(+), 7856 deletions(-) diff --git a/libX11/configure.ac b/libX11/configure.ac index d54a318d5..9f749aae1 100644 --- a/libX11/configure.ac +++ b/libX11/configure.ac @@ -261,7 +261,7 @@ AM_CONDITIONAL(OS2, test x$os2 = xtrue) AC_ARG_WITH(launchd, AS_HELP_STRING([--with-launchd], [Build with support for Apple's launchd (default: auto)]), [LAUNCHD=$withval], [LAUNCHD=auto]) if test "x$LAUNCHD" = xauto; then unset LAUNCHD - AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no]) + AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [$PATH$PATH_SEPARATOR/sbin]) fi if test "x$LAUNCHD" = xyes ; then diff --git a/libX11/specs/libX11/AppA.xml b/libX11/specs/libX11/AppA.xml index 8c71b269d..a59bda63b 100644 --- a/libX11/specs/libX11/AppA.xml +++ b/libX11/specs/libX11/AppA.xml @@ -1,540 +1,2102 @@ Xlib Functions and Protocol Requests -This appendix provides two tables that relate to Xlib functions +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. - --------------------------------------------------------------------------- -Xlib Function Protocol Request --------------------------------------------------------------------------- -XActivateScreenSaver ForceScreenSaver -XAddHost ChangeHosts -XAddHosts ChangeHosts -XAddToSaveSet ChangeSaveSet -XAllocColor AllocColor -XAllocColorCells AllocColorCells -XAllocColorPlanes AllocColorPlanes -XAllocNamedColor AllocNamedColor -XAllowEvents AllowEvents -XAutoRepeatOff ChangeKeyboardControl -XAutoRepeatOn ChangeKeyboardControl -XBell Bell -XChangeActivePointerGrab ChangeActivePointerGrab -XChangeGC ChangeGC -XChangeKeyboardControl ChangeKeyboardControl -XChangeKeyboardMapping ChangeKeyboardMapping -XChangePointerControl ChangePointerControl -XChangeProperty ChangeProperty -XChangeSaveSet ChangeSaveSet -XChangeWindowAttributes ChangeWindowAttributes -XCirculateSubwindows CirculateWindow -XCirculateSubwindowsDown CirculateWindow -XCirculateSubwindowsUp CirculateWindow -XClearArea ClearArea -XClearWindow ClearArea -XConfigureWindow ConfigureWindow -XConvertSelection ConvertSelection -XCopyArea CopyArea -XCopyColormapAndFree CopyColormapAndFree -XCopyGC CopyGC -XCopyPlane CopyPlane -XCreateBitmapFromData CreateGC - CreatePixmap - FreeGC - PutImage -XCreateColormap CreateColormap -XCreateFontCursor CreateGlyphCursor -XCreateGC CreateGC -XCreateGlyphCursor CreateGlyphCursor -XCreatePixmap CreatePixmap -XCreatePixmapCursor CreateCursor -XCreatePixmapFromData CreateGC - CreatePixmap - FreeGC - PutImage -XCreateSimpleWindow CreateWindow -XCreateWindow CreateWindow -XDefineCursor ChangeWindowAttributes -XDeleteProperty DeleteProperty -XDestroySubwindows DestroySubwindows -XDestroyWindow DestroyWindow -XDisableAccessControl SetAccessControl -XDrawArc PolyArc -XDrawArcs PolyArc -XDrawImageString ImageText8 -XDrawImageString16 ImageText16 -XDrawLine PolySegment -XDrawLines PolyLine -XDrawPoint PolyPoint -XDrawPoints PolyPoint -XDrawRectangle PolyRectangle -XDrawRectangles PolyRectangle -XDrawSegments PolySegment -XDrawString PolyText8 -XDrawString16 PolyText16 -XDrawText PolyText8 -XDrawText16 PolyText16 -XEnableAccessControl SetAccessControl -XFetchBytes GetProperty -XFetchName GetProperty -XFillArc PolyFillArc -XFillArcs PolyFillArc -XFillPolygon FillPoly -XFillRectangle PolyFillRectangle -XFillRectangles PolyFillRectangle -XForceScreenSaver ForceScreenSaver -XFreeColormap FreeColormap -XFreeColors FreeColors -XFreeCursor FreeCursor -XFreeFont CloseFont -XFreeGC FreeGC -XFreePixmap FreePixmap -XGetAtomName GetAtomName -XGetClassHint GetProperty -XGetFontPath GetFontPath -XGetGeometry GetGeometry -XGetIconName GetProperty -XGetIconSizes GetProperty -XGetImage GetImage -XGetInputFocus GetInputFocus -XGetKeyboardControl GetKeyboardControl -XGetKeyboardMapping GetKeyboardMapping -XGetModifierMapping GetModifierMapping -XGetMotionEvents GetMotionEvents -XGetNormalHints GetProperty -XGetPointerControl GetPointerControl -XGetPointerMapping GetPointerMapping -XGetRGBColormaps GetProperty -XGetScreenSaver GetScreenSaver -XGetSelectionOwner GetSelectionOwner -XGetSizeHints GetProperty -XGetTextProperty GetProperty -XGetTransientForHint GetProperty -XGetWMClientMachine GetProperty -XGetWMColormapWindows GetProperty - InternAtom -XGetWMHints GetProperty -XGetWMIconName GetProperty -XGetWMName GetProperty -XGetWMNormalHints GetProperty -XGetWMProtocols GetProperty - InternAtom -XGetWMSizeHints GetProperty -XGetWindowAttributes GetWindowAttributes - GetGeometry -XGetWindowProperty GetProperty -XGetZoomHints GetProperty -XGrabButton GrabButton -XGrabKey GrabKey -XGrabKeyboard GrabKeyboard -XGrabPointer GrabPointer -XGrabServer GrabServer -XIconifyWindow InternAtom - SendEvent -XInitExtension QueryExtension -XInstallColormap InstallColormap -XInternAtom InternAtom -XKillClient KillClient -XListExtensions ListExtensions -XListFonts ListFonts -XListFontsWithInfo ListFontsWithInfo -XListHosts ListHosts -XListInstalledColormaps ListInstalledColormaps -XListProperties ListProperties -XLoadFont OpenFont -XLoadQueryFont OpenFont - QueryFont -XLookupColor LookupColor -XLowerWindow ConfigureWindow -XMapRaised ConfigureWindow - MapWindow -XMapSubwindows MapSubwindows -XMapWindow MapWindow -XMoveResizeWindow ConfigureWindow -XMoveWindow ConfigureWindow -XNoOp NoOperation -XOpenDisplay CreateGC -XParseColor LookupColor -XPutImage PutImage -XQueryBestCursor QueryBestSize -XQueryBestSize QueryBestSize -XQueryBestStipple QueryBestSize -XQueryBestTile QueryBestSize -XQueryColor QueryColors -XQueryColors QueryColors -XQueryExtension QueryExtension -XQueryFont QueryFont -XQueryKeymap QueryKeymap -XQueryPointer QueryPointer -XQueryTextExtents QueryTextExtents -XQueryTextExtents16 QueryTextExtents -XQueryTree QueryTree -XRaiseWindow ConfigureWindow -XReadBitmapFile CreateGC - CreatePixmap - FreeGC - PutImage -XRecolorCursor RecolorCursor -XReconfigureWMWindow ConfigureWindow - SendEvent -XRemoveFromSaveSet ChangeSaveSet -XRemoveHost ChangeHosts -XRemoveHosts ChangeHosts -XReparentWindow ReparentWindow -XResetScreenSaver ForceScreenSaver -XResizeWindow ConfigureWindow -XRestackWindows ConfigureWindow -XRotateBuffers RotateProperties -XRotateWindowProperties RotateProperties -XSelectInput ChangeWindowAttributes -XSendEvent SendEvent -XSetAccessControl SetAccessControl -XSetArcMode ChangeGC -XSetBackground ChangeGC -XSetClassHint ChangeProperty -XSetClipMask ChangeGC -XSetClipOrigin ChangeGC -XSetClipRectangles SetClipRectangles -XSetCloseDownMode SetCloseDownMode -XSetCommand ChangeProperty -XSetDashes SetDashes -XSetFillRule ChangeGC -XSetFillStyle ChangeGC -XSetFont ChangeGC -XSetFontPath SetFontPath -XSetForeground ChangeGC -XSetFunction ChangeGC -XSetGraphicsExposures ChangeGC -XSetIconName ChangeProperty -XSetIconSizes ChangeProperty -XSetInputFocus SetInputFocus -XSetLineAttributes ChangeGC -XSetModifierMapping SetModifierMapping -XSetNormalHints ChangeProperty -XSetPlaneMask ChangeGC -XSetPointerMapping SetPointerMapping -XSetRGBColormaps ChangeProperty -XSetScreenSaver SetScreenSaver -XSetSelectionOwner SetSelectionOwner -XSetSizeHints ChangeProperty -XSetStandardProperties ChangeProperty -XSetState ChangeGC -XSetStipple ChangeGC -XSetSubwindowMode ChangeGC -XSetTextProperty ChangeProperty -XSetTile ChangeGC -XSetTransientForHint ChangeProperty -XSetTSOrigin ChangeGC -XSetWMClientMachine ChangeProperty -XSetWMColormapWindows ChangeProperty - InternAtom -XSetWMHints ChangeProperty -XSetWMIconName ChangeProperty -XSetWMName ChangeProperty -XSetWMNormalHints ChangeProperty -XSetWMProperties ChangeProperty -XSetWMProtocols ChangeProperty - InternAtom -XSetWMSizeHints ChangeProperty -XSetWindowBackground ChangeWindowAttributes -XSetWindowBackgroundPixmap ChangeWindowAttributes -XSetWindowBorder ChangeWindowAttributes -XSetWindowBorderPixmap ChangeWindowAttributes -XSetWindowBorderWidth ConfigureWindow -XSetWindowColormap ChangeWindowAttributes -XSetZoomHints ChangeProperty -XStoreBuffer ChangeProperty -XStoreBytes ChangeProperty -XStoreColor StoreColors -XStoreColors StoreColors -XStoreName ChangeProperty -XStoreNamedColor StoreNamedColor -XSync GetInputFocus -XSynchronize GetInputFocus -XTranslateCoordinates TranslateCoordinates -XUndefineCursor ChangeWindowAttributes -XUngrabButton UngrabButton -XUngrabKey UngrabKey -XUngrabKeyboard UngrabKeyboard -XUngrabPointer UngrabPointer -XUngrabServer UngrabServer -XUninstallColormap UninstallColormap -XUnloadFont CloseFont -XUnmapSubwindows UnmapSubwindows -XUnmapWindow UnmapWindow -XWarpPointer WarpPointer -XWithdrawWindow SendEvent - UnmapWindow - + + Protocol requests made by each Xlib function + + + + Xlib Function + Protocol Request + + + + + XActivateScreenSaver + ForceScreenSaver + + XAddHost + ChangeHosts + + + XAddHosts + ChangeHosts + + + XAddToSaveSet + ChangeSaveSet + + + XAllocColor + AllocColor + + + XAllocColorCells + AllocColorCells + + + XAllocColorPlanes + AllocColorPlanes + + + XAllocNamedColor + AllocNamedColor + + + XAllowEvents + AllowEvents + + + XAutoRepeatOff + ChangeKeyboardControl + + + XAutoRepeatOn + ChangeKeyboardControl + + + XBell + Bell + + + XChangeActivePointerGrab + ChangeActivePointerGrab + + + XChangeGC + ChangeGC + + + XChangeKeyboardControl + ChangeKeyboardControl + + + XChangeKeyboardMapping + ChangeKeyboardMapping + + + XChangePointerControl + ChangePointerControl + + + XChangeProperty + ChangeProperty + + + XChangeSaveSet + ChangeSaveSet + + + XChangeWindowAttributes + ChangeWindowAttributes + + + XCirculateSubwindows + CirculateWindow + + + XCirculateSubwindowsDown + CirculateWindow + + + XCirculateSubwindowsUp + CirculateWindow + + + XClearArea + ClearArea + + + XClearWindow + ClearArea + + + XConfigureWindow + ConfigureWindow + + + XConvertSelection + ConvertSelection + + + XCopyArea + CopyArea + + + XCopyColormapAndFree + CopyColormapAndFree + + + XCopyGC + CopyGC + + + XCopyPlane + CopyPlane + + + XCreateBitmapFromData + CreateGC + + + + CreatePixmap + + + + FreeGC + + + + PutImage + + + XCreateColormap + CreateColormap + + + XCreateFontCursor + CreateGlyphCursor + + + XCreateGC + CreateGC + + + XCreateGlyphCursor + CreateGlyphCursor + + + XCreatePixmap + CreatePixmap + + + XCreatePixmapCursor + CreateCursor + + + XCreatePixmapFromData + CreateGC + + + + CreatePixmap + + + + FreeGC + + + + PutImage + + + XCreateSimpleWindow + CreateWindow + + + XCreateWindow + CreateWindow + + + XDefineCursor + ChangeWindowAttributes + + + XDeleteProperty + DeleteProperty + + + XDestroySubwindows + DestroySubwindows + + + XDestroyWindow + DestroyWindow + + + XDisableAccessControl + SetAccessControl + + + XDrawArc + PolyArc + + + XDrawArcs + PolyArc + + + XDrawImageString + ImageText8 + + + XDrawImageString16 + ImageText16 + + + XDrawLine + PolySegment + + + XDrawLines + PolyLine + + + XDrawPoint + PolyPoint + + + XDrawPoints + PolyPoint + + + XDrawRectangle + PolyRectangle + + + XDrawRectangles + PolyRectangle + + + XDrawSegments + PolySegment + + + XDrawString + PolyText8 + + + XDrawString16 + PolyText16 + + + XDrawText + PolyText8 + + + XDrawText16 + PolyText16 + + + XEnableAccessControl + SetAccessControl + + + XFetchBytes + GetProperty + + + XFetchName + GetProperty + + + XFillArc + PolyFillArc + + + XFillArcs + PolyFillArc + + + XFillPolygon + FillPoly + + + XFillRectangle + PolyFillRectangle + + + XFillRectangles + PolyFillRectangle + + + XForceScreenSaver + ForceScreenSaver + + + XFreeColormap + FreeColormap + + + XFreeColors + FreeColors + + + XFreeCursor + FreeCursor + + + XFreeFont + CloseFont + + + XFreeGC + FreeGC + + + XFreePixmap + FreePixmap + + + XGetAtomName + GetAtomName + + + XGetClassHint + GetProperty + + + XGetFontPath + GetFontPath + + + XGetGeometry + GetGeometry + + + XGetIconName + GetProperty + + + XGetIconSizes + GetProperty + + + XGetImage + GetImage + + + XGetInputFocus + GetInputFocus + + + XGetKeyboardControl + GetKeyboardControl + + + XGetKeyboardMapping + GetKeyboardMapping + + + XGetModifierMapping + GetModifierMapping + + + XGetMotionEvents + GetMotionEvents + + + XGetNormalHints + GetProperty + + + XGetPointerControl + GetPointerControl + + + XGetPointerMapping + GetPointerMapping + + + XGetRGBColormaps + GetProperty + + + XGetScreenSaver + GetScreenSaver + + + XGetSelectionOwner + GetSelectionOwner + + + XGetSizeHints + GetProperty + + + XGetTextProperty + GetProperty + + + XGetTransientForHint + GetProperty + + + XGetWMClientMachine + GetProperty + + + XGetWMColormapWindows + GetProperty + + + + InternAtom + + + XGetWMHints + GetProperty + + + XGetWMIconName + GetProperty + + + XGetWMName + GetProperty + + + XGetWMNormalHints + GetProperty + + + XGetWMProtocols + GetProperty + + + + InternAtom + + + XGetWMSizeHints + GetProperty + + + XGetWindowAttributes + GetWindowAttributes + + + + GetGeometry + + + XGetWindowProperty + GetProperty + + + XGetZoomHints + GetProperty + + + XGrabButton + GrabButton + + + XGrabKey + GrabKey + + + XGrabKeyboard + GrabKeyboard + + + XGrabPointer + GrabPointer + + + XGrabServer + GrabServer + + + XIconifyWindow + InternAtom + + + + SendEvent + + + XInitExtension + QueryExtension + + + XInstallColormap + InstallColormap + + + XInternAtom + InternAtom + + + XKillClient + KillClient + + + XListExtensions + ListExtensions + + + XListFonts + ListFonts + + + XListFontsWithInfo + ListFontsWithInfo + + + XListHosts + ListHosts + + + XListInstalledColormaps + ListInstalledColormaps + + + XListProperties + ListProperties + + + XLoadFont + OpenFont + + + XLoadQueryFont + OpenFont + + + + QueryFont + + + XLookupColor + LookupColor + + + XLowerWindow + ConfigureWindow + + + XMapRaised + ConfigureWindow + + + + MapWindow + + + XMapSubwindows + MapSubwindows + + + XMapWindow + MapWindow + + + XMoveResizeWindow + ConfigureWindow + + + XMoveWindow + ConfigureWindow + + + XNoOp + NoOperation + + + XOpenDisplay + CreateGC + + + XParseColor + LookupColor + + + XPutImage + PutImage + + + XQueryBestCursor + QueryBestSize + + + XQueryBestSize + QueryBestSize + + + XQueryBestStipple + QueryBestSize + + + XQueryBestTile + QueryBestSize + + + XQueryColor + QueryColors + + + XQueryColors + QueryColors + + + XQueryExtension + QueryExtension + + + XQueryFont + QueryFont + + + XQueryKeymap + QueryKeymap + + + XQueryPointer + QueryPointer + + + XQueryTextExtents + QueryTextExtents + + + XQueryTextExtents16 + QueryTextExtents + + + XQueryTree + QueryTree + + + XRaiseWindow + ConfigureWindow + + + XReadBitmapFile + CreateGC + + + + CreatePixmap + + + + FreeGC + + + + PutImage + + + XRecolorCursor + RecolorCursor + + + XReconfigureWMWindow + ConfigureWindow + + + + SendEvent + + + XRemoveFromSaveSet + ChangeSaveSet + + + XRemoveHost + ChangeHosts + + + XRemoveHosts + ChangeHosts + + + XReparentWindow + ReparentWindow + + + XResetScreenSaver + ForceScreenSaver + + + XResizeWindow + ConfigureWindow + + + XRestackWindows + ConfigureWindow + + + XRotateBuffers + RotateProperties + + + XRotateWindowProperties + RotateProperties + + + XSelectInput + ChangeWindowAttributes + + + XSendEvent + SendEvent + + + XSetAccessControl + SetAccessControl + + + XSetArcMode + ChangeGC + + + XSetBackground + ChangeGC + + + XSetClassHint + ChangeProperty + + + XSetClipMask + ChangeGC + + + XSetClipOrigin + ChangeGC + + + XSetClipRectangles + SetClipRectangles + + + XSetCloseDownMode + SetCloseDownMode + + + XSetCommand + ChangeProperty + + + XSetDashes + SetDashes + + + XSetFillRule + ChangeGC + + + XSetFillStyle + ChangeGC + + + XSetFont + ChangeGC + + + XSetFontPath + SetFontPath + + + XSetForeground + ChangeGC + + + XSetFunction + ChangeGC + + + XSetGraphicsExposures + ChangeGC + + + XSetIconName + ChangeProperty + + + XSetIconSizes + ChangeProperty + + + XSetInputFocus + SetInputFocus + + + XSetLineAttributes + ChangeGC + + + XSetModifierMapping + SetModifierMapping + + + XSetNormalHints + ChangeProperty + + + XSetPlaneMask + ChangeGC + + + XSetPointerMapping + SetPointerMapping + + + XSetRGBColormaps + ChangeProperty + + + XSetScreenSaver + SetScreenSaver + + + XSetSelectionOwner + SetSelectionOwner + + + XSetSizeHints + ChangeProperty + + + XSetStandardProperties + ChangeProperty + + + XSetState + ChangeGC + + + XSetStipple + ChangeGC + + + XSetSubwindowMode + ChangeGC + + + XSetTextProperty + ChangeProperty + + + XSetTile + ChangeGC + + + XSetTransientForHint + ChangeProperty + + + XSetTSOrigin + ChangeGC + + + XSetWMClientMachine + ChangeProperty + + + XSetWMColormapWindows + ChangeProperty + + + + InternAtom + + + XSetWMHints + ChangeProperty + + + XSetWMIconName + ChangeProperty + + + XSetWMName + ChangeProperty + + + XSetWMNormalHints + ChangeProperty + + + XSetWMProperties + ChangeProperty + + + XSetWMProtocols + ChangeProperty + + + + InternAtom + + + XSetWMSizeHints + ChangeProperty + + + XSetWindowBackground + ChangeWindowAttributes + + + XSetWindowBackgroundPixmap + ChangeWindowAttributes + + + XSetWindowBorder + ChangeWindowAttributes + + + XSetWindowBorderPixmap + ChangeWindowAttributes + + + XSetWindowBorderWidth + ConfigureWindow + + + XSetWindowColormap + ChangeWindowAttributes + + + XSetZoomHints + ChangeProperty + + + XStoreBuffer + ChangeProperty + + + XStoreBytes + ChangeProperty + + + XStoreColor + StoreColors + + + XStoreColors + StoreColors + + + XStoreName + ChangeProperty + + + XStoreNamedColor + StoreNamedColor + + + XSync + GetInputFocus + + + XSynchronize + GetInputFocus + + + XTranslateCoordinates + TranslateCoordinates + + + XUndefineCursor + ChangeWindowAttributes + + + XUngrabButton + UngrabButton + + + XUngrabKey + UngrabKey + + + XUngrabKeyboard + UngrabKeyboard + + + XUngrabPointer + UngrabPointer + + + XUngrabServer + UngrabServer + + + XUninstallColormap + UninstallColormap + + + XUnloadFont + CloseFont + + + XUnmapSubwindows + UnmapSubwindows + + + XUnmapWindow + UnmapWindow + + + XWarpPointer + WarpPointer + + + XWithdrawWindow + SendEvent + + + + UnmapWindow + + + +
The following table lists each X protocol request (in alphabetical order) and the Xlib functions that reference it. - --------------------------------------------------------------------------- -Protocol Request Xlib Function --------------------------------------------------------------------------- -AllocColor XAllocColor -AllocColorCells XAllocColorCells -AllocColorPlanes XAllocColorPlanes -AllocNamedColor XAllocNamedColor -AllowEvents XAllowEvents -Bell XBell -ChangeActivePointerGrab XChangeActivePointerGrab -ChangeGC XChangeGC - XSetArcMode - XSetBackground - XSetClipMask - XSetClipOrigin - XSetFillRule - XSetFillStyle - XSetFont - XSetForeground - XSetFunction - XSetGraphicsExposures - XSetLineAttributes - XSetPlaneMask - XSetState - XSetStipple - XSetSubwindowMode - XSetTile - XSetTSOrigin -ChangeHosts XAddHost - XAddHosts - XRemoveHost - XRemoveHosts -ChangeKeyboardControl XAutoRepeatOff - XAutoRepeatOn - XChangeKeyboardControl -ChangeKeyboardMapping XChangeKeyboardMapping -ChangePointerControl XChangePointerControl -ChangeProperty XChangeProperty - XSetClassHint - XSetCommand - XSetIconName - XSetIconSizes - XSetNormalHints - XSetRGBColormaps - XSetSizeHints - XSetStandardProperties - XSetTextProperty - XSetTransientForHint - XSetWMClientMachine - XSetWMColormapWindows - XSetWMHints - XSetWMIconName - XSetWMName - XSetWMNormalHints - XSetWMProperties - XSetWMProtocols - XSetWMSizeHints - XSetZoomHints - XStoreBuffer - XStoreBytes - XStoreName -ChangeSaveSet XAddToSaveSet - XChangeSaveSet - XRemoveFromSaveSet -ChangeWindowAttributes XChangeWindowAttributes - XDefineCursor - XSelectInput - XSetWindowBackground - XSetWindowBackgroundPixmap - XSetWindowBorder - XSetWindowBorderPixmap - XSetWindowColormap - XUndefineCursor -CirculateWindow XCirculateSubwindowsDown - XCirculateSubwindowsUp - XCirculateSubwindows -ClearArea XClearArea - XClearWindow -CloseFont XFreeFont - XUnloadFont -ConfigureWindow XConfigureWindow - XLowerWindow - XMapRaised - XMoveResizeWindow - XMoveWindow - XRaiseWindow - XReconfigureWMWindow - XResizeWindow - XRestackWindows - XSetWindowBorderWidth -ConvertSelection XConvertSelection -CopyArea XCopyArea -CopyColormapAndFree XCopyColormapAndFree -CopyGC XCopyGC -CopyPlane XCopyPlane -CreateColormap XCreateColormap -CreateCursor XCreatePixmapCursor -CreateGC XCreateGC - XCreateBitmapFromData - XCreatePixmapFromData - XOpenDisplay - XReadBitmapFile -CreateGlyphCursor XCreateFontCursor - XCreateGlyphCursor -CreatePixmap XCreatePixmap - XCreateBitmapFromData - XCreatePixmapFromData - XReadBitmapFile -CreateWindow XCreateSimpleWindow - XCreateWindow -DeleteProperty XDeleteProperty -DestroySubwindows XDestroySubwindows -DestroyWindow XDestroyWindow -FillPoly XFillPolygon -ForceScreenSaver XActivateScreenSaver - XForceScreenSaver - XResetScreenSaver -FreeColormap XFreeColormap -FreeColors XFreeColors -FreeCursor XFreeCursor -FreeGC XFreeGC - XCreateBitmapFromData - XCreatePixmapFromData - XReadBitmapFile -FreePixmap XFreePixmap -GetAtomName XGetAtomName -GetFontPath XGetFontPath -GetGeometry XGetGeometry - XGetWindowAttributes -GetImage XGetImage -GetInputFocus XGetInputFocus - XSync - XSynchronize -GetKeyboardControl XGetKeyboardControl -GetKeyboardMapping XGetKeyboardMapping -GetModifierMapping XGetModifierMapping -GetMotionEvents XGetMotionEvents -GetPointerControl XGetPointerControl -GetPointerMapping XGetPointerMapping -GetProperty XFetchBytes - XFetchName - XGetClassHint - XGetIconName - XGetIconSizes - XGetNormalHints - XGetRGBColormaps - XGetSizeHints - XGetTextProperty - XGetTransientForHint - XGetWMClientMachine - XGetWMColormapWindows - XGetWMHints - XGetWMIconName - XGetWMName - XGetWMNormalHints - XGetWMProtocols - XGetWMSizeHints - XGetWindowProperty - XGetZoomHints -GetSelectionOwner XGetSelectionOwner -GetWindowAttributes XGetWindowAttributes -GrabButton XGrabButton -GrabKey XGrabKey -GrabKeyboard XGrabKeyboard -GrabPointer XGrabPointer -GrabServer XGrabServer -ImageText8 XDrawImageString -ImageText16 XDrawImageString16 -InstallColormap XInstallColormap -InternAtom XGetWMColormapWindows - XGetWMProtocols - XIconifyWindow - XInternAtom - XSetWMColormapWindows - XSetWMProtocols -KillClient XKillClient -ListExtensions XListExtensions -ListFonts XListFonts -ListFontsWithInfo XListFontsWithInfo -ListHosts XListHosts -ListInstalledColormaps XListInstalledColormaps -ListProperties XListProperties -LookupColor XLookupColor - XParseColor -MapSubwindows XMapSubwindows -MapWindow XMapRaised - XMapWindow -NoOperation XNoOp -OpenFont XLoadFont - XLoadQueryFont -PolyArc XDrawArc - XDrawArcs -PolyFillArc XFillArc - XFillArcs -PolyFillRectangle XFillRectangle - XFillRectangles -PolyLine XDrawLines -PolyPoint XDrawPoint - XDrawPoints -PolyRectangle XDrawRectangle - XDrawRectangles -PolySegment XDrawLine - XDrawSegments -PolyText8 XDrawString - XDrawText -PolyText16 XDrawString16 - XDrawText16 -PutImage XPutImage - XCreateBitmapFromData - XCreatePixmapFromData - XReadBitmapFile -QueryBestSize XQueryBestCursor - XQueryBestSize - XQueryBestStipple - XQueryBestTile -QueryColors XQueryColor - XQueryColors -QueryExtension XInitExtension - XQueryExtension -QueryFont XLoadQueryFont - XQueryFont -QueryKeymap XQueryKeymap -QueryPointer XQueryPointer -QueryTextExtents XQueryTextExtents - XQueryTextExtents16 -QueryTree XQueryTree -RecolorCursor XRecolorCursor -ReparentWindow XReparentWindow -RotateProperties XRotateBuffers - XRotateWindowProperties -SendEvent XIconifyWindow - XReconfigureWMWindow - XSendEvent - XWithdrawWindow -SetAccessControl XDisableAccessControl - XEnableAccessControl - XSetAccessControl -SetClipRectangles XSetClipRectangles -SetCloseDownMode XSetCloseDownMode -SetDashes XSetDashes -SetFontPath XSetFontPath -SetInputFocus XSetInputFocus -SetModifierMapping XSetModifierMapping -SetPointerMapping XSetPointerMapping -SetScreenSaver XGetScreenSaver - XSetScreenSaver -SetSelectionOwner XSetSelectionOwner -StoreColors XStoreColor - XStoreColors -StoreNamedColor XStoreNamedColor -TranslateCoordinates XTranslateCoordinates -UngrabButton XUngrabButton -UngrabKey XUngrabKey -UngrabKeyboard XUngrabKeyboard -UngrabPointer XUngrabPointer -UngrabServer XUngrabServer -UninstallColormap XUninstallColormap -UnmapSubwindows XUnmapSubWindows -UnmapWindow XUnmapWindow - XWithdrawWindow -WarpPointer XWarpPointer - - + + Xlib functions which use each Protocol Request + + + + Protocol Request + Xlib Function + + + + + AllocColor + XAllocColor + + + AllocColorCells + XAllocColorCells + + + AllocColorPlanes + XAllocColorPlanes + + + AllocNamedColor + XAllocNamedColor + + + AllowEvents + XAllowEvents + + + Bell + XBell + + + ChangeActivePointerGrab + XChangeActivePointerGrab + + + ChangeGC + XChangeGC + + + + XSetArcMode + + + + XSetBackground + + + + XSetClipMask + + + + XSetClipOrigin + + + + XSetFillRule + + + + XSetFillStyle + + + + XSetFont + + + + XSetForeground + + + + XSetFunction + + + + XSetGraphicsExposures + + + + XSetLineAttributes + + + + XSetPlaneMask + + + + XSetState + + + + XSetStipple + + + + XSetSubwindowMode + + + + XSetTile + + + + XSetTSOrigin + + + ChangeHosts + XAddHost + + + + XAddHosts + + + + XRemoveHost + + + + XRemoveHosts + + + ChangeKeyboardControl + XAutoRepeatOff + + + + XAutoRepeatOn + + + + XChangeKeyboardControl + + + ChangeKeyboardMapping + XChangeKeyboardMapping + + + ChangePointerControl + XChangePointerControl + + + ChangeProperty + XChangeProperty + + + + XSetClassHint + + + + XSetCommand + + + + XSetIconName + + + + XSetIconSizes + + + + XSetNormalHints + + + + XSetRGBColormaps + + + + XSetSizeHints + + + + XSetStandardProperties + + + + XSetTextProperty + + + + XSetTransientForHint + + + + XSetWMClientMachine + + + + XSetWMColormapWindows + + + + XSetWMHints + + + + XSetWMIconName + + + + XSetWMName + + + + XSetWMNormalHints + + + + XSetWMProperties + + + + XSetWMProtocols + + + + XSetWMSizeHints + + + + XSetZoomHints + + + + XStoreBuffer + + + + XStoreBytes + + + + XStoreName + + + ChangeSaveSet + XAddToSaveSet + + + + XChangeSaveSet + + + + XRemoveFromSaveSet + + + ChangeWindowAttributes + XChangeWindowAttributes + + + + XDefineCursor + + + + XSelectInput + + + + XSetWindowBackground + + + + XSetWindowBackgroundPixmap + + + + XSetWindowBorder + + + + XSetWindowBorderPixmap + + + + XSetWindowColormap + + + + XUndefineCursor + + + CirculateWindow + XCirculateSubwindowsDown + + + + XCirculateSubwindowsUp + + + + XCirculateSubwindows + + + ClearArea + XClearArea + + + + XClearWindow + + + CloseFont + XFreeFont + + + + XUnloadFont + + + ConfigureWindow + XConfigureWindow + + + + XLowerWindow + + + + XMapRaised + + + + XMoveResizeWindow + + + + XMoveWindow + + + + XRaiseWindow + + + + XReconfigureWMWindow + + + + XResizeWindow + + + + XRestackWindows + + + + XSetWindowBorderWidth + + + ConvertSelection + XConvertSelection + + + CopyArea + XCopyArea + + + CopyColormapAndFree + XCopyColormapAndFree + + + CopyGC + XCopyGC + + + CopyPlane + XCopyPlane + + + CreateColormap + XCreateColormap + + + CreateCursor + XCreatePixmapCursor + + + CreateGC + XCreateGC + + + + XCreateBitmapFromData + + + + XCreatePixmapFromData + + + + XOpenDisplay + + + + XReadBitmapFile + + + CreateGlyphCursor + XCreateFontCursor + + + + XCreateGlyphCursor + + + CreatePixmap + XCreatePixmap + + + + XCreateBitmapFromData + + + + XCreatePixmapFromData + + + + XReadBitmapFile + + + CreateWindow + XCreateSimpleWindow + + + + XCreateWindow + + + DeleteProperty + XDeleteProperty + + + DestroySubwindows + XDestroySubwindows + + + DestroyWindow + XDestroyWindow + + + FillPoly + XFillPolygon + + + ForceScreenSaver + XActivateScreenSaver + + + + XForceScreenSaver + + + + XResetScreenSaver + + + FreeColormap + XFreeColormap + + + FreeColors + XFreeColors + + + FreeCursor + XFreeCursor + + + FreeGC + XFreeGC + + + + XCreateBitmapFromData + + + + XCreatePixmapFromData + + + + XReadBitmapFile + + + FreePixmap + XFreePixmap + + + GetAtomName + XGetAtomName + + + GetFontPath + XGetFontPath + + + GetGeometry + XGetGeometry + + + + XGetWindowAttributes + + + GetImage + XGetImage + + + GetInputFocus + XGetInputFocus + + + + XSync + + + + XSynchronize + + + GetKeyboardControl + XGetKeyboardControl + + + GetKeyboardMapping + XGetKeyboardMapping + + + GetModifierMapping + XGetModifierMapping + + + GetMotionEvents + XGetMotionEvents + + + GetPointerControl + XGetPointerControl + + + GetPointerMapping + XGetPointerMapping + + + GetProperty + XFetchBytes + + + + XFetchName + + + + XGetClassHint + + + + XGetIconName + + + + XGetIconSizes + + + + XGetNormalHints + + + + XGetRGBColormaps + + + + XGetSizeHints + + + + XGetTextProperty + + + + XGetTransientForHint + + + + XGetWMClientMachine + + + + XGetWMColormapWindows + + + + XGetWMHints + + + + XGetWMIconName + + + + XGetWMName + + + + XGetWMNormalHints + + + + XGetWMProtocols + + + + XGetWMSizeHints + + + + XGetWindowProperty + + + + XGetZoomHints + + + GetSelectionOwner + XGetSelectionOwner + + + GetWindowAttributes + XGetWindowAttributes + + + GrabButton + XGrabButton + + + GrabKey + XGrabKey + + + GrabKeyboard + XGrabKeyboard + + + GrabPointer + XGrabPointer + + + GrabServer + XGrabServer + + + ImageText8 + XDrawImageString + + + ImageText16 + XDrawImageString16 + + + InstallColormap + XInstallColormap + + + InternAtom + XGetWMColormapWindows + + + + XGetWMProtocols + + + + XIconifyWindow + + + + XInternAtom + + + + XSetWMColormapWindows + + + + XSetWMProtocols + + + KillClient + XKillClient + + + ListExtensions + XListExtensions + + + ListFonts + XListFonts + + + ListFontsWithInfo + XListFontsWithInfo + + + ListHosts + XListHosts + + + ListInstalledColormaps + XListInstalledColormaps + + + ListProperties + XListProperties + + + LookupColor + XLookupColor + + + + XParseColor + + + MapSubwindows + XMapSubwindows + + + MapWindow + XMapRaised + + + + XMapWindow + + + NoOperation + XNoOp + + + OpenFont + XLoadFont + + + + XLoadQueryFont + + + PolyArc + XDrawArc + + + + XDrawArcs + + + PolyFillArc + XFillArc + + + + XFillArcs + + + PolyFillRectangle + XFillRectangle + + + + XFillRectangles + + + PolyLine + XDrawLines + + + PolyPoint + XDrawPoint + + + + XDrawPoints + + + PolyRectangle + XDrawRectangle + + + + XDrawRectangles + + + PolySegment + XDrawLine + + + + XDrawSegments + + + PolyText8 + XDrawString + + + + XDrawText + + + PolyText16 + XDrawString16 + + + + XDrawText16 + + + PutImage + XPutImage + + + + XCreateBitmapFromData + + + + XCreatePixmapFromData + + + + XReadBitmapFile + + + QueryBestSize + XQueryBestCursor + + + + XQueryBestSize + + + + XQueryBestStipple + + + + XQueryBestTile + + + QueryColors + XQueryColor + + + + XQueryColors + + + QueryExtension + XInitExtension + + + + XQueryExtension + + + QueryFont + XLoadQueryFont + + + + XQueryFont + + + QueryKeymap + XQueryKeymap + + + QueryPointer + XQueryPointer + + + QueryTextExtents + XQueryTextExtents + + + + XQueryTextExtents16 + + + QueryTree + XQueryTree + + + RecolorCursor + XRecolorCursor + + + ReparentWindow + XReparentWindow + + + RotateProperties + XRotateBuffers + + + + XRotateWindowProperties + + + SendEvent + XIconifyWindow + + + + XReconfigureWMWindow + + + + XSendEvent + + + + XWithdrawWindow + + + SetAccessControl + XDisableAccessControl + + + + XEnableAccessControl + + + + XSetAccessControl + + + SetClipRectangles + XSetClipRectangles + + + SetCloseDownMode + XSetCloseDownMode + + + SetDashes + XSetDashes + + + SetFontPath + XSetFontPath + + + SetInputFocus + XSetInputFocus + + + SetModifierMapping + XSetModifierMapping + + + SetPointerMapping + XSetPointerMapping + + + SetScreenSaver + XGetScreenSaver + + + + XSetScreenSaver + + + SetSelectionOwner + XSetSelectionOwner + + + StoreColors + XStoreColor + + + + XStoreColors + + + StoreNamedColor + XStoreNamedColor + + + TranslateCoordinates + XTranslateCoordinates + + + UngrabButton + XUngrabButton + + + UngrabKey + XUngrabKey + + + UngrabKeyboard + XUngrabKeyboard + + + UngrabPointer + XUngrabPointer + + + UngrabServer + XUngrabServer + + + UninstallColormap + XUninstallColormap + + + UnmapSubwindows + XUnmapSubWindows + + + UnmapWindow + XUnmapWindow + + + + XWithdrawWindow + + + WarpPointer + XWarpPointer + + + +
diff --git a/libX11/specs/libX11/AppC.xml b/libX11/specs/libX11/AppC.xml index 4af2de3fd..69838dc8b 100644 --- a/libX11/specs/libX11/AppC.xml +++ b/libX11/specs/libX11/AppC.xml @@ -47,7 +47,7 @@ and - Bool XQueryExtension + Bool XQueryExtension Display *display char *name int *major_opcode_return @@ -98,9 +98,9 @@ function determines if the named extension is present. If the extension is not present, XQueryExtension returns -False; +False; otherwise, it returns -True. +True. If the extension is present, XQueryExtension returns the major opcode for the extension to major_opcode_return; @@ -132,7 +132,7 @@ are all considered different names. - char **XListExtensions + char **XListExtensions Display *display int *nextensions_return @@ -165,7 +165,7 @@ Returns the number of extensions listed. The -XListExtensions +XListExtensions function returns a list of all extensions supported by the server. If the data returned by the server is in the Latin Portable Character Encoding, then the returned strings are in the Host Portable Character Encoding. @@ -174,7 +174,7 @@ Otherwise, the result is implementation-dependent. - XFreeExtensionList + XFreeExtensionList char **list @@ -216,7 +216,7 @@ called stubs. In extensions, stubs first should check to see if they have initialized themselves on a connection. If they have not, they then should call -XInitExtension +XInitExtension to attempt to initialize themselves on the connection. @@ -229,9 +229,9 @@ called when these events occur. The -XExtCodes +XExtCodes structure returns the information from -XInitExtension +XInitExtension and is defined in <X11/Xlib.h> : @@ -257,7 +257,7 @@ typedef struct _XExtCodes { /* public to extension, cannot be changed */ - XExtCodes *XInitExtension + XExtCodes *XInitExtension Display *display char *name @@ -312,7 +312,7 @@ are all considered different names. The extension number in the -XExtCodes +XExtCodes structure is needed in the other calls that follow. This extension number is unique only to a single connection. @@ -323,7 +323,7 @@ This extension number is unique only to a single connection. - XExtCodes *XAddExtension + XExtCodes *XAddExtension Display *display @@ -347,7 +347,7 @@ Specifies the connection to the X server. For local Xlib extensions, the XAddExtension function allocates the -XExtCodes +XExtCodes structure, bumps the extension number count, and chains the extension onto the extension list. (This permits extensions to Xlib without requiring server extensions.) @@ -371,7 +371,7 @@ extension. - int XESetCloseDisplay + int XESetCloseDisplay Display *display int extension int (*proc)() @@ -417,14 +417,14 @@ Specifies the procedure to call when the display is closed. The XESetCloseDisplay function defines a procedure to be called whenever -XCloseDisplay +XCloseDisplay is called. It returns any previously defined procedure, usually NULL. When -XCloseDisplay +XCloseDisplay is called, your procedure is called with these arguments: @@ -439,7 +439,7 @@ with these arguments: - int *XESetCreateGC + int *XESetCreateGC Display *display int extension int (*proc)() @@ -507,7 +507,7 @@ your procedure is called with these arguments: - int *XESetCopyGC + int *XESetCopyGC Display *display int extension int (*proc)() @@ -568,7 +568,7 @@ your procedure is called with these arguments: - int *XESetFreeGC + int *XESetFreeGC Display *display int extension int (*proc)() @@ -640,7 +640,7 @@ your procedure is called with these arguments: - int *XESetCreateFont + int *XESetCreateFont Display *display int extension int (*proc)() @@ -686,7 +686,7 @@ Specifies the procedure to call when a font is created. The XESetCreateFont function defines a procedure to be called whenever -XLoadQueryFont +XLoadQueryFont and XQueryFont are called. @@ -695,7 +695,7 @@ It returns any previously defined procedure, usually NULL. When -XLoadQueryFont +XLoadQueryFont or XQueryFont is called, @@ -721,7 +721,7 @@ your procedure is called with these arguments: - int *XESetFreeFont + int *XESetFreeFont Display *display int extension int (*proc)() @@ -767,14 +767,14 @@ Specifies the procedure to call when a font is freed. The XESetFreeFont function defines a procedure to be called whenever -XFreeFont +XFreeFont is called. It returns any previously defined procedure, usually NULL. When -XFreeFont +XFreeFont is called, your procedure is called with these arguments: @@ -799,19 +799,19 @@ and XESetEventToWire functions allow you to define new events to the library. An -XEvent +XEvent structure always has a type code (type -int) +int) as the first component. This uniquely identifies what kind of event it is. The second component is always the serial number (type -unsigned -long) +unsigned +long) of the last request processed by the server. The third component is always a Boolean (type -Bool) +Bool) indicating whether the event came from a -SendEvent +SendEvent protocol request. The fourth component is always a pointer to the display the event was read from. @@ -824,7 +824,7 @@ from the protocol to put in this component, initialize it to zero. There is an implementation limit such that your host event structure size cannot be bigger than the size of the -XEvent +XEvent union of structures. There also is no way to guarantee that more than 24 elements or 96 characters in the structure will be fully portable between machines. @@ -833,7 +833,7 @@ in the structure will be fully portable between machines. - int *XESetWireToEvent + int *XESetWireToEvent Display *display int event_number Status (*proc)() @@ -880,9 +880,9 @@ The XESetWireToEvent function defines a procedure to be called when an event needs to be converted from wire format -(xEvent) +(xEvent) to host format -(XEvent). +(XEvent). The event number defines which protocol event number to install a conversion procedure for. XESetWireToEvent @@ -916,21 +916,21 @@ Your procedure must return status to indicate if the conversion succeeded. The re argument is a pointer to where the host format event should be stored, and the event argument is the 32-byte wire event structure. In the -XEvent +XEvent structure you are creating, you must fill in the five required members of the event structure. You should fill in the type member with the type specified for the -xEvent +xEvent structure. You should copy all other members from the -xEvent +xEvent structure (wire format) to the -XEvent +XEvent structure (host format). Your conversion procedure should return -True +True if the event should be placed in the queue or -False +False if it should not be placed in the queue. @@ -945,7 +945,7 @@ with the event and use the return value. - unsigned long _XSetLastRequestRead + unsigned long_XSetLastRequestRead Display *display xGenericReply *rep @@ -989,7 +989,7 @@ serial number in the event. - Status *XESetEventToWire + Status *XESetEventToWire Display *display int event_number int (*proc)() @@ -1036,9 +1036,9 @@ The XESetEventToWire function defines a procedure to be called when an event needs to be converted from host format -(XEvent) +(XEvent) to wire format -(xEvent) +(xEvent) form. The event number defines which protocol event number to install a conversion procedure for. @@ -1074,16 +1074,16 @@ The re argument is a pointer to the host format event, and the event argument is a pointer to where the 32-byte wire event structure should be stored. You should fill in the type with the type from the -XEvent +XEvent structure. All other members then should be copied from the host format to the -xEvent +xEvent structure. XESetWireToError - Bool *XESetWireToError + Bool *XESetWireToError Display *display int error_number Bool (*proc)() @@ -1165,22 +1165,22 @@ Bool (*proc)(display The he argument is a pointer to where the host format error should be stored. The structure pointed at by he is guaranteed to be as large as an -XEvent +XEvent structure and so can be cast to a type larger than an -XErrorEvent +XErrorEvent to store additional values. If the error is to be completely ignored by Xlib (for example, several protocol error structures will be combined into one Xlib error), then the function should return -False; +False; otherwise, it should return -True. +True. XESetError - int *XESetError + int *XESetError Display *display int extension int (*proc)() @@ -1255,7 +1255,7 @@ int (*proc)(display_XReply +_XReply returned to. @@ -1266,13 +1266,13 @@ the client's error handler is called. (For further information, see section 11.8.2.) If your procedure returns nonzero, the error is suppressed, and -_XReply +_XReply returns the value of ret_code. XESetErrorString - char *XESetErrorString + char *XESetErrorString Display *display int extension char *(*proc)() @@ -1316,7 +1316,7 @@ Specifies the procedure to call to obtain an error string. The -XGetErrorText +XGetErrorText function returns a string to the user for an error. XESetErrorString allows you to define a procedure to be called that @@ -1348,7 +1348,7 @@ error message into buffer. - void *XESSetPrintErrorValues + void *XESetPrintErrorValues Display *display int extension void (*proc)() @@ -1421,9 +1421,9 @@ void (*proc)(display The structure pointed at by ev is guaranteed to be as large as an -XEvent +XEvent structure and so can be cast to a type larger than an -XErrorEvent +XErrorEvent to obtain additional values set by using XESetWireToError. The underlying type of the fp argument is system dependent; @@ -1432,7 +1432,7 @@ on a POSIX-compliant system, fp should be cast to type FILE*. - int *XESetFlushGC + int *XESetFlushGC Display *display int extension int *(*proc)() @@ -1484,7 +1484,7 @@ function, but is called when a GC cache needs to be updated in the server. - int *XESetCopyGC + int *XESetCopyGC Display *display int extension int *(*proc)() @@ -1562,13 +1562,13 @@ Hooks onto Xlib Data Structures Various Xlib data structures have provisions for extension procedures to chain extension supplied data onto a list. These structures are -GC, -Visual, -Screen, -ScreenFormat, -Display, +GC, +Visual, +Screen, +ScreenFormat, +Display, and -XFontStruct. +XFontStruct. Because the list pointer is always the first member in the structure, a single set of procedures can be used to manipulate the data on these lists. @@ -1624,7 +1624,7 @@ union { Display *display; - XExtData **XEHeadOfExtensionList + XExtData **XEHeadOfExtensionList XEDataObject object @@ -1654,7 +1654,7 @@ In concert with XEHeadOfExtensionList allows an extension to attach arbitrary data to any of the structures of types contained in -XEDataObject. +XEDataObject. @@ -1662,7 +1662,7 @@ of types contained in - XAddToExtensionList + XAddToExtensionList XExtData **structure XExtData *ext_data @@ -1702,7 +1702,7 @@ before calling this function. - XExtData *XFindOnExtensionList + XExtData *XFindOnExtensionList struct_XExtData **structure int number @@ -1746,14 +1746,14 @@ There is no way to find additional structures. The -XAllocID +XAllocID macro, which allocates and returns a resource ID, is defined in <X11/Xlib.h>. XAllocID - XAllocID + XAllocID Display *display @@ -1775,7 +1775,7 @@ Specifies the connection to the X server. This macro is a call through the -Display +Display structure to an internal resource ID allocator. It returns a resource ID that you can use when creating new resources. @@ -1788,7 +1788,7 @@ macro allocates and returns an array of resource ID. - XAllocIDs + XAllocIDs Display *display XID *ids_return int count @@ -1832,7 +1832,7 @@ Specifies the number of resource IDs requested. This macro is a call through the -Display +Display structure to an internal resource ID allocator. It returns resource IDs to the array supplied by the caller. To correctly handle automatic reuse of resource IDs, you must call @@ -1856,7 +1856,7 @@ in its GC. The FlushGC macro checks the dirty bits in the library's GC structure and calls -_XFlushGCCache +_XFlushGCCache if any elements have changed. The FlushGC @@ -1865,7 +1865,7 @@ macro is defined as follows: - FlushGC + FlushGC Display *display GC gc @@ -1904,18 +1904,18 @@ using it, so if you only stored the value in the cache without forcing a protocol request, the resource might be destroyed before being set into the GC. You can use the -_XFlushGCCache +_XFlushGCCache procedure to force the cache to be flushed. The -_XFlushGCCache +_XFlushGCCache procedure is defined as follows: _XFlushGCCache - _XFlushGCCache + _XFlushGCCache Display *display GC gc @@ -1958,7 +1958,7 @@ single calls to be transformed into poly requests. This may dramatically improve performance of programs that are not written using poly requests. A pointer to an -xReq, +xReq, called last_req in the display structure, is the last request being processed. By checking that the last request type, drawable, gc, and other options are the same as the new one @@ -1967,7 +1967,7 @@ to just extend the previous graphics request by extending the length field of the request and appending the data to the buffer. This can improve performance by five times or more in naive programs. For example, here is the source for the -XDrawPoint +XDrawPoint stub. (Writing extension stubs is discussed in the next section.) @@ -2034,7 +2034,7 @@ there is a symbol defined in of EPERBATCH on the number of requests batched. Most of the performance benefit occurs in the first few merged requests. Note that -FlushGC +FlushGC is called before picking up the value of last_req, because it may modify this field. @@ -2110,7 +2110,7 @@ The length field in a request must equal the minimum length required to contain the request. If the specified length is smaller or larger than the required length, the server should generate a -BadLength +BadLength error. Unused bytes in a request are not required to be zero. Extensions should be designed in such a way that long protocol requests @@ -2133,9 +2133,9 @@ used in replies, errors, and events. To help but not cure portability problems to certain machines, the -B16 +B16 and -B32 +B32 macros have been defined so that they can become bitfield specifications on some machines. For example, on a Cray, @@ -2170,20 +2170,20 @@ typedef struct _DoSomethingReq { If a core protocol request has a single 32-bit argument, you need not declare a request structure in your extension header file. Instead, such requests use the -xResourceReq +xResourceReq structure in <X11/Xproto.h>. This structure is used for any request whose single argument is a -Window, -Pixmap, -Drawable, -GContext, -Font, -Cursor, -Colormap, -Atom, +Window, +Pixmap, +Drawable, +GContext, +Font, +Cursor, +Colormap, +Atom, or -VisualID. +VisualID. @@ -2223,7 +2223,7 @@ but all requests are padded to be multiples of four bytes long. A few protocol requests take no arguments at all. Instead, they use the -xReq +xReq structure in <X11/Xproto.h>, which contains only a reqType and a length (and a pad byte). @@ -2280,11 +2280,11 @@ The reply structure is longer than 32 bytes. Only -GetWindowAttributes, -QueryFont, -QueryKeymap, +GetWindowAttributesl, +QueryFont, +QueryKeymap, and -GetKeyboardControl +GetKeyboardControl have reply structures longer than 32 bytes in the core protocol. @@ -2293,7 +2293,7 @@ A few protocol requests return replies that contain no data. <X11/Xproto.h> does not define reply structures for these. Instead, they use the -xGenericReply +xGenericReply structure, which contains only a type, length, and sequence number (and sufficient padding to make it 32 bytes long). @@ -2343,7 +2343,7 @@ Two calls, which are generally implemented as macros, have been provided. - LockDisplay + LockDisplay Display *display @@ -2354,7 +2354,7 @@ Two calls, which are generally implemented as macros, have been provided. UnlockDisplay - UnlockDisplay + UnlockDisplay Display *display @@ -2393,7 +2393,7 @@ the name of the protocol request as declared in <X11/Xproto.h> except with X_ removed. Each one declares a -Display +Display structure pointer, called dpy, and a pointer to a request structure, called req, which is of the appropriate type. @@ -2413,15 +2413,15 @@ then use GetEmptyReq (DoSomething, req); If the protocol request has a single 32-bit argument (such as a -Pixmap, -Window, -Drawable, -Atom, +Pixmap, +Window, +Drawable, +Atom, and so on), then use GetResReq. The second argument to the macro is the 32-bit object. -X_MapWindow +X_MapWindow is a good example. @@ -2431,8 +2431,8 @@ is a good example. GetResReq (DoSomething, rid, req); The rid argument is the -Pixmap, -Window, +Pixmap, +Window, or other resource ID. @@ -2456,13 +2456,13 @@ req->arg2 = arg2; ... A few stub procedures (such as -XCreateGC +XCreateGC and XCreatePixmap) return a resource ID to the caller but pass a resource ID as an argument to the protocol request. Such procedures use the macro -XAllocID +XAllocID to allocate a resource ID from the range of IDs that were assigned to this client when it opened the connection. @@ -2477,11 +2477,11 @@ return (rid); Finally, some stub procedures transmit a fixed amount of variable-length data after the request. Typically, these procedures (such as -XMoveWindow +XMoveWindow and XSetBackground) are special cases of more general functions like -XMoveResizeWindow +XMoveResizeWindow and XChangeGC. These procedures use @@ -2498,7 +2498,7 @@ Variable Length Arguments Some protocol requests take additional variable-length data that follow the -xDoSomethingReq +xDoSomethingReq structure. The format of this data varies from request to request. Some requests require a sequence of 8-bit bytes, @@ -2520,25 +2520,25 @@ then you must round the length up and shift it before adding: req->length += (nbytes+3)>>2; To transmit variable-length data, use the -Data +Data macros. If the data fits into the output buffer, then this macro copies it to the buffer. If it does not fit, however, the -Data +Data macro calls _XSend, which transmits first the contents of the buffer and then your data. The -Data +Data macros take three arguments: the display, a pointer to the beginning of the data, and the number of bytes to be sent. - Data + Data display (char * @@ -2563,11 +2563,11 @@ Use the appropriate macro when sending byte, short, or long data. If the protocol request requires a reply, then call the procedure -_XSend +_XSend instead of the -Data +Data macro. -_XSend +_XSend takes the same arguments, but because it sends your data immediately instead of copying it into the output buffer (which would later be flushed anyway by the following call on @@ -2580,21 +2580,21 @@ Replies If the protocol request has a reply, then call -_XReply +_XReply after you have finished dealing with all the fixed-length and variable-length arguments. -_XReply +_XReply flushes the output buffer and waits for an -xReply +xReply packet to arrive. If any events arrive in the meantime, -_XReply +_XReply places them in the queue for later use. _XReply - Status _XReply + Status _XReply Display *display xReply *rep int extra @@ -2650,26 +2650,26 @@ should be discarded. The -_XReply +_XReply function waits for a reply packet and copies its contents into the specified rep. -_XReply +_XReply handles error and event packets that occur before the reply is received. -_XReply +_XReply takes four arguments: A -Display +Display * structure A pointer to a reply structure (which must be cast to an -xReply +xReply *) @@ -2684,7 +2684,7 @@ in the reply structure A Boolean that indicates whether -_XReply +_XReply is to discard any additional bytes beyond those it was told to read @@ -2695,38 +2695,38 @@ beyond those it was told to read Because most reply structures are 32 bytes long, the third argument is usually 0. The only core protocol exceptions are the replies to -GetWindowAttributes, -QueryFont, -QueryKeymap, +GetWindowAttributesl, +QueryFont, +QueryKeymap, and -GetKeyboardControl, +GetKeyboardControl, which have longer replies. The last argument should be -False +False if the reply structure is followed by additional variable-length data (such as a list or string). It should be -True +True if there is not any variable-length data. This last argument is provided for upward-compatibility reasons to allow a client to communicate properly with a hypothetical later version of the server that sends more data than the client expected. For example, some later version of -GetWindowAttributes +GetWindowAttributesl might use a larger, but compatible, -xGetWindowAttributesReply +xGetWindowAttributesReply that contains additional attribute data at the end. -_XReply +_XReply returns -True +True if it received a reply successfully or -False +False if it received any sort of error. @@ -2750,11 +2750,11 @@ return (rep.ret4); If there is variable-length data after the reply, change the -True +True to -False, +False, and use the appropriate -_XRead +_XRead function to read the variable-length data. @@ -2762,7 +2762,7 @@ function to read the variable-length data. - _XRead + _XRead Display *display char *data_return long nbytes @@ -2814,7 +2814,7 @@ function reads the specified number of bytes into data_return. - _XRead16 + _XRead16 Display *display short *data_return long nbytes @@ -2868,7 +2868,7 @@ into the specified array as shorts. - _XRead32 + _XRead32 Display *display long *data_return long nbytes @@ -2922,7 +2922,7 @@ into the specified array as longs. - _XRead16Pad + _XRead16Pad Display *display short *data_return long nbytes @@ -2979,7 +2979,7 @@ reads and discards up to two additional pad bytes. - _XReadPad + _XReadPad Display *display char *data_return long nbytes @@ -3041,7 +3041,7 @@ Synchronous Calling Each procedure should have a call, just before returning to the user, to a macro called -SyncHandle. +SyncHandle. If synchronous mode is enabled (see XSynchronize), the request is sent immediately. @@ -3079,7 +3079,7 @@ critical section: - char *_XAllocScratch + char *_XAllocScratch Display *display unsignedlong nbytes @@ -3136,7 +3136,7 @@ critical sections: - char *_XAllocTemp + char *_XAllocTemp Display *display unsignedlong nbytes @@ -3175,7 +3175,7 @@ The following function returns the storage: - void _XFreeTemp + void _XFreeTemp Display *display char *buf unsignedlong nbytes @@ -3250,45 +3250,45 @@ avoided completely if at all possible. This code may run on machines with 16-bit ints. So, if any integer argument, variable, or return value either can take only nonnegative values or is declared as a -CARD16 +CARD16 in the protocol, be sure to declare it as -unsigned -int +unsigned +int and not as -int. +int. (This, of course, does not apply to Booleans or enumerations.) Similarly, if any integer argument or return value is declared -CARD32 +CARD32 in the protocol, declare it as an -unsigned -long +unsigned +long and not as -int +int or -long. +long. This also goes for any internal variables that may take on values larger than the maximum 16-bit -unsigned -int. +unsigned +int. The library currently assumes that a -char +char is 8 bits, a -short +short is 16 bits, an -int +int is 16 or 32 bits, and a -long +long is 32 bits. The -PackData +PackData macro is a half-hearted attempt to deal with the possibility of 32 bit shorts. However, much more work is needed to make this work properly. @@ -3310,7 +3310,7 @@ in <stdio.h> and is the number of file descriptors supported on the system) of type -XExtCodes. +XExtCodes. Make sure these are all initialized to NULL. @@ -3333,7 +3333,7 @@ Make sure to establish a close display handler to allow you to zero the entry. Do whatever other initialization your extension requires. (For example, install event handlers and so on.) Your initialization procedure would normally return a pointer to the -XExtCodes +XExtCodes structure for this extension, which is what would normally be found in your array of pointers. @@ -3343,7 +3343,7 @@ be found in your array of pointers. After returning from your initialization procedure, the stub can now continue normally, because it has its major opcode safely in its hand in the -XExtCodes +XExtCodes structure. diff --git a/libX11/specs/libX11/AppD.xml b/libX11/specs/libX11/AppD.xml index 57d60a219..40778f124 100644 --- a/libX11/specs/libX11/AppD.xml +++ b/libX11/specs/libX11/AppD.xml @@ -26,7 +26,7 @@ Set and get window sizing hints Set and get an -XStandardColormap +XStandardColormap structure @@ -57,7 +57,7 @@ and WM_NORMAL_HINTS properties. - XSetStandardProperties + XSetStandardProperties Display *display Window w char *window_name @@ -119,7 +119,7 @@ which should be a null-terminated string. Specifies the bitmap that is to be used for the icon or -None. +None. @@ -176,9 +176,9 @@ the result is implementation-dependent. XSetStandardProperties can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -189,9 +189,9 @@ Setting and Getting Window Sizing Hints Xlib provides functions that you can use to set or get window sizing hints. The functions discussed in this section use the flags and the -XSizeHints +XSizeHints structure, as defined in the - +<X11/Xutil.h> header file and use the WM_NORMAL_HINTS property. @@ -205,7 +205,7 @@ This function has been superseded by - XSetNormalHints + XSetNormalHints Display *display Window w XSizeHints *hints @@ -278,9 +278,9 @@ the structure have been assigned values. XSetNormalHints can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -294,7 +294,7 @@ This function has been superseded by - Status XGetNormalHints + Status XGetNormalHints Display *display Window w XSizeHints *hints_return @@ -347,7 +347,7 @@ the application specified no normal size hints for this window. XGetNormalHints can generate a -BadWindow +BadWindow error. @@ -365,7 +365,7 @@ This function is no longer supported by the - XSetZoomHints + XSetZoomHints Display *display Window w XSizeHints *zhints @@ -419,9 +419,9 @@ zoomed state. XSetZoomHints can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -435,7 +435,7 @@ This function is no longer supported by the - Status XGetZoomHints + Status XGetZoomHints Display *display Window w XSizeHints *zhints_return @@ -488,7 +488,7 @@ the application specified no zoom size hints for this window. XGetZoomHints can generate a -BadWindow +BadWindow error. @@ -502,7 +502,7 @@ This function has been superseded by - XSetSizeHints + XSetSizeHints Display *display Window w XSizeHints *hints @@ -559,7 +559,7 @@ Specifies the property name. The XSetSizeHints function sets the -XSizeHints +XSizeHints structure for the named property and the specified window. This is used by XSetNormalHints @@ -572,10 +572,10 @@ Thus, it may be useful if other properties of that type get defined. XSetSizeHints can generate -BadAlloc, -BadAtom, +BadAlloc, +BadAtom, and -BadWindow +BadWindow errors. @@ -589,7 +589,7 @@ This function has been superseded by - Status XGetSizeHints + Status XGetSizeHints Display *display Window w XSizeHints *hints_return @@ -646,7 +646,7 @@ Specifies the property name. The XGetSizeHints function returns the -XSizeHints +XSizeHints structure for the named property and the specified window. This is used by XGetNormalHints @@ -663,9 +663,9 @@ or zero otherwise. XGetSizeHints can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. Getting and Setting an XStandardColormap Structure @@ -673,16 +673,16 @@ Getting and Setting an XStandardColormap Structure To get the -XStandardColormap +XStandardColormap structure associated with one of the described atoms, use XGetStandardColormap. This function has been superseded by -XGetRGBColormap. +XGetRGBColormaps. XGetStandardColormap - Status XGetStandardColormap + Status XGetStandardColormap Display *display Window w XStandardColormap *colormap_return @@ -744,7 +744,7 @@ as the property argument. returns a nonzero status if successful and zero otherwise. For example, to fetch the standard -GrayScale +GrayScale colormap for a display, you use XGetStandardColormap @@ -768,9 +768,9 @@ See section 14.3 for the semantics of standard colormaps. XGetStandardColormap can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. @@ -779,12 +779,12 @@ errors. To set a standard colormap, use XSetStandardColormap. This function has been superseded by -XSetRGBColormap. +XSetRGBColormaps. XSetStandardColormap - XSetStandardColormap + XSetStandardColormap Display *display Window w XStandardColormap *colormap @@ -846,11 +846,11 @@ function usually is only used by window or session managers. XSetStandardColormap can generate -BadAlloc, -BadAtom, -BadDrawable, +BadAlloc, +BadAtom, +BadDrawable, and -BadWindow +BadWindow errors. Parsing Window Geometry @@ -867,7 +867,7 @@ This function has been superseded by - int XGeometry + int XGeometry Display *display int screen char*position, *default_position @@ -1026,13 +1026,13 @@ size of the increments fwidth and fheight and any additional interior space (xadder and yadder) to make it easy to compute the resulting size. The -XGeometry +XGeometry function returns the position the window should be placed given a position and a default position. XGeometry determines the placement of a window using a geometry specification as specified by -XParseGeometry +XParseGeometry and the additional information about the window. Given a fully qualified default geometry specification and an incomplete geometry specification, @@ -1071,7 +1071,7 @@ It is only useful in very simple applications. - char *XGetDefault + char *XGetDefault Display *display char *program char *option @@ -1148,7 +1148,7 @@ a resource file in the user's home directory is used. On a POSIX-conformant system, this file is "$HOME/.Xdefaults". -Files$HOME/.Xdefaults +Files$HOME/.Xdefaults After loading these defaults, XGetDefault merges additional defaults specified by the XENVIRONMENT @@ -1158,8 +1158,8 @@ it contains a full path name for the additional resource file. If XENVIRONMENT is not defined, XGetDefault looks for -"$HOME/.Xdefaults-name" , -where name specifies the name of the machine on which the application +"$HOME/.Xdefaults-name" , +where name specifies the name of the machine on which the application is running. X Version 10 Compatibility Functions @@ -1190,10 +1190,10 @@ These functions are provided mainly for compatibility with X Version 10 and have no server support. That is, they call other Xlib functions, not the server directly. Thus, if you just have straight lines to draw, using -XDrawLines +XDrawLines XDrawLines or -XDrawSegments +XDrawSegments XDrawSegments is much faster. @@ -1215,13 +1215,13 @@ and They are as compatible as possible given X Version 11's new line-drawing functions. One thing to note, however, is that -VertexDrawLastPoint +VertexDrawLastPoint is no longer supported. Also, the error status returned is the opposite of what it was under X Version 10 (this is the X Version 11 standard error status). -XAppendVertex +XAppendVertex and -XClearVertexFlag +XClearVertexFlag from X Version 10 also are not supported. @@ -1233,15 +1233,15 @@ the closing of a closed figure (see XDrawLines). The functions discussed here fail (return zero) only if they run out of memory or are passed a -Vertex +Vertex list that has a -Vertex +Vertex with -VertexStartClosed +VertexStartClosed set that is not followed by a -Vertex +Vertex with -VertexEndClosed +VertexEndClosed set. @@ -1265,7 +1265,7 @@ use - Status XDraw + Status XDraw Display *display Drawable d GC gc @@ -1330,7 +1330,7 @@ Specifies how many vertices are in vlist. The -XDraw +XDraw function draws an arbitrary polygon or curve. The figure drawn is defined by the specified list of vertices (vlist). The points are connected by lines as specified in the flags in the @@ -1339,7 +1339,7 @@ vertex structure. Each Vertex, as defined in - +<X11/X10.h>, is a structure with the following members: @@ -1361,15 +1361,15 @@ typedef struct _Vertex { The x and y members are the coordinates of the vertex that are relative to either the upper left inside corner of the drawable (if -VertexRelative +VertexRelative is zero) or the previous vertex (if -VertexRelative +VertexRelative is one). The flags, as defined in - +<X11/X10.h>, are as follows: VertexRelative VertexDontDraw @@ -1391,7 +1391,7 @@ VertexEndClosed 0x0010 /* else not */ If -VertexRelative +VertexRelative is not set, the coordinates are absolute (that is, relative to the drawable's origin). The first vertex must be an absolute vertex. @@ -1400,7 +1400,7 @@ The first vertex must be an absolute vertex. If -VertexDontDraw +VertexDontDraw is one, no line or curve is drawn from the previous vertex to this one. This is analogous to picking up the pen and moving to another place @@ -1410,13 +1410,13 @@ before drawing another line. If -VertexCurved +VertexCurved is one, a spline algorithm is used to draw a smooth curve from the previous vertex through this one to the next vertex. Otherwise, a straight line is drawn from the previous vertex to this one. It makes sense to set -VertexCurved +VertexCurved to one only if a previous and next vertex are both defined (either explicitly in the array or through the definition of a closed curve). @@ -1425,9 +1425,9 @@ curve). It is permissible for -VertexDontDraw +VertexDontDraw bits and -VertexCurved +VertexCurved bits both to be one. This is useful if you want to define the previous point for the smooth curve but do not want an actual curve drawing to start until this point. @@ -1436,13 +1436,13 @@ but do not want an actual curve drawing to start until this point. If -VertexStartClosed +VertexStartClosed is one, then this point marks the beginning of a closed curve. This vertex must be followed later in the array by another vertex whose effective coordinates are identical and that has a -VertexEndClosed +VertexEndClosed bit of one. The points in between form a cycle to determine predecessor and successor vertices for the spline algorithm. @@ -1463,7 +1463,7 @@ tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, and dash-list. To achieve the effects of the X Version 10 -XDrawTiled +XDrawTiled X10 compatibilityXDrawTiled and XDrawFilled, @@ -1476,7 +1476,7 @@ use - Status XDrawFilled + Status XDrawFilled Display *display Drawable d GC gc @@ -1542,7 +1542,7 @@ Specifies how many vertices are in vlist. The -XDrawFilled +XDrawFilled function draws arbitrary polygons or curves and then fills them. @@ -1564,7 +1564,7 @@ These functions have been superseded by the context management functions (see section 16.10). It is often necessary to associate arbitrary information with resource IDs. Xlib provides the -XAssocTable +XAssocTable functions that you can use to make such an association. Hash Lookup WindowIDs @@ -1575,9 +1575,9 @@ The XAssocTable system provides users of the X library with a method for associating their own data structures with X resources -(Pixmaps, -Fonts, -Windows, +(Pixmaps, +Fonts, +Windows, and so on). @@ -1597,7 +1597,7 @@ It is called an XID. There are a few guidelines that should be observed when using an -XAssocTable : +XAssocTable : @@ -1631,7 +1631,7 @@ use - XAssocTable *XCreateAssocTable + XAssocTable *XCreateAssocTable int size @@ -1661,7 +1661,7 @@ should be a power of two. Some size suggestions might be: use 32 buckets per 100 objects, and a reasonable maximum number of objects per buckets is 8. If an error allocating memory for the -XAssocTable +XAssocTable occurs, a NULL pointer is returned. @@ -1677,7 +1677,7 @@ use - XMakeAssoc + XMakeAssoc Display *display XAssocTable *table XID x_id @@ -1751,7 +1751,7 @@ use - char *XLookUpAssoc + char *XLookUpAssoc Display *display XAssocTable *table XID x_id @@ -1816,7 +1816,7 @@ use - XDeleteAssoc + XDeleteAssoc Display *display XAssocTable *table XID x_id @@ -1880,7 +1880,7 @@ use - XDestroyAssocTable + XDestroyAssocTable XAssocTable *table diff --git a/libX11/specs/libX11/CH01.xml b/libX11/specs/libX11/CH01.xml index 0e86e7496..523eedad0 100644 --- a/libX11/specs/libX11/CH01.xml +++ b/libX11/specs/libX11/CH01.xml @@ -121,7 +121,7 @@ X does not guarantee to preserve the contents of windows. When part or all of a window is hidden and then brought back onto the screen, its contents may be lost. The server then sends the client program an -Expose +Expose event to notify it that part or all of the window needs to be repainted. Programs must be prepared to regenerate the contents of windows on demand. @@ -171,15 +171,15 @@ that returns a value from the server or waits for input. Many Xlib functions will return an integer resource ID, which allows you to refer to objects stored on the X server. These can be of type -Window, -Font, -Pixmap, -Colormap, -Cursor, +Window, +Font, +Pixmap, +Colormap, +Cursor, and -GContext, +GContext, as defined in the file - +<X11/X.h>. These resources are created by requests and are destroyed (or freed) by requests or when connections are closed. Most of these resources are potentially sharable between @@ -196,7 +196,7 @@ Xlib provides no support for sharing graphics contexts between applications. Client programs are informed of events. Events may either be side effects of a request (for example, restacking windows generates -Expose +Expose events) or completely asynchronous (for example, from the keyboard). A client program asks to be informed of events. Because other applications can send events to your application, @@ -214,9 +214,9 @@ In addition, some library functions (for example, XRaiseWindow) generate -Expose +Expose and -ConfigureRequest +ConfigureRequest events. These events also arrive asynchronously, but the client may XSync @@ -233,7 +233,7 @@ after calling a function that can cause the server to generate events. Some functions return -Status, +Status, an integer error indication. If the function fails, it returns a zero. If the function returns a status of zero, @@ -282,19 +282,16 @@ the error is printed, and your program terminates. The following include files are part of the Xlib standard: - - - - </X11/Xlib.h> + <X11/Xlib.h> This is the main header file for Xlib. The majority of all Xlib symbols are declared by including this file. This file also contains the preprocessor symbol -XlibSpecificationRelease. +XlibSpecificationRelease. XlibSpecificationRelease This symbol is defined to have the 6 in this release of the standard. (Release 5 of Xlib was the first release to have this symbol.) @@ -459,17 +456,17 @@ The following symbols are defined by Xlib and used throughout the manual: Xlib defines the type -Bool +Bool and the Boolean values -True +True and -False. +False. None -None +None is the universal null resource ID or atom. XID @@ -477,7 +474,7 @@ is the universal null resource ID or atom. The type -XID +XID is used for generic resource IDs. XPointer @@ -485,7 +482,7 @@ is used for generic resource IDs. The type -XPointer +XPointer is defined to be char\^* and is used as a generic opaque pointer to data. @@ -611,7 +608,7 @@ Coordinates and sizes in X are actually 16-bit quantities. This decision was made to minimize the bandwidth required for a given level of performance. Coordinates usually are declared as an -int +int in the interface. Values larger than 16 bits are truncated silently. Sizes (width and height) are declared as unsigned quantities. @@ -768,8 +765,8 @@ a..z A..Z 0..9 ._- Global symbols are printed in -this -special +this +special font. These can be either function names, symbols defined in include files, or structure names. diff --git a/libX11/specs/libX11/CH02.xml b/libX11/specs/libX11/CH02.xml index 23f9f1ce2..b6623cbcc 100644 --- a/libX11/specs/libX11/CH02.xml +++ b/libX11/specs/libX11/CH02.xml @@ -22,7 +22,7 @@ Obtain information about the display, image formats, or screens Generate a -NoOperation +NoOperation protocol request @@ -157,7 +157,7 @@ Specifies the screen to be used on that server. Multiple screens can be controlled by a single X server. The screen_number sets an internal variable that can be accessed by using the -DefaultScreen +DefaultScreen macro or the XDefaultScreen function if you are using languages other than C (see section 2.2.1). @@ -182,7 +182,7 @@ dual-headed:0.1 The XOpenDisplay function returns a -Display +Display structure that serves as the connection to the X server and that contains all the information about that X server. @@ -214,14 +214,14 @@ mechanisms. Display If successful, -XOpenDisplay +XOpenDisplay returns a pointer to a -Display +Display structure, which is defined in - +<X11/Xlib.h>. If -XOpenDisplay +XOpenDisplay does not succeed, it returns NULL. After a successful call to XOpenDisplay, @@ -233,13 +233,13 @@ macro (or the XDefaultScreen function). You can access elements of the -Display +Display and -Screen +Screen structures only by using the information macros or functions. For information about using macros and functions to obtain information from the -Display +Display structure, see section 2.2.1. @@ -258,7 +258,7 @@ X servers may implement various types of access control mechanisms The Xlib library provides a number of useful macros and corresponding functions that return data from the -Display +Display structure. The macros are used for C programming, and their corresponding function equivalents are for other language bindings. @@ -285,11 +285,11 @@ Screen information macros Displaydata structure All other members of the -Display +Display structure (that is, those for which no macros are defined) are private to Xlib and must not be used. Applications must never directly modify or inspect these private members of the -Display +Display structure. The @@ -314,9 +314,9 @@ Our apologies for the resulting confusion. Applications should not directly modify any part of the -Display +Display and -Screen +Screen structures. The members should be considered read-only, although they may change as the result of other operations on the display. @@ -341,9 +341,9 @@ a procedure. Both -BlackPixel +BlackPixel and -WhitePixel +WhitePixel can be used in implementing a monochrome application. These pixel values are for permanently allocated entries in the default colormap. @@ -357,7 +357,7 @@ BlackPixel(display, screen_nu - unsigned long XBlackPixel + unsigned long XBlackPixel Display *display int screen_number @@ -402,7 +402,7 @@ WhitePixel(display, screen_nu - unsigned long XWhitePixel + unsigned long XWhitePixel Display *display int screen_number @@ -447,7 +447,7 @@ ConnectionNumber(display) - int XConnectionNumber + int XConnectionNumber Display *display @@ -484,7 +484,7 @@ DefaultColormap(display, scre - Colormap XDefaultColormap + Colormap XDefaultColormap Display *display int screen_number @@ -530,7 +530,7 @@ DefaultDepth(display, screen_ - int XDefaultDepth + int XDefaultDepth Display *display int screen_number @@ -581,7 +581,7 @@ DefaultGC(display, screen_num - GC XDefaultGC + GC XDefaultGC Display *display int screen_number int *count_return @@ -646,7 +646,7 @@ DefaultGC(display, screen_num - GC XDefaultGC + GC XDefaultGC Display *display int screen_number @@ -699,7 +699,7 @@ DefaultRootWindow(display) - Window XDefaultRootWindow + Window XDefaultRootWindow Display *display @@ -733,7 +733,7 @@ DefaultScreenOfDisplay(display) - Screen * XDefaultScreenOfDisplay + Screen *XDefaultScreenOfDisplay Display *display @@ -767,7 +767,7 @@ ScreenOfDisplay(display, scre - Screen * XScreenOfDisplay + Screen *XScreenOfDisplay Display *display int screen_number @@ -812,7 +812,7 @@ DefaultScreen(display) - int XDefaultScreen + int XDefaultScreen Display *display @@ -850,7 +850,7 @@ DefaultVisual(display, screen - Visual * XDefaultVisual + Visual *XDefaultVisual Display *display int screen_number @@ -897,7 +897,7 @@ DisplayCells(display, screen_ - int XDisplayCells + int XDisplayCells Display *display int screen_number @@ -942,7 +942,7 @@ DisplayPlanes(display, screen - int XDisplayPlanes + int XDisplayPlanes Display *display int screen_number @@ -989,7 +989,7 @@ DisplayString(display) - char * XDisplayString + char *XDisplayString Display *display @@ -1033,7 +1033,7 @@ LastKnownRequestProcessed(display) - unsigned long XLastKnownRequestProcessed + unsigned long XLastKnownRequestProcessed Display *display @@ -1090,7 +1090,7 @@ LastKnownRequestProcessed(display) - unsigned long XLastKnownRequestProcessed + unsigned long XLastKnownRequestProcessed Display *display @@ -1139,7 +1139,7 @@ LastKnownRequestProcessed(display) - unsigned long XLastKnownRequestProcessed + unsigned long XLastKnownRequestProcessed Display *display @@ -1176,7 +1176,7 @@ NextRequest(display) - unsigned long XNextRequest + unsigned long XNextRequest Display *display @@ -1212,7 +1212,7 @@ ProtocolVersion(display) - int XProtocolVersion + int XProtocolVersion Display *display @@ -1247,7 +1247,7 @@ ProtocolRevision(display) - int XProtocolRevision + int XProtocolRevision Display *display @@ -1281,7 +1281,7 @@ QLength(display) - int XQLength + int XQLength Display *display @@ -1318,7 +1318,7 @@ RootWindow(display, screen_nu - Window XRootWindow + Window XRootWindow Display *display int screen_number @@ -1367,7 +1367,7 @@ ScreenCount(display) - int XScreenCount + int XScreenCount Display *display @@ -1401,7 +1401,7 @@ ServerVendor(display) - char * XServerVendor + char *XServerVendor Display *display @@ -1439,7 +1439,7 @@ VendorRelease(display) - int XVendorRelease + int XVendorRelease Display *display @@ -1480,7 +1480,7 @@ most of the work required to convert the data is provided by Xlib The -XPixmapFormatValues +XPixmapFormatValues structure provides an interface to the pixmap format information that is returned at the time of a connection setup. It contains: @@ -1512,7 +1512,7 @@ ImageByteOrder(display) - int XImageByteOrder + int XImageByteOrder Display *display int *count_return @@ -1547,14 +1547,14 @@ Returns the number of (Cn. The XListPixmapFormats function returns an array of -XPixmapFormatValues +XPixmapFormatValues structures that describe the types of Z format images supported by the specified display. If insufficient memory is available, XListPixmapFormats returns NULL. To free the allocated storage for the -XPixmapFormatValues +XPixmapFormatValues structures, use XFree. @@ -1575,7 +1575,7 @@ ImageByteOrder(display) - int XImageByteOrder + int XImageByteOrder Display *display @@ -1601,9 +1601,9 @@ Both specify the required byte order for images for each scanline unit in XY format (bitmap) or for each pixel value in Z format. The macro or function can return either -LSBFirst +LSBFirst or -MSBFirst. +MSBFirst. @@ -1615,7 +1615,7 @@ BitmapUnit(display) - int XBitmapUnit + int XBitmapUnit Display *display @@ -1650,7 +1650,7 @@ BitmapBitOrder(display) - int XBitmapBitOrder + int XBitmapBitOrder Display *display @@ -1676,9 +1676,9 @@ Within each bitmap unit, the left-most bit in the bitmap as displayed on the screen is either the least significant or most significant bit in the unit. This macro or function can return -LSBFirst +LSBFirst or -MSBFirst. +MSBFirst. @@ -1690,7 +1690,7 @@ BitmapPad(display) - int XBitmapPad + int XBitmapPad Display *display @@ -1725,7 +1725,7 @@ DisplayHeight(display, screen - int XDisplayHeight + int XDisplayHeight Display *display int screen_number @@ -1771,7 +1771,7 @@ DisplayHeightMM(display, scre - int XDisplayHeightMM + int XDisplayHeightMM Display *display int screen_number @@ -1816,7 +1816,7 @@ DisplayWidth(display, screen_ - int XDisplayWidth + int XDisplayWidth Display *display int screen_number @@ -1861,7 +1861,7 @@ DisplayWidthMM(display, scree - int XDisplayWidthMM + int XDisplayWidthMM Display *display int screen_number @@ -1920,7 +1920,7 @@ BlackPixelOfScreen(screen) - unsigned long XBlackPixelOfScreen + unsigned long XBlackPixelOfScreen Screen *screen @@ -1933,7 +1933,7 @@ BlackPixelOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -1956,7 +1956,7 @@ WhitePixelOfScreen(screen) - unsigned long XWhitePixelOfScreen + unsigned long XWhitePixelOfScreen Screen *screen @@ -1969,7 +1969,7 @@ WhitePixelOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -1992,7 +1992,7 @@ CellsOfScreen(screen) - int XCellsOfScreen + int XCellsOfScreen Screen *screen @@ -2005,7 +2005,7 @@ CellsOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2029,7 +2029,7 @@ DefaultColormapOfScreen(screen) - Colormap XDefaultColormapOfScreen + Colormap XDefaultColormapOfScreen Screen *screen @@ -2042,7 +2042,7 @@ DefaultColormapOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2065,7 +2065,7 @@ DefaultDepthOfScreen(screen) - int XDefaultDepthOfScreen + int XDefaultDepthOfScreen Screen *screen @@ -2078,7 +2078,7 @@ DefaultDepthOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2101,7 +2101,7 @@ DefaultGCOfScreen(screen) - GC XDefaultGCOfScreen + GC XDefaultGCOfScreen Screen *screen @@ -2114,7 +2114,7 @@ DefaultGCOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2139,7 +2139,7 @@ DefaultVisualOfScreen(screen) - Visual * XDefaultVisualOfScreen + Visual *XDefaultVisualOfScreen Screen *screen @@ -2152,7 +2152,7 @@ DefaultVisualOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2177,7 +2177,7 @@ DoesBackingStore(screen) - int XDoesBackingStore + int XDoesBackingStore Screen *screen @@ -2190,7 +2190,7 @@ DoesBackingStore(screen) Specifies the appropriate -Screen +Screen structure. @@ -2204,10 +2204,10 @@ structure. Both return a value indicating whether the screen supports backing stores. The value returned can be one of -WhenMapped, -NotUseful, +WhenMapped, +NotUseful, or -Always +Always (see section 3.2.4). @@ -2220,7 +2220,7 @@ DoesSaveUnders(screen) - Bool XDoesSaveUnders + Bool XDoesSaveUnders Screen *screen @@ -2233,7 +2233,7 @@ DoesSaveUnders(screen) Specifies the appropriate -Screen +Screen structure. @@ -2247,10 +2247,10 @@ structure. Both return a Boolean value indicating whether the screen supports save unders. If -True, +True, the screen supports save unders. If -False, +False, the screen does not support save unders (see section 3.2.5). @@ -2263,7 +2263,7 @@ DisplayOfScreen(screen) - Display * XDisplayOfScreen + Display *XDisplayOfScreen Screen *screen @@ -2276,7 +2276,7 @@ DisplayOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2300,7 +2300,7 @@ EventMaskOfScreen(screen) - long XEventMaskOfScreen + long XEventMaskOfScreen Screen *screen @@ -2313,7 +2313,7 @@ EventMaskOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2336,7 +2336,7 @@ EventMaskOfScreen(screen) - long XEventMaskOfScreen + long XEventMaskOfScreen Screen *screen @@ -2349,7 +2349,7 @@ EventMaskOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2373,7 +2373,7 @@ WidthOfScreen(screen) - int XWidthOfScreen + int XWidthOfScreen Screen *screen @@ -2386,7 +2386,7 @@ WidthOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2409,7 +2409,7 @@ HeightOfScreen(screen) - int XHeightOfScreen + int XHeightOfScreen Screen *screen @@ -2422,7 +2422,7 @@ HeightOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2445,7 +2445,7 @@ WidthMMOfScreen(screen) - int XWidthMMOfScreen + int XWidthMMOfScreen Screen *screen @@ -2458,7 +2458,7 @@ WidthMMOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2481,7 +2481,7 @@ HeightMMOfScreen(screen) - int XHeightMMOfScreen + int XHeightMMOfScreen Screen *screen @@ -2494,7 +2494,7 @@ HeightMMOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2517,7 +2517,7 @@ MaxCmapsOfScreen(screen) - int XMaxCmapsOfScreen + int XMaxCmapsOfScreen Screen *screen @@ -2530,7 +2530,7 @@ MaxCmapsOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2554,7 +2554,7 @@ MinCmapsOfScreen(screen) - int XMinCmapsOfScreen + int XMinCmapsOfScreen Screen *screen @@ -2567,7 +2567,7 @@ MinCmapsOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2591,7 +2591,7 @@ PlanesOfScreen(screen) - int XPlanesOfScreen + int XPlanesOfScreen Screen *screen @@ -2604,7 +2604,7 @@ PlanesOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2627,7 +2627,7 @@ RootWindowOfScreen(screen) - Window XRootWindowOfScreen + Window XRootWindowOfScreen Screen *screen @@ -2640,7 +2640,7 @@ RootWindowOfScreen(screen) Specifies the appropriate -Screen +Screen structure. @@ -2663,7 +2663,7 @@ Both return the root window of the specified screen. To execute a -NoOperation +NoOperation protocol request, use XNoOp. XNoOp @@ -2690,7 +2690,7 @@ protocol request, use The XNoOp function sends a -NoOperation +NoOperation protocol request to the X server, thereby exercising the connection. @@ -2779,15 +2779,15 @@ Specifies the connection to the X server. The XCloseDisplay function closes the connection to the X server for the display specified in the -Display +Display structure and destroys all windows, resource IDs -(Window, -Font, -Pixmap, -Colormap, -Cursor, +(Window, +Font, +Pixmap, +Colormap, +Cursor, and -GContext), +GContext), or other resources that the client has created on this display, unless the close-down mode of the resource has been changed (see @@ -2808,7 +2808,7 @@ operation. XCloseDisplay can generate a -BadGC +BadGC error. @@ -2848,10 +2848,10 @@ Specifies the connection to the X server. Specifies the client close-down mode. You can pass -DestroyAll, -RetainPermanent, +DestroyAll, +RetainPermanent, or -RetainTemporary. +RetainTemporary. @@ -2863,20 +2863,20 @@ The XSetCloseDownMode defines what will happen to the client's resources at connection close. A connection starts in -DestroyAll +DestroyAll mode. For information on what happens to the client's resources when the close_mode argument is -RetainPermanent +RetainPermanent or -RetainTemporary, +RetainTemporary, see section 2.6. XSetCloseDownMode can generate a -BadValue +BadValue error. @@ -2906,7 +2906,7 @@ It disowns all selections owned by the client It performs an XUngrabPointer and -XUngrabKeyboard +XUngrabKeyboard if the client has actively grabbed the pointer or the keyboard. @@ -2914,7 +2914,7 @@ or the keyboard. It performs an -XUngrabServer +XUngrabServer if the client has grabbed the server. @@ -2928,9 +2928,9 @@ It releases all passive grabs made by the client. It marks all resources (including colormap entries) allocated by the client either as permanent or temporary, depending on whether the close-down mode is -RetainPermanent +RetainPermanent or -RetainTemporary. +RetainTemporary. However, this does not prevent other client applications from explicitly destroying the resources (see XSetCloseDownMode). @@ -2940,7 +2940,7 @@ destroying the resources (see When the close-down mode is -DestroyAll, +DestroyAll, the X server destroys all of a client's resources as follows: @@ -2960,7 +2960,7 @@ window. It performs a -MapWindow +MapWindow request on the save-set window if the save-set window is unmapped. The X server does this even if the save-set window was not an inferior of a window created by the client. @@ -2975,12 +2975,12 @@ It destroys all windows created by the client. It performs the appropriate free request on each nonwindow resource created by the client in the server (for example, -Font, -Pixmap, -Cursor, -Colormap, +Font, +Pixmap, +Cursor, +Colormap, and -GContext). +GContext). @@ -2996,7 +2996,7 @@ An X server goes through a cycle of having no connections and having some connections. When the last connection to the X server closes as a result of a connection closing with the close_mode of -DestroyAll, +DestroyAll, the X server does the following: @@ -3006,9 +3006,9 @@ It resets its state as if it had just been started. The X server begins by destroying all lingering resources from clients that have terminated in -RetainPermanent +RetainPermanent or -RetainTemporary +RetainTemporary mode. @@ -3042,7 +3042,7 @@ It restores the default font path. It restores the input focus to state -PointerRoot. +PointerRoot. @@ -3050,9 +3050,9 @@ It restores the input focus to state However, the X server does not reset if you close a connection with a close-down mode set to -RetainPermanent +RetainPermanent or -RetainTemporary. +RetainTemporary. @@ -3272,11 +3272,11 @@ internal connection for the specified display. The procedure is passed the display, the specified client_data, the file descriptor for the connection, a Boolean indicating whether the connection is being opened or closed, and a pointer to a location for private watch data. If opening is -True, +True, the procedure can store a pointer to private data in the location pointed to by watch_data; when the procedure is later called for this same connection and opening is -False, +False, the location pointed to by watch_data will hold this same private data pointer. @@ -3314,7 +3314,7 @@ To stop tracking internal connections for a display, use - Status XRemoveConnectionWatch + Status XRemoveConnectionWatch Display *display XWatchProc procedure XPointer client_data @@ -3431,7 +3431,7 @@ To obtain all of the current internal connections for a display, use - Status XInternalConnectionNumbers + Status XInternalConnectionNumbers Display *display int ** fd int * count_return diff --git a/libX11/specs/libX11/CH03.xml b/libX11/specs/libX11/CH03.xml index a90a06821..8b6fb3478 100644 --- a/libX11/specs/libX11/CH03.xml +++ b/libX11/specs/libX11/CH03.xml @@ -25,11 +25,11 @@ the default depth of the default root window, and the default visual type Xlib uses an opaque -Visual +Visual Visual structure that contains information about the possible color mapping. The visual utility functions (see section 16.7) use an -XVisualInfo +XVisualInfo structure to return this information to an application. The members of this structure pertinent to this discussion are class, red_mask, green_mask, blue_mask, bits_per_rgb, and colormap_size. @@ -41,13 +41,13 @@ and can be Visual ClassesStaticColor Visual ClassesGrayScale Visual ClassesPseudoColor -StaticGray, -StaticColor, -TrueColor, -GrayScale, -PseudoColor, +StaticGray, +StaticColor, +TrueColor, +GrayScale, +PseudoColor, or -DirectColor. +DirectColor. @@ -89,16 +89,16 @@ the RGB values in the following ways: For -PseudoColor, +PseudoColor, a pixel value indexes a colormap to produce independent RGB values, and the RGB values can be changed dynamically. -GrayScale +GrayScale is treated the same way as -PseudoColor +PseudoColor except that the primary that drives the screen is undefined. Thus, the client should always store the same value for red, green, and blue in the colormaps. @@ -107,7 +107,7 @@ same value for red, green, and blue in the colormaps. For -DirectColor, +DirectColor, a pixel value is decomposed into separate RGB subfields, and each subfield separately indexes the colormap for the corresponding value. The RGB values can be changed dynamically. @@ -115,9 +115,9 @@ The RGB values can be changed dynamically. -TrueColor +TrueColor is treated the same way as -DirectColor +DirectColor except that the colormap has predefined, read-only RGB values. These RGB values are server dependent but provide linear or near-linear ramps in each primary. @@ -125,21 +125,21 @@ ramps in each primary. -StaticColor +StaticColor is treated the same way as -PseudoColor +PseudoColor except that the colormap has predefined, read-only, server-dependent RGB values. -StaticGray +StaticGray is treated the same way as -StaticColor +StaticColor except that the RGB values are equal for any single pixel value, thus resulting in shades of gray. -StaticGray +StaticGray with a two-entry colormap can be thought of as monochrome. @@ -148,9 +148,9 @@ colormap can be thought of as monochrome. The red_mask, green_mask, and blue_mask members are only defined for -DirectColor +DirectColor and -TrueColor. +TrueColor. Each has one contiguous set of bits with no intersections. The bits_per_rgb member specifies the log base 2 of the @@ -159,23 +159,23 @@ Actual RGB values are unsigned 16-bit numbers. The colormap_size member defines the number of available colormap entries in a newly created colormap. For -DirectColor +DirectColor and -TrueColor, +TrueColor, this is the size of an individual pixel subfield. To obtain the visual ID from a -Visual, +Visual, use XVisualIDFromVisual. XVisualIDFromVisual - VisualID XVisualIDFromVisual + VisualID XVisualIDFromVisual Visual *\^visual @@ -211,7 +211,7 @@ function returns the visual ID for the specified visual type. Window Windowattributes All -InputOutput +InputOutput windows have a border width of zero or more pixels, an optional background, an event suppression mask (which suppresses propagation of events from children), and a property list (see section 4.3). @@ -233,12 +233,12 @@ Windows also have associated property lists (see section 4.3). Both -InputOutput +InputOutput and -InputOnly +InputOnly windows have the following common attributes, which are the only attributes of an -InputOnly +InputOnly window: @@ -271,26 +271,26 @@ cursor If you specify any other attributes for an -InputOnly +InputOnly window, a -BadMatch +BadMatch error results. -InputOnly +InputOnly windows are used for controlling input events in situations where -InputOutput +InputOutput windows are unnecessary. -InputOnly +InputOnly windows are invisible; can only be used to control such things as cursors, input event generation, and grabbing; and cannot be used in any graphics requests. Note that -InputOnly +InputOnly windows cannot have -InputOutput +InputOutput windows as inferiors. @@ -308,7 +308,7 @@ are to be made. The pattern can either be relative to the parent or absolute. If -ParentRelative, +ParentRelative, the parent's background is used. @@ -325,7 +325,7 @@ When a window is eventually mapped to the screen XMapWindow), XMapWindow the X server generates an -Expose +Expose event for the window if backing store has not been maintained. @@ -346,7 +346,7 @@ for window managers. To set an attribute of a window, set the appropriate member of the -XSetWindowAttributes +XSetWindowAttributes structure and OR in the corresponding value bitmask in your subsequent calls to XCreateWindow and @@ -354,7 +354,7 @@ and or use one of the other convenience functions that set the appropriate attribute. The symbols for the value mask bits and the -XSetWindowAttributes +XSetWindowAttributes structure are: @@ -412,9 +412,9 @@ typedef struct { The following lists the defaults for each window attribute and indicates whether the attribute is applicable to -InputOutput +InputOutput and -InputOnly +InputOnly windows: @@ -434,7 +434,7 @@ windows: background-pixmap - None + None Yes No @@ -446,7 +446,7 @@ windows: border-pixmap - CopyFromParent + CopyFromParent Yes No @@ -458,19 +458,19 @@ windows: bit-gravity - ForgetGravity + ForgetGravity Yes No win-gravity - NorthWestGravity + NorthWestGravity Yes Yes backing-store - NotUseful + NotUseful Yes No @@ -488,7 +488,7 @@ windows: save-under - False + False Yes No @@ -506,19 +506,19 @@ windows: override-redirect - False + False Yes Yes colormap - CopyFromParent + CopyFromParent Yes No cursor - None + None Yes Yes @@ -534,10 +534,10 @@ windows: Only -InputOutput +InputOutput windows can have a background. You can set the background of an -InputOutput +InputOutput window by using a pixel or a pixmap. @@ -551,9 +551,9 @@ a window's background in a single color. You can set the background-pixmap to a pixmap, -None +None (default), or -ParentRelative. +ParentRelative. You can set the background-pixel of a window to any pixel value (no default). If you specify a background-pixel, it overrides either the default background-pixmap @@ -569,13 +569,13 @@ If you set the background-pixmap, it overrides the default. The background-pixmap and the window must have the same depth, or a -BadMatch +BadMatch error results. If you set background-pixmap to -None, +None, the window has no defined background. If you set the background-pixmap to -ParentRelative : +ParentRelative: @@ -584,16 +584,16 @@ The parent window's background-pixmap is used. The child window, however, must have the same depth as its parent, or a -BadMatch +BadMatch error results. If the parent window has a background-pixmap of -None, +None, the window also has a background-pixmap of -None. +None. @@ -608,7 +608,7 @@ background-pixmap is required. The background tile origin always aligns with the parent window's background tile origin. If the background-pixmap is not -ParentRelative, +ParentRelative, the background tile origin is the child window's origin. @@ -630,17 +630,17 @@ When no valid contents are available for regions of a window and either the regions are visible or the server is maintaining backing store, the server automatically tiles the regions with the window's background unless the window has a background of -None. +None. If the background is -None, +None, the previous screen contents from other windows of the same depth as the window are simply left in place as long as the contents come from the parent of the window or an inferior of the parent. Otherwise, the initial contents of the exposed regions are undefined. -Expose +Expose events are then generated for the regions, even if the background-pixmap is -None +None (see section 10.9). @@ -652,10 +652,10 @@ is Only -InputOutput +InputOutput windows can have a border. You can set the border of an -InputOutput +InputOutput window by using a pixel or a pixmap. @@ -672,7 +672,7 @@ The border tile origin is always the same as the background tile origin. You can also set the border-pixmap to a pixmap of any size (some may be faster than others) or to -CopyFromParent +CopyFromParent (default). You can set the border-pixel to any pixel value (no default). @@ -682,16 +682,16 @@ If you set a border-pixmap, it overrides the default. The border-pixmap and the window must have the same depth, or a -BadMatch +BadMatch error results. If you set the border-pixmap to -CopyFromParent, +CopyFromParent, the parent window's border-pixmap is copied. Subsequent changes to the parent window's border attribute do not affect the child window. However, the child window must have the same depth as the parent window, or a -BadMatch +BadMatch error results. @@ -724,17 +724,17 @@ Therefore, graphics operations never affect the window border. The bit gravity of a window defines which region of the window should be retained when an -InputOutput +InputOutput window is resized. The default value for the bit-gravity attribute is -ForgetGravity. +ForgetGravity. The window gravity of a window allows you to define how the -InputOutput +InputOutput or -InputOnly +InputOnly window should be repositioned if its parent is resized. The default value for the win-gravity attribute is -NorthWestGravity. +NorthWestGravity. @@ -761,39 +761,39 @@ change of width and height, the (x, y) pairs are defined: - NorthWestGravity + NorthWestGravity (0, 0) - NorthGravity + NorthGravity (Width/2, 0) - NorthEastGravity + NorthEastGravity (Width, 0) - WestGravity + WestGravity (0, Height/2) - CenterGravity + CenterGravity (Width/2, Height/2) - EastGravity + EastGravity (Width, Height/2) - SouthWestGravity + SouthWestGravity (0, Height) - SouthGravity + SouthGravity (Width/2, Height) - SouthEastGravity + SouthEastGravity (Width, Height) @@ -809,13 +809,13 @@ When a window with one of these win-gravities has its parent window resized, the corresponding pair defines the change in position of the window within the parent. When a window is so repositioned, a -GravityNotify +GravityNotify event is generated (see section 10.10.5). A bit-gravity of -StaticGravity +StaticGravity indicates that the contents or origin should not move relative to the origin of the root window. If the change in size of the window is coupled with a change in position (x, y), @@ -823,25 +823,25 @@ then for bit-gravity the change in position of each pixel is (\-x, \-y), and for win-gravity the change in position of a child when its parent is so resized is (\-x, \-y). Note that -StaticGravity +StaticGravity still only takes effect when the width or height of the window is changed, not when the window is moved. A bit-gravity of -ForgetGravity +ForgetGravity indicates that the window's contents are always discarded after a size change, even if a backing store or save under has been requested. The window is tiled with its background and zero or more -Expose +Expose events are generated. If no background is defined, the existing screen contents are not altered. Some X servers may also ignore the specified bit-gravity and always generate -Expose +Expose events. @@ -849,20 +849,20 @@ events. The contents and borders of inferiors are not affected by their parent's bit-gravity. A server is permitted to ignore the specified bit-gravity and use -Forget +Forget instead. A win-gravity of -UnmapGravity +UnmapGravity is like -NorthWestGravity +NorthWestGravity (the window is not moved), except the child is also unmapped when the parent is resized, and an -UnmapNotify +UnmapNotify event is generated. @@ -875,7 +875,7 @@ generated. Some implementations of the X server may choose to maintain the contents of -InputOutput +InputOutput windows. If the X server maintains the contents of a window, the off-screen saved pixels @@ -883,39 +883,39 @@ are known as backing store. The backing store advises the X server on what to do with the contents of a window. The backing-store attribute can be set to -NotUseful +NotUseful (default), -WhenMapped, +WhenMapped, or -Always. +Always. A backing-store attribute of -NotUseful +NotUseful advises the X server that maintaining contents is unnecessary, although some X implementations may still choose to maintain contents and, therefore, not generate -Expose +Expose events. A backing-store attribute of -WhenMapped +WhenMapped advises the X server that maintaining contents of obscured regions when the window is mapped would be beneficial. In this case, the server may generate an -Expose +Expose event when the window is created. A backing-store attribute of -Always +Always advises the X server that maintaining contents even when the window is unmapped would be beneficial. Even if the window is larger than its parent, this is a request to the X server to maintain complete contents, not just the region within the parent window boundaries. While the X server maintains the window's contents, -Expose +Expose events normally are not generated, but the X server may stop maintaining contents at any time. @@ -937,9 +937,9 @@ However, regions obscured by inferior windows are not included. Some server implementations may preserve contents of -InputOutput +InputOutput windows under other -InputOutput +InputOutput windows. This is not the same as preserving the contents of a window for you. You may get better visual @@ -950,12 +950,12 @@ so the temporarily obscured applications do not have to repaint. You can set the save-under flag to -True +True or -False +False (default). If save-under is -True, +True, the X server is advised that, when this window is mapped, saving the contents of windows it obscures would be beneficial. @@ -969,7 +969,7 @@ saving the contents of windows it obscures would be beneficial. You can set backing planes to indicate (with bits set to 1) which bit planes of an -InputOutput +InputOutput window hold dynamic data that must be preserved in backing store and during save unders. The default value for the backing-planes attribute is all bits set to 1. @@ -994,14 +994,14 @@ required to store your window. The event mask defines which events the client is interested in for this -InputOutput +InputOutput or -InputOnly +InputOnly window (or, for some event types, inferiors of this window). The event mask is the bitwise inclusive OR of zero or more of the valid event mask bits. You can specify that no maskable events are reported by setting -NoEventMask +NoEventMask (default). @@ -1009,26 +1009,26 @@ You can specify that no maskable events are reported by setting The do-not-propagate-mask attribute defines which events should not be propagated to ancestor windows when no client has the event type selected in this -InputOutput +InputOutput or -InputOnly +InputOnly window. The do-not-propagate-mask is the bitwise inclusive OR of zero or more of the following masks: -KeyPress, -KeyRelease, -ButtonPress, -ButtonRelease, -PointerMotion, -Button1Motion, -Button2Motion, -Button3Motion, -Button4Motion, -Button5Motion, +KeyPress, +KeyRelease, +ButtonPress, +ButtonRelease, +PointerMotion, +Button1Motion, +Button2Motion, +Button3Motion, +Button4Motion, +Button5Motion, and -ButtonMotion. +ButtonMotion. You can specify that all events are propagated by setting -NoEventMask +NoEventMask (default). @@ -1045,9 +1045,9 @@ request. Pop-up windows, however, often need to be mapped without a window manager getting in the way. To control whether an -InputOutput +InputOutput or -InputOnly +InputOnly window is to ignore these structure control facilities, use the override-redirect flag. @@ -1055,12 +1055,12 @@ use the override-redirect flag. The override-redirect flag specifies whether map and configure requests on this window should override a -SubstructureRedirectMask +SubstructureRedirectMask on the parent. You can set the override-redirect flag to -True +True or -False +False (default). Window managers use this information to avoid tampering with pop-up windows (see also chapter 14). @@ -1075,33 +1075,33 @@ Window managers use this information to avoid tampering with pop-up windows The colormap attribute specifies which colormap best reflects the true colors of the -InputOutput +InputOutput window. The colormap must have the same visual type as the window, or a -BadMatch +BadMatch error results. X servers capable of supporting multiple hardware colormaps can use this information, and window managers can use it for calls to XInstallColormap. You can set the colormap attribute to a colormap or to -CopyFromParent +CopyFromParent (default). If you set the colormap to -CopyFromParent, +CopyFromParent, the parent window's colormap is copied and used by its child. However, the child window must have the same visual type as the parent, or a -BadMatch +BadMatch error results. The parent window must not have a colormap of -None, +None, or a -BadMatch +BadMatch error results. The colormap is copied by sharing the colormap object between the child and parent, not by making a complete copy of the colormap contents. @@ -1118,23 +1118,23 @@ not affect the child window. The cursor attribute specifies which cursor is to be used when the pointer is in the -InputOutput +InputOutput or -InputOnly +InputOnly window. You can set the cursor to a cursor or -None +None (default). If you set the cursor to -None, +None, the parent's cursor is used when the pointer is in the -InputOutput +InputOutput or -InputOnly +InputOnly window, and any change in the parent's cursor will cause an immediate change in the displayed cursor. By calling @@ -1209,25 +1209,25 @@ see chapter 14 and the Inter-Client Communication Convention XCreateWindow is the more general function that allows you to set specific window attributes when you create a window. -XCreateSimpleWindow +XCreateSimpleWindow creates a window that inherits its attributes from its parent window. WindowInputOnly The X server acts as if -InputOnly +InputOnly windows do not exist for the purposes of graphics requests, exposure processing, and -VisibilityNotify +VisibilityNotify events. An -InputOnly +InputOnly window cannot be used as a drawable (that is, as a source or destination for graphics requests). -InputOnly +InputOnly and -InputOutput +InputOutput windows act identically in other respects (properties, grabs, input control, and so on). Extension packages can define other classes of windows. @@ -1240,7 +1240,7 @@ To create an unmapped window and set its window attributes, use - Window XCreateWindow + Window XCreateWindow Display *display Window parent intx, y @@ -1320,7 +1320,7 @@ and do not include the created window's borders Specify the width and height(Wh. The dimensions must be nonzero, or a -BadValue +BadValue error results. @@ -1343,7 +1343,7 @@ Specifies the width of the created window's border in pixels. Specifies the window's depth. A depth of -CopyFromParent +CopyFromParent means the depth is taken from the parent. @@ -1356,12 +1356,12 @@ means the depth is taken from the parent. Specifies the created window's class. You can pass -InputOutput, -InputOnly, +InputOutput, +InputOnly, or -CopyFromParent. +CopyFromParent. A class of -CopyFromParent +CopyFromParent means the class is taken from the parent. @@ -1375,7 +1375,7 @@ is taken from the parent. Specifies the visual type. A visual of -CopyFromParent +CopyFromParent means the visual type is taken from the parent. @@ -1418,7 +1418,7 @@ The function creates an unmapped subwindow for a specified parent window, returns the window ID of the created window, and causes the X server to generate a -CreateNotify +CreateNotify event. The created window is placed on top in the stacking order with respect to siblings. @@ -1437,33 +1437,33 @@ the origin is inside the border at the inside, upper-left corner. The border_width for an -InputOnly +InputOnly window must be zero, or a -BadMatch +BadMatch error results. For class -InputOutput, +InputOutput, the visual type and depth must be a combination supported for the screen, or a -BadMatch +BadMatch error results. The depth need not be the same as the parent, but the parent must not be a window of class -InputOnly, +InputOnly, or a -BadMatch +BadMatch error results. For an -InputOnly +InputOnly window, the depth must be zero, and the visual must be one supported by the screen. If either condition is not met, a -BadMatch +BadMatch error results. The parent window, however, may have any depth and class. If you specify any invalid window attribute for a window, a -BadMatch +BadMatch error results. @@ -1484,28 +1484,28 @@ ancestors are mapped and it is not obscured by any of its ancestors. XCreateWindow can generate -BadAlloc, -BadColor, -BadCursor, -BadMatch, -BadPixmap, -BadValue, +BadAlloc, +BadColor, +BadCursor, +BadMatch, +BadPixmap, +BadValue, and -BadWindow +BadWindow errors. To create an unmapped -InputOutput +InputOutput subwindow of a given parent window, use XCreateSimpleWindow. XCreateSimpleWindow - Window XCreateSimpleWindow + Window XCreateSimpleWindow Display *display Window parent intx, y @@ -1582,7 +1582,7 @@ and do not include the created window's borders Specify the width and height(Wh. The dimensions must be nonzero, or a -BadValue +BadValue error results. @@ -1626,18 +1626,18 @@ Specifies the background pixel value of the window. The XCreateSimpleWindow function creates an unmapped -InputOutput +InputOutput subwindow for a specified parent window, returns the window ID of the created window, and causes the X server to generate a -CreateNotify +CreateNotify event. The created window is placed on top in the stacking order with respect to siblings. Any part of the window that extends outside its parent window is clipped. The border_width for an -InputOnly +InputOnly window must be zero, or a -BadMatch +BadMatch error results. XCreateSimpleWindow inherits its depth, class, and visual from its parent. @@ -1648,11 +1648,11 @@ have their default values. XCreateSimpleWindow can generate -BadAlloc, -BadMatch, -BadValue, +BadAlloc, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -1675,7 +1675,7 @@ To destroy a window and all of its subwindows, use - XDestroyWindow + XDestroyWindow Display *display Window w @@ -1711,29 +1711,29 @@ The XDestroyWindow function destroys the specified window as well as all of its subwindows and causes the X server to generate a -DestroyNotify +DestroyNotify event for each window. The window should never be referenced again. If the window specified by the w argument is mapped, it is unmapped automatically. The ordering of the -DestroyNotify +DestroyNotify events is such that for any given window being destroyed, -DestroyNotify +DestroyNotify is generated on any inferiors of the window before being generated on the window itself. The ordering among siblings and across subhierarchies is not otherwise constrained. If the window you specified is a root window, no windows are destroyed. Destroying a mapped window will generate -Expose +Expose events on other windows that were obscured by the window being destroyed. XDestroyWindow can generate a -BadWindow +BadWindow error. @@ -1745,7 +1745,7 @@ To destroy all subwindows of a specified window, use - XDestroySubwindows + XDestroySubwindows Display *display Window w @@ -1782,13 +1782,13 @@ The function destroys all inferior windows of the specified window, in bottom-to-top stacking order. It causes the X server to generate a -DestroyNotify +DestroyNotify event for each window. If any mapped subwindows were actually destroyed, XDestroySubwindows causes the X server to generate -Expose +Expose events on the specified window. This is much more efficient than deleting many windows one at a time because much of the work need be performed only once for all @@ -1799,7 +1799,7 @@ The subwindows should never be referenced again. XDestroySubwindows can generate a -BadWindow +BadWindow error. @@ -1834,11 +1834,11 @@ It is entirely clipped by an ancestor. -Expose +Expose events are generated for the window when part or all of it becomes visible on the screen. A client receives the -Expose +Expose events only if it has asked for them. Windows retain their position in the stacking order when they are unmapped. @@ -1846,15 +1846,15 @@ Windows retain their position in the stacking order when they are unmapped. A window manager may want to control the placement of subwindows. If -SubstructureRedirectMask +SubstructureRedirectMask has been selected by a window manager on a parent window (usually a root window), a map request initiated by other clients on a child window is not performed, and the window manager is sent a -MapRequest +MapRequest event. However, if the override-redirect flag on the child had been set to -True +True (usually only on pop-up menus), the map request is performed. @@ -1867,16 +1867,16 @@ reparent the child into a frame first. For further information, see sections 3.2.8 and 10.10. Only a single client at a time can select for -SubstructureRedirectMask. +SubstructureRedirectMask. Similarly, a single client can select for -ResizeRedirectMask +ResizeRedirectMask on a parent window. Then, any attempt to resize the window by another client is suppressed, and the client receives a -ResizeRequest +ResizeRequest event. @@ -1888,7 +1888,7 @@ To map a given window, use - XMapWindow + XMapWindow Display *display Window w @@ -1937,16 +1937,16 @@ This function has no effect if the window is already mapped. If the override-redirect of the window is -False +False and if some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent window, then the X server generates a -MapRequest +MapRequest event, and the XMapWindow function does not map the window. Otherwise, the window is mapped, and the X server generates a -MapNotify +MapNotify event. @@ -1956,10 +1956,10 @@ the X server tiles the window with its background. If the window's background is undefined, the existing screen contents are not altered, and the X server generates zero or more -Expose +Expose events. If backing-store was maintained while the window was unmapped, no -Expose +Expose events are generated. If backing-store will now be maintained, @@ -1971,29 +1971,29 @@ Similar tiling and exposure take place for any newly viewable inferiors. XMapWindow If the window is an -InputOutput +InputOutput window, XMapWindow generates -Expose +Expose events on each -InputOutput +InputOutput window that it causes to be displayed. If the client maps and paints the window and if the client begins processing events, the window is painted twice. To avoid this, first ask for -Expose +Expose events and then map the window, so the client processes input events as usual. The event list will include -Expose +Expose for each window that has appeared on the screen. The client's normal response to an -Expose +Expose event should be to repaint the window. This method usually leads to simpler programs and to proper interaction with window managers. @@ -2002,7 +2002,7 @@ with window managers. XMapWindow can generate a -BadWindow +BadWindow error. @@ -2014,7 +2014,7 @@ To map and raise a window, use - XMapRaised + XMapRaised Display *display Window w @@ -2062,7 +2062,7 @@ see XMapRaised can generate multiple -BadWindow +BadWindow errors. @@ -2074,7 +2074,7 @@ To map all subwindows for a specified window, use - XMapSubwindows + XMapSubwindows Display *display Window w @@ -2112,7 +2112,7 @@ The function maps all subwindows for a specified window in top-to-bottom stacking order. The X server generates -Expose +Expose events on each newly displayed window. This may be much more efficient than mapping many windows one at a time because the server needs to perform much of the work @@ -2122,7 +2122,7 @@ only once, for all of the windows, rather than for each window. XMapSubwindows can generate a -BadWindow +BadWindow error. @@ -2144,7 +2144,7 @@ To unmap a window, use - XUnmapWindow + XUnmapWindow Display *display Window w @@ -2179,12 +2179,12 @@ Specifies the window. The XUnmapWindow function unmaps the specified window and causes the X server to generate an -UnmapNotify +UnmapNotify UnmapNotify Event XUnmapWindow event. If the specified window is already unmapped, -XUnmapWindow +XUnmapWindow has no effect. Normal exposure processing on formerly obscured windows is performed. Any child window will no longer be visible until another map call is @@ -2192,14 +2192,14 @@ made on the parent. In other words, the subwindows are still mapped but are not visible until the parent is mapped. Unmapping a window will generate -Expose +Expose events on windows that were formerly obscured by it. XUnmapWindow can generate a -BadWindow +BadWindow error. @@ -2211,7 +2211,7 @@ To unmap all subwindows for a specified window, use - XUnmapSubwindows + XUnmapSubwindows Display *display Window w @@ -2248,9 +2248,9 @@ The function unmaps all subwindows for the specified window in bottom-to-top stacking order. It causes the X server to generate an -UnmapNotify +UnmapNotify event on each subwindow and -Expose +Expose events on formerly obscured windows. UnmapNotify Event Using this function is much more efficient than unmapping multiple windows @@ -2261,7 +2261,7 @@ only once, for all of the windows, rather than for each window. XUnmapSubwindows can generate a -BadWindow +BadWindow error. @@ -2280,11 +2280,11 @@ move a window, resize a window, move and resize a window, or change a window's border width. To change one of these parameters, set the appropriate member of the -XWindowChanges +XWindowChanges structure and OR in the corresponding value mask in subsequent calls to XConfigureWindow. The symbols for the value mask bits and the -XWindowChanges +XWindowChanges structure are: @@ -2323,7 +2323,7 @@ which are relative to the parent's origin and indicate the position of the upper-left outer corner of the window. The width and height members are used to set the inside size of the window, not including the border, and must be nonzero, or a -BadValue +BadValue error results. Attempts to configure a root window have no effect. @@ -2333,9 +2333,9 @@ The border_width member is used to set the width of the border in pixels. Note that setting just the border width leaves the outer-left corner of the window in a fixed position but moves the absolute position of the window's origin. If you attempt to set the border-width attribute of an -InputOnly +InputOnly window nonzero, a -BadMatch +BadMatch error results. @@ -2343,49 +2343,49 @@ error results. The sibling member is used to set the sibling window for stacking operations. The stack_mode member is used to set how the window is to be restacked and can be set to -Above, -Below, -TopIf, -BottomIf, +Above, +Below, +TopIf, +BottomIf, or -Opposite. +Opposite. If the override-redirect flag of the window is -False +False and if some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates a -ConfigureRequest +ConfigureRequest event, and no further processing is performed. Otherwise, if some other client has selected -ResizeRedirectMask +ResizeRedirectMask on the window and the inside width or height of the window is being changed, a -ResizeRequest +ResizeRequest event is generated, and the current inside width and height are used instead. Note that the override-redirect flag of the window has no effect on -ResizeRedirectMask +ResizeRedirectMask and that -SubstructureRedirectMask +SubstructureRedirectMask on the parent has precedence over -ResizeRedirectMask +ResizeRedirectMask on the window. When the geometry of the window is changed as specified, the window is restacked among siblings, and a -ConfigureNotify +ConfigureNotify event is generated if the state of the window actually changes. -GravityNotify +GravityNotify events are generated after -ConfigureNotify +ConfigureNotify events. If the inside width or height of the window has actually changed, children of the window are affected as specified. @@ -2409,15 +2409,15 @@ and any regions where window contents are lost. The restack check (specifically, the computation for -BottomIf, -TopIf, +BottomIf, +TopIf, and -Opposite) +Opposite) is performed with respect to the window's final size and position (as controlled by the other arguments of the request), not its initial position. If a sibling is specified without a stack_mode, a -BadMatch +BadMatch error results. @@ -2431,23 +2431,23 @@ the window is restacked as follows: - Above + Above The window is placed just above the sibling. - Below + Below The window is placed just below the sibling. - TopIf + TopIf If the sibling occludes the window, the window is placed at the top of the stack. - BottomIf + BottomIf If the window occludes the sibling, the window is placed at the bottom of the stack. - Opposite + Opposite If the sibling occludes the window, the window is placed at the top of the stack. If the window occludes the sibling, @@ -2470,15 +2470,15 @@ the window is restacked as follows: - Above + Above The window is placed at the top of the stack. - Below + Below The window is placed at the bottom of the stack. - TopIf + TopIf If any sibling occludes the window, the window is placed at the top of the stack. @@ -2491,7 +2491,7 @@ the bottom of the stack. - Opposite + Opposite If any sibling occludes the window, the window is placed at the top of the stack. @@ -2516,7 +2516,7 @@ To configure a window's size, location, stacking, or border, use - XConfigureWindow + XConfigureWindow Display *display Window w unsignedint value_mask @@ -2565,7 +2565,7 @@ This mask is the bitwise inclusive OR of the valid configure window values bits. Specifies the -XWindowChanges +XWindowChanges structure. @@ -2578,7 +2578,7 @@ structure. The XConfigureWindow function uses the values specified in the -XWindowChanges +XWindowChanges structure to reconfigure a window's size, position, border, and stacking order. Values not specified are taken from the existing geometry of the window. @@ -2587,13 +2587,13 @@ Values not specified are taken from the existing geometry of the window. If a sibling is specified without a stack_mode or if the window is not actually a sibling, a -BadMatch +BadMatch error results. Note that the computations for -BottomIf, -TopIf, +BottomIf, +TopIf, and -Opposite +Opposite are performed with respect to the window's final geometry (as controlled by the other arguments passed to XConfigureWindow), @@ -2607,10 +2607,10 @@ changed to reflect the current screen contents XConfigureWindow can generate -BadMatch, -BadValue, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -2622,7 +2622,7 @@ To move a window without changing its size, use - XMoveWindow + XMoveWindow Display *display Window w intx, y @@ -2689,21 +2689,21 @@ depending on if the window is obscured by nonchildren and if no backing store exists. If the contents of the window are lost, the X server generates -Expose +Expose events. Moving a mapped window generates -Expose +Expose events on any formerly obscured windows. If the override-redirect flag of the window is -False +False and some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates a -ConfigureRequest +ConfigureRequest event, and no further processing is performed. Otherwise, the window is moved. @@ -2712,7 +2712,7 @@ Otherwise, the window is moved. XMoveWindow can generate a -BadWindow +BadWindow error. @@ -2724,7 +2724,7 @@ To change a window's size without changing the upper-left coordinate, use - XResizeWindow + XResizeWindow Display *display Window w unsignedintwidth, height @@ -2787,35 +2787,35 @@ its borders. This function does not change the window's upper-left coordinate or the origin and does not restack the window. Changing the size of a mapped window may lose its contents and generate -Expose +Expose events. If a mapped window is made smaller, changing its size generates -Expose +Expose events on windows that the mapped window formerly obscured. If the override-redirect flag of the window is -False +False and some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates a -ConfigureRequest +ConfigureRequest event, and no further processing is performed. If either width or height is zero, a -BadValue +BadValue error results. XResizeWindow can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -2827,7 +2827,7 @@ To change the size and location of a window, use - XMoveResizeWindow + XMoveResizeWindow Display *display Window w intx, y @@ -2911,22 +2911,22 @@ The function changes the size and location of the specified window without raising it. Moving and resizing a mapped window may generate an -Expose +Expose event on the window. Depending on the new size and location parameters, moving and resizing a window may generate -Expose +Expose events on windows that the window formerly obscured. If the override-redirect flag of the window is -False +False and some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates a -ConfigureRequest +ConfigureRequest event, and no further processing is performed. Otherwise, the window size and location are changed. @@ -2934,9 +2934,9 @@ Otherwise, the window size and location are changed. XMoveResizeWindow can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -2948,7 +2948,7 @@ To change the border width of a given window, use - XSetWindowBorderWidth + XSetWindowBorderWidth Display *display Window w unsignedint width @@ -2999,7 +2999,7 @@ function sets the specified window's border width to the specified width. XSetWindowBorderWidth can generate a -BadWindow +BadWindow error. @@ -3025,7 +3025,7 @@ To raise a window so that no sibling window obscures it, use - XRaiseWindow + XRaiseWindow Display *display Window w @@ -3067,18 +3067,18 @@ on a desk, then raising a window is analogous to moving the sheet to the top of the stack but leaving its x and y location on the desk constant. Raising a mapped window may generate -Expose +Expose events for the window and any mapped subwindows that were formerly obscured. If the override-redirect attribute of the window is -False +False and some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates a -ConfigureRequest +ConfigureRequest event, and no processing is performed. Otherwise, the window is raised. @@ -3086,7 +3086,7 @@ Otherwise, the window is raised. XRaiseWindow can generate a -BadWindow +BadWindow error. @@ -3098,7 +3098,7 @@ To lower a window so that it does not obscure any sibling windows, use - XLowerWindow + XLowerWindow Display *display Window w @@ -3140,18 +3140,18 @@ stacked on a desk, then lowering a window is analogous to moving the sheet to the bottom of the stack but leaving its x and y location on the desk constant. Lowering a mapped window will generate -Expose +Expose events on any windows it formerly obscured. If the override-redirect attribute of the window is -False +False and some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates a -ConfigureRequest +ConfigureRequest event, and no processing is performed. Otherwise, the window is lowered to the bottom of the stack. @@ -3160,7 +3160,7 @@ stack. XLowerWindow can generate a -BadWindow +BadWindow error. @@ -3172,7 +3172,7 @@ To circulate a subwindow up or down, use - XCirculateSubwindows + XCirculateSubwindows Display *display Window w int direction @@ -3209,9 +3209,9 @@ Specifies the window. Specifies the direction (up or down) that you want to circulate the window. You can pass -RaiseLowest +RaiseLowest or -LowerHighest. +LowerHighest. @@ -3225,33 +3225,33 @@ The function circulates children of the specified window in the specified direction. If you specify -RaiseLowest, +RaiseLowest, XCirculateSubwindows raises the lowest mapped child (if any) that is occluded by another child to the top of the stack. If you specify -LowerHighest, +LowerHighest, XCirculateSubwindows lowers the highest mapped child (if any) that occludes another child to the bottom of the stack. Exposure processing is then performed on formerly obscured windows. If some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the window, the X server generates a -CirculateRequest +CirculateRequest event, and no further processing is performed. If a child is actually restacked, the X server generates a -CirculateNotify +CirculateNotify event. XCirculateSubwindows can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -3264,7 +3264,7 @@ occluded by another child, use - XCirculateSubwindowsUp + XCirculateSubwindowsUp Display *display Window w @@ -3306,14 +3306,14 @@ Completely unobscured children are not affected. This is a convenience function equivalent to XCirculateSubwindows with -RaiseLowest +RaiseLowest specified. XCirculateSubwindowsUp can generate a -BadWindow +BadWindow error. @@ -3326,7 +3326,7 @@ completely occludes another child, use - XCirculateSubwindowsDown + XCirculateSubwindowsDown Display *display Window w @@ -3366,14 +3366,14 @@ Completely unobscured children are not affected. This is a convenience function equivalent to XCirculateSubwindows with -LowerHighest +LowerHighest specified. XCirculateSubwindowsDown can generate a -BadWindow +BadWindow error. @@ -3385,7 +3385,7 @@ To restack a set of windows from top to bottom, use - XRestackWindows + XRestackWindows XRestackWindows\^(\^display,windows, \^nwindows) Display *display Window windows[] @@ -3439,18 +3439,18 @@ in the order of the array. The stacking order of the other windows is not affected. For each window in the window array that is not a child of the specified window, a -BadMatch +BadMatch error results. If the override-redirect attribute of a window is -False +False and some other client has selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent, the X server generates -ConfigureRequest +ConfigureRequest events for each window whose override-redirect flag is not set, and no further processing is performed. Otherwise, the windows will be restacked in top-to-bottom order. @@ -3459,7 +3459,7 @@ Otherwise, the windows will be restacked in top-to-bottom order. XRestackWindows can generate a -BadWindow +BadWindow error. @@ -3477,7 +3477,7 @@ Xlib provides functions that you can use to set window attributes. XChangeWindowAttributes is the more general function that allows you to set one or more window attributes provided by the -XSetWindowAttributes +XSetWindowAttributes structure. The other functions described in this section allow you to set one specific window attribute, such as a window's background. @@ -3491,7 +3491,7 @@ To change one or more attributes for a given window, use - XChangeWindowAttributes + XChangeWindowAttributes Display *display Window w unsignedlong valuemask @@ -3569,7 +3569,7 @@ Depending on the valuemask, the XChangeWindowAttributes function uses the window attributes in the -XSetWindowAttributes +XSetWindowAttributes structure to change the specified window attributes. Changing the background does not cause the window contents to be changed. @@ -3578,31 +3578,31 @@ To repaint the window and its background, use Setting the border or changing the background such that the border tile origin changes causes the border to be repainted. Changing the background of a root window to -None +None or -ParentRelative +ParentRelative restores the default background pixmap. Changing the border of a root window to -CopyFromParent +CopyFromParent restores the default border pixmap. Changing the win-gravity does not affect the current position of the window. Changing the backing-store of an obscured window to -WhenMapped +WhenMapped or -Always, +Always, or changing the backing-planes, backing-pixel, or save-under of a mapped window may have no immediate effect. Changing the colormap of a window (that is, defining a new map, not changing the contents of the existing map) generates a -ColormapNotify +ColormapNotify event. Changing the colormap of a visible window may have no immediate effect on the screen because the map may not be installed (see XInstallColormap). Changing the cursor of a root window to -None +None restores the default cursor. Whenever possible, you are encouraged to share colormaps. @@ -3614,14 +3614,14 @@ Their event masks are maintained separately. When an event is generated, it is reported to all interested clients. However, only one client at a time can select for -SubstructureRedirectMask, -ResizeRedirectMask, +SubstructureRedirectMask, +ResizeRedirectMask, and -ButtonPressMask. +ButtonPressMask. If a client attempts to select any of these event masks and some other client has already selected one, a -BadAccess +BadAccess error results. There is only one do-not-propagate-mask for a window, not one per client. @@ -3630,14 +3630,14 @@ not one per client. XChangeWindowAttributes can generate -BadAccess, -BadColor, -BadCursor, -BadMatch, -BadPixmap, -BadValue, +BadAccess, +BadColor, +BadCursor, +BadMatch, +BadPixmap, +BadValue, and -BadWindow +BadWindow errors. @@ -3649,7 +3649,7 @@ To set the background of a window to a given pixel, use - XSetWindowBackground + XSetWindowBackground Display *display Window w unsignedlong background_pixel @@ -3699,18 +3699,18 @@ Changing the background does not cause the window contents to be changed. XSetWindowBackground uses a pixmap of undefined size filled with the pixel value you passed. If you try to change the background of an -InputOnly +InputOnly window, a -BadMatch +BadMatch error results. XSetWindowBackground can generate -BadMatch +BadMatch and -BadWindow +BadWindow errors. @@ -3726,7 +3726,7 @@ To set the background of a window to a given pixmap, use - XSetWindowBackgroundPixmap + XSetWindowBackgroundPixmap Display *display Window w Pixmap background_pixmap @@ -3761,9 +3761,9 @@ Specifies the window. Specifies the background pixmap, -ParentRelative, +ParentRelative, or -None. +None. @@ -3780,27 +3780,27 @@ function sets the background pixmap of the window to the specified pixmap. The background pixmap can immediately be freed if no further explicit references to it are to be made. If -ParentRelative +ParentRelative is specified, the background pixmap of the window's parent is used, or on the root window, the default background is restored. If you try to change the background of an -InputOnly +InputOnly window, a -BadMatch +BadMatch error results. If the background is set to -None, +None, the window has no defined background. XSetWindowBackgroundPixmap can generate -BadMatch, -BadPixmap, +BadMatch, +BadPixmap, and -BadWindow +BadWindow errors. XSetWindowBackground @@ -3818,7 +3818,7 @@ To change and repaint a window's border to a given pixel, use - XSetWindowBorder + XSetWindowBorder Display *display Window w unsignedlong border_pixel @@ -3865,18 +3865,18 @@ The XSetWindowBorder function sets the border of the window to the pixel value you specify. If you attempt to perform this on an -InputOnly +InputOnly window, a -BadMatch +BadMatch error results. XSetWindowBorder can generate -BadMatch +BadMatch and -BadWindow +BadWindow errors. @@ -3888,7 +3888,7 @@ To change and repaint the border tile of a given window, use - XSetWindowBorderPixmap + XSetWindowBorderPixmap Display *display Window w Pixmap border_pixmap @@ -3923,7 +3923,7 @@ Specifies the window. Specifies the border pixmap or -CopyFromParent. +CopyFromParent. @@ -3938,12 +3938,12 @@ function sets the border pixmap of the window to the pixmap you specify. The border pixmap can be freed immediately if no further explicit references to it are to be made. If you specify -CopyFromParent, +CopyFromParent, a copy of the parent window's border pixmap is used. If you attempt to perform this on an -InputOnly +InputOnly window, a -BadMatch +BadMatch error results. Resource IDsfreeing Freeingresources @@ -3952,10 +3952,10 @@ error results. XSetWindowBorderPixmap can generate -BadMatch, -BadPixmap, +BadMatch, +BadPixmap, and -BadWindow +BadWindow errors. @@ -3967,7 +3967,7 @@ To set the colormap of a given window, use - XSetWindowColormap + XSetWindowColormap Display *display Window w Colormap colormap @@ -4015,17 +4015,17 @@ The function sets the specified colormap of the specified window. The colormap must have the same visual type as the window, or a -BadMatch +BadMatch error results. XSetWindowColormap can generate -BadColor, -BadMatch, +BadColor, +BadMatch, and -BadWindow +BadWindow errors. @@ -4038,7 +4038,7 @@ To define which cursor will be used in a window, use - XDefineCursor + XDefineCursor Display *display Window w Cursor cursor @@ -4073,7 +4073,7 @@ Specifies the window. Specifies the cursor that is to be displayed or -None. +None. @@ -4084,7 +4084,7 @@ Specifies the cursor that is to be displayed or If a cursor is set, it will be used when the pointer is in the window. If the cursor is -None, +None, it is equivalent to XUndefineCursor. @@ -4092,9 +4092,9 @@ it is equivalent to XDefineCursor can generate -BadCursor +BadCursor and -BadWindow +BadWindow errors. @@ -4107,7 +4107,7 @@ To undefine the cursor in a given window, use - XUndefineCursor + XUndefineCursor Display *display Window w @@ -4153,7 +4153,7 @@ the default cursor is restored. XUndefineCursor can generate a -BadWindow +BadWindow error. diff --git a/libX11/specs/libX11/CH04.xml b/libX11/specs/libX11/CH04.xml index ed8bd2427..dc611aef5 100644 --- a/libX11/specs/libX11/CH04.xml +++ b/libX11/specs/libX11/CH04.xml @@ -39,7 +39,7 @@ a given window, use - Status XQueryTree + Status XQueryTree Display *display Window w Window *root_return @@ -134,7 +134,7 @@ To free a non-NULL children list when it is no longer needed, use XQueryTree can generate a -BadWindow +BadWindow error. @@ -146,7 +146,7 @@ To obtain the current attributes of a given window, use - Status XGetWindowAttributes + Status XGetWindowAttributes Display *display Window w XWindowAttributes *window_attributes_return @@ -182,7 +182,7 @@ Specifies the window (Wi. Returns the specified window's attributes in the -XWindowAttributes +XWindowAttributes structure. @@ -195,7 +195,7 @@ structure. The XGetWindowAttributes function returns the current attributes for the specified window to an -XWindowAttributes +XWindowAttributes structure. @@ -241,13 +241,13 @@ The border_width member is set to the window's border width in pixels. The depth member is set to the depth of the window (that is, bits per pixel for the object). The visual member is a pointer to the screen's associated -Visual +Visual structure. The root member is set to the root window of the screen containing the window. The class member is set to the window's class and can be either -InputOutput +InputOutput or -InputOnly. +InputOnly. @@ -260,24 +260,24 @@ and can be one of the following: - ForgetGravity - EastGravity + ForgetGravity + EastGravity - NorthWestGravity - SouthWestGravity + NorthWestGravity + SouthWestGravity - NorthGravity - SouthGravity + NorthGravity + SouthGravity - NorthEastGravity - SouthEastGravity + NorthEastGravity + SouthEastGravity - WestGravity - StaticGravity + WestGravity + StaticGravity @@ -294,27 +294,27 @@ and can be one of the following: - UnmapGravity - EastGravity + UnmapGravity + EastGravity - NorthWestGravity - SouthWestGravity + NorthWestGravity + SouthWestGravity - NorthGravity - SouthGravity + NorthGravity + SouthGravity - NorthEastGravity - SouthEastGravity + NorthEastGravity + SouthEastGravity - WestGravity - StaticGravity + WestGravity + StaticGravity - CenterGravity + CenterGravity @@ -330,10 +330,10 @@ see section 3.2.3. The backing_store member is set to indicate how the X server should maintain the contents of a window and can be -WhenMapped, -Always, +WhenMapped, +Always, or -NotUseful. +NotUseful. The backing_planes member is set to indicate (with bits set to 1) which bit planes of the window hold dynamic data that must be preserved in backing_stores and during save_unders. @@ -343,23 +343,23 @@ for planes not set in backing_planes. The save_under member is set to -True +True or -False. +False. The colormap member is set to the colormap for the specified window and can be a colormap ID or -None. +None. The map_installed member is set to indicate whether the colormap is currently installed and can be -True +True or -False. +False. The map_state member is set to indicate the state of the window and can be -IsUnmapped, -IsUnviewable, +IsUnmapped, +IsUnviewable, or -IsViewable. -IsUnviewable +IsViewable. +IsUnviewable is used if the window is mapped but some ancestor is unmapped. @@ -375,11 +375,11 @@ set of events that should not propagate. The override_redirect member is set to indicate whether this window overrides structure control facilities and can be -True +True or -False. +False. Window manager clients should ignore the window if this member is -True. +True. @@ -392,9 +392,9 @@ having to loop over the root window fields to see which field matches. XGetWindowAttributes can generate -BadDrawable +BadDrawable and -BadWindow +BadWindow errors. @@ -406,7 +406,7 @@ To obtain the current geometry of a given drawable, use - Status XGetGeometry + Status XGetGeometry Display *display Drawable d Window *root_return @@ -530,13 +530,13 @@ The geometry of the drawable includes the x and y coordinates, width and height, border width, and depth. These are described in the argument list. It is legal to pass to this function a window whose class is -InputOnly. +InputOnly. XGetGeometry can generate a -BadDrawable +BadDrawable error. @@ -567,7 +567,7 @@ space of another window, use - Bool XTranslateCoordinates + Bool XTranslateCoordinates Display *display Windowsrc_w, dest_w intsrc_x, src_y @@ -668,7 +668,7 @@ destination window. If XTranslateCoordinates returns -True, +True, it takes the src_x and src_y coordinates relative to the source window's origin and returns these coordinates to dest_x_return and dest_y_return @@ -676,19 +676,19 @@ relative to the destination window's origin. If XTranslateCoordinates returns -False, +False, src_w and dest_w are on different screens, and dest_x_return and dest_y_return are zero. If the coordinates are contained in a mapped child of dest_w, that child is returned to child_return. Otherwise, child_return is set to -None. +None. XTranslateCoordinates can generate a -BadWindow +BadWindow error. @@ -701,7 +701,7 @@ or to determine the pointer coordinates relative to a specified window, use - Bool XQueryPointer + Bool XQueryPointer Display *display Window w Window*root_return, *child_return @@ -817,23 +817,23 @@ coordinates relative to the root window's origin. If XQueryPointer returns -False, +False, the pointer is not on the same screen as the specified window, and XQueryPointer returns -None +None to child_return and zero to win_x_return and win_y_return. If XQueryPointer returns -True, +True, the pointer coordinates returned to win_x_return and win_y_return are relative to the origin of the specified window. In this case, XQueryPointer returns the child that contains the pointer, if any, or else -None +None to child_return. @@ -855,7 +855,7 @@ may lag the physical state if device event processing is frozen XQueryPointer can generate a -BadWindow +BadWindow error. @@ -910,9 +910,9 @@ arbitrary extension in this type scheme. Certain property names are predefined in the server for commonly used functions. The atoms for these properties are defined in - +<X11/Xatom.h>. To avoid name clashes with user symbols, the -#define +#define name for each atom has the XA_ prefix. For an explanation of the functions that let you get and set much of the information stored in these predefined properties, @@ -962,7 +962,7 @@ Font properties Type of a -ClientMessage +ClientMessage event (none are built into the X server) @@ -1189,7 +1189,7 @@ To return an atom for a given name, use - Atom XInternAtom + Atom XInternAtom Display *display char *atom_name Bool only_if_exists @@ -1237,12 +1237,12 @@ The function returns the atom identifier associated with the specified atom_name string. If only_if_exists is -False, +False, the atom is created if it does not exist. Therefore, XInternAtom can return -None. +None. If the atom name is not in the Host Portable Character Encoding, the result is implementation-dependent. Uppercase and lowercase matter; @@ -1256,9 +1256,9 @@ the X server closes. XInternAtom can generate -BadAlloc +BadAlloc and -BadValue +BadValue errors. @@ -1271,7 +1271,7 @@ To return atoms for an array of names, use - Status XInternAtoms + Status XInternAtoms Display *display char **names int count @@ -1357,9 +1357,9 @@ otherwise, it returns zero. XInternAtoms can generate -BadAlloc +BadAlloc and -BadValue +BadValue errors. @@ -1372,7 +1372,7 @@ To return a name for a given atom identifier, use - char *XGetAtomName + char *XGetAtomName Display *display Atom atom @@ -1418,7 +1418,7 @@ call XGetAtomName can generate a -BadAtom +BadAtom error. @@ -1431,7 +1431,7 @@ To return the names for an array of atom identifiers, use - Status XGetAtomNames + Status XGetAtomNames Display *display Atom *atoms int count @@ -1506,7 +1506,7 @@ otherwise, it returns zero. XGetAtomNames can generate a -BadAtom +BadAtom error. @@ -1521,11 +1521,11 @@ You can attach a property list to every window. Each property has a name, a type, and a value (see section 4.3). The value is an array of 8-bit, 16-bit, or 32-bit quantities, whose interpretation is left to the clients. The type -char +char is used to represent 8-bit quantities, the type -short +short is used to represent 16-bit quantities, and the type -long +long is used to represent 32-bit quantities. @@ -1548,7 +1548,7 @@ To obtain the type, format, and value of a property of a given window, use - int XGetWindowProperty + int XGetWindowProperty \^display w property @@ -1634,7 +1634,7 @@ Specifies a Boolean value that determines whether the property is deleted. Specifies the atom identifier associated with the property type or -AnyPropertyType. +AnyPropertyType. @@ -1707,9 +1707,9 @@ sets the return arguments as follows: If the specified property does not exist for the specified window, -XGetWindowProperty +XGetWindowProperty returns -None +None to actual_type_return and the value zero to actual_format_return and bytes_after_return. The nitems_return argument is empty. @@ -1720,7 +1720,7 @@ In this case, the delete argument is ignored. If the specified property exists but its type does not match the specified type, -XGetWindowProperty +XGetWindowProperty returns the actual property type to actual_type_return, the actual property format (never zero) to actual_format_return, and the property length in bytes @@ -1733,9 +1733,9 @@ The nitems_return argument is empty. If the specified property exists and either you assign -AnyPropertyType +AnyPropertyType to the req_type argument or the specified type matches the actual property type, -XGetWindowProperty +XGetWindowProperty returns the actual property type to actual_type_return and the actual property format (never zero) to actual_format_return. It also returns a value to bytes_after_return and nitems_return, by @@ -1761,7 +1761,7 @@ The returned value starts at byte index I in the property (indexing from zero), and its length in bytes is L. If the value for long_offset causes L to be negative, a -BadValue +BadValue error results. The value of bytes_after_return is A, giving the number of trailing unread bytes in the stored property. @@ -1771,13 +1771,13 @@ giving the number of trailing unread bytes in the stored property. If the returned format is 8, the returned data is represented as a -char +char array. If the returned format is 16, the returned data is represented as a -short +short array and should be cast to that type to obtain the elements. If the returned format is 32, the returned data is represented as a -long +long array and should be cast to that type to obtain the elements. @@ -1791,18 +1791,18 @@ do not have to be copied into yet another string before use. If delete is -True +True and bytes_after_return is zero, XGetWindowProperty deletes the property from the window and generates a -PropertyNotify +PropertyNotify event on the window. The function returns -Success +Success if it executes successfully. To free the resulting data, use @@ -1812,10 +1812,10 @@ use XGetWindowProperty can generate -BadAtom, -BadValue, +BadAtom, +BadValue, and -BadWindow +BadWindow errors. @@ -1828,7 +1828,7 @@ To obtain a given window's property list, use - Atom *XListProperties + Atom *XListProperties Display *display Window w int *num_prop_return @@ -1883,7 +1883,7 @@ To free the memory allocated by this function, use XListProperties can generate a -BadWindow +BadWindow error. @@ -1901,7 +1901,7 @@ To change a property of a given window, use - XChangeProperty + XChangeProperty Display *display Window w Atomproperty, type @@ -1984,10 +1984,10 @@ to Specifies the mode of the operation. You can pass -PropModeReplace, -PropModePrepend, +PropModeReplace, +PropModePrepend, or -PropModeAppend. +PropModeAppend. @@ -2020,7 +2020,7 @@ The XChangeProperty function alters the property for the specified window and causes the X server to generate a -PropertyNotify +PropertyNotify event on that window. XChangeProperty performs the following: @@ -2029,7 +2029,7 @@ performs the following: If mode is -PropModeReplace, +PropModeReplace, XChangeProperty discards the previous property value and stores the new data. @@ -2037,15 +2037,15 @@ discards the previous property value and stores the new data. If mode is -PropModePrepend +PropModePrepend or -PropModeAppend, +PropModeAppend, XChangeProperty inserts the specified data before the beginning of the existing data or onto the end of the existing data, respectively. The type and format must match the existing property value, or a -BadMatch +BadMatch error results. If the property is undefined, it is treated as defined with the correct type and @@ -2056,13 +2056,13 @@ format with zero-length data. If the specified format is 8, the property data must be a -char +char array. If the specified format is 16, the property data must be a -short +short array. If the specified format is 32, the property data must be a -long +long array. @@ -2075,19 +2075,19 @@ see section 2.6. The maximum size of a property is server dependent and can vary dynamically depending on the amount of memory the server has available. (If there is insufficient space, a -BadAlloc +BadAlloc error results.) XChangeProperty can generate -BadAlloc, -BadAtom, -BadMatch, -BadValue, +BadAlloc, +BadAtom, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -2102,7 +2102,7 @@ To rotate a window's property list, use - XRotateWindowProperties + XRotateWindowProperties Display *display Window w Atom properties[]\^ @@ -2171,7 +2171,7 @@ The XRotateWindowProperties function allows you to rotate properties on a window and causes the X server to generate -PropertyNotify +PropertyNotify events. If the property names in the properties array are viewed as being numbered starting from zero and if there are num_prop property names in the list, @@ -2182,17 +2182,17 @@ of property names (right for positive npositions, left for negative npositions). If npositions mod N is nonzero, the X server generates a -PropertyNotify +PropertyNotify event for each property in the order that they are listed in the array. If an atom occurs more than once in the list or no property with that name is defined for the window, a -BadMatch +BadMatch error results. If a -BadAtom +BadAtom or -BadMatch +BadMatch error results, no properties are changed. @@ -2200,10 +2200,10 @@ no properties are changed. XRotateWindowProperties can generate -BadAtom, -BadMatch, +BadAtom, +BadMatch, and -BadWindow +BadWindow errors. @@ -2216,7 +2216,7 @@ To delete a property on a given window, use - XDeleteProperty + XDeleteProperty Display *display Window w Atom property @@ -2265,16 +2265,16 @@ The function deletes the specified property only if the property was defined on the specified window and causes the X server to generate a -PropertyNotify +PropertyNotify event on the window unless the property does not exist. XDeleteProperty can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. @@ -2339,7 +2339,7 @@ To set the selection owner, use - XSetSelectionOwner + XSetSelectionOwner Display *display Atom selection Window owner @@ -2376,7 +2376,7 @@ Specifies the selection atom. Specifies the owner of the specified selection atom. You can pass a window or -None. +None. @@ -2388,7 +2388,7 @@ You can pass a window or Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -2405,12 +2405,12 @@ last-change time of the specified selection or is later than the current X server time. Otherwise, the last-change time is set to the specified time, with -CurrentTime +CurrentTime replaced by the current server time. If the owner window is specified as -None, +None, then the owner of the selection becomes -None +None (that is, no owner). Otherwise, the owner of the selection becomes the client executing the request. @@ -2418,13 +2418,13 @@ the request. If the new owner (whether a client or -None) +None) is not the same as the current owner of the selection and the current owner is not -None, +None, the current owner is sent a -SelectionClear +SelectionClear event. If the client that is the owner of a selection is later terminated (that is, its connection is closed) @@ -2432,14 +2432,14 @@ or if the owner window it has specified in the request is later destroyed, the owner of the selection automatically reverts to -None, +None, but the last-change time is not affected. The selection atom is uninterpreted by the X server. XGetSelectionOwner returns the owner window, which is reported in -SelectionRequest +SelectionRequest and -SelectionClear +SelectionClear events. Selections are global to the X server. @@ -2447,9 +2447,9 @@ Selections are global to the X server. XSetSelectionOwner can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. @@ -2462,7 +2462,7 @@ To return the selection owner, use - Window XGetSelectionOwner + Window XGetSelectionOwner Display *display Atom selection @@ -2501,9 +2501,9 @@ function returns the window ID associated with the window that currently owns the specified selection. If no selection was specified, the function returns the constant -None. +None. If -None +None is returned, there is no owner for the selection. @@ -2511,7 +2511,7 @@ there is no owner for the selection. XGetSelectionOwner can generate a -BadAtom +BadAtom error. @@ -2524,7 +2524,7 @@ To request conversion of a selection, use - XConvertSelection + XConvertSelection Display *display Atomselection, target Atom property @@ -2572,7 +2572,7 @@ Specifies the target atom. Specifies the property name. You also can pass -None. +None. @@ -2594,7 +2594,7 @@ Specifies the requestor. Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -2611,7 +2611,7 @@ type: If the specified selection has an owner, the X server sends a -SelectionRequest +SelectionRequest event to that owner. @@ -2619,10 +2619,10 @@ event to that owner. If no owner for the specified selection exists, the X server generates a -SelectionNotify +SelectionNotify event to the requestor with property -None. +None. @@ -2635,9 +2635,9 @@ There are two predefined selection atoms: PRIMARY and SECONDARY. XConvertSelection can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. diff --git a/libX11/specs/libX11/CH05.xml b/libX11/specs/libX11/CH05.xml index 449272a19..d4a3ff1a0 100644 --- a/libX11/specs/libX11/CH05.xml +++ b/libX11/specs/libX11/CH05.xml @@ -23,7 +23,7 @@ To create a pixmap of a given size, use - Pixmap XCreatePixmap + Pixmap XCreatePixmap Display *display Drawable d unsignedintwidth, height @@ -94,16 +94,16 @@ The function creates a pixmap of the width, height, and depth you specified and returns a pixmap ID that identifies it. It is valid to pass an -InputOnly +InputOnly window to the drawable argument. The width and height arguments must be nonzero, or a -BadValue +BadValue error results. The depth argument must be one of the depths supported by the screen of the specified drawable, or a -BadValue +BadValue error results. @@ -120,10 +120,10 @@ The initial contents of the pixmap are undefined. XCreatePixmap can generate -BadAlloc, -BadDrawable, +BadAlloc, +BadDrawable, and -BadValue +BadValue errors. @@ -135,7 +135,7 @@ To free all storage associated with a specified pixmap, use - XFreePixmap + XFreePixmap Display *display Pixmap pixmap @@ -177,7 +177,7 @@ The pixmap should never be referenced again. XFreePixmap can generate a -BadPixmap +BadPixmap error. @@ -227,7 +227,7 @@ To create a cursor from the standard cursor font, use - Cursor XCreateFontCursor + Cursor XCreateFontCursor Display *display unsignedint shape @@ -280,9 +280,9 @@ see appendix B. XCreateFontCursor can generate -BadAlloc +BadAlloc and -BadValue +BadValue errors. @@ -294,7 +294,7 @@ To create a cursor from font glyphs, use - Cursor XCreateGlyphCursor + Cursor XCreateGlyphCursor Display *display Fontsource_font, mask_font unsignedintsource_char, mask_char @@ -331,7 +331,7 @@ Specifies the font for the source glyph. Specifies the font for the mask glyph or -None. +None. @@ -388,12 +388,12 @@ except that the source and mask bitmaps are obtained from the specified font glyphs. The source_char must be a defined glyph in source_font, or a -BadValue +BadValue error results. If mask_font is given, mask_char must be a defined glyph in mask_font, or a -BadValue +BadValue error results. The mask_font and character are optional. The origins of the source_char and mask_char (if defined) glyphs are @@ -417,10 +417,10 @@ least significant byte. XCreateGlyphCursor can generate -BadAlloc, -BadFont, +BadAlloc, +BadFont, and -BadValue +BadValue errors. @@ -433,7 +433,7 @@ use - Cursor XCreatePixmapCursor + Cursor XCreatePixmapCursor Display *display Pixmap source Pixmap mask @@ -472,7 +472,7 @@ Specifies the shape of the source cursor. Specifies the cursor's source bits to be displayed or -None. +None. @@ -529,14 +529,14 @@ function creates a cursor and returns the cursor ID associated with it. The foreground and background RGB values must be specified using foreground_color and background_color, even if the X server only has a -StaticGray +StaticGray or -GrayScale +GrayScale screen. The foreground color is used for the pixels set to 1 in the source, and the background color is used for the pixels set to 0. Both source and mask, if specified, must have depth one (or a -BadMatch +BadMatch error results) but can have any root. The mask argument defines the shape of the cursor. The pixels set to 1 in the mask define which source pixels are displayed, @@ -545,11 +545,11 @@ If no mask is given, all pixels of the source are displayed. The mask, if present, must be the same size as the pixmap defined by the source argument, or a -BadMatch +BadMatch error results. The hotspot must be a point within the source, or a -BadMatch +BadMatch error results. @@ -566,9 +566,9 @@ The X server might or might not make a copy of the pixmap. XCreatePixmapCursor can generate -BadAlloc +BadAlloc and -BadPixmap +BadPixmap errors. @@ -580,7 +580,7 @@ To determine useful cursor sizes, use - Status XQueryBestCursor + Status XQueryBestCursor Display *display Drawable d unsignedintwidth, height @@ -673,7 +673,7 @@ cannot support large ones. XQueryBestCursor can generate a -BadDrawable +BadDrawable error. @@ -685,7 +685,7 @@ To change the color of a given cursor, use - XRecolorCursor + XRecolorCursor Display *display Cursor cursor XColor*foreground_color, *background_color @@ -744,14 +744,14 @@ function changes the color of the specified cursor, and if the cursor is being displayed on a screen, the change is visible immediately. The pixel members of the -XColor +XColor structures are ignored; only the RGB values are used. XRecolorCursor can generate a -BadCursor +BadCursor error. @@ -763,7 +763,7 @@ To free (destroy) a given cursor, use - XFreeCursor + XFreeCursor Display *display Cursor cursor @@ -806,7 +806,7 @@ The specified cursor ID should not be referred to again. XFreeCursor can generate a -BadCursor +BadCursor error. diff --git a/libX11/specs/libX11/CH06.xml b/libX11/specs/libX11/CH06.xml index 9ca12db0c..070898dd3 100644 --- a/libX11/specs/libX11/CH06.xml +++ b/libX11/specs/libX11/CH06.xml @@ -77,9 +77,9 @@ Add new color spaces All functions, types, and symbols in this chapter with the prefix ``Xcms'' are defined in - +<X11/Xcms.h>. The remaining functions and types are defined in - +<X11/Xlib.h>. @@ -148,21 +148,21 @@ are written to encourage sharing of colormap entries between applications. The -DefaultColormap +DefaultColormap macro returns the default colormap. The -DefaultVisual +DefaultVisual macro returns the default visual type for the specified screen. Color map Possible visual types are -StaticGray, -GrayScale, -StaticColor, -PseudoColor, -TrueColor, +StaticGray, +GrayScale, +StaticColor, +PseudoColor, +TrueColor, or -DirectColor +DirectColor (see section 3.1). @@ -173,7 +173,7 @@ or Functions that operate only on RGB color space values use an -XColor +XColor structure, which contains: @@ -204,26 +204,26 @@ and white is represented by (65535,65535,65535). In some functions, the flags member controls which of the red, green, and blue members is used and can be the inclusive OR of zero or more of -DoRed, -DoGreen, +DoRed, +DoGreen, and -DoBlue. +DoBlue. Functions that operate on all color space values use an -XcmsColor +XcmsColor structure. This structure contains a union of substructures, each supporting color specification encoding for a particular color space. Like the -XColor +XColor structure, the -XcmsColor +XcmsColor structure contains pixel and color specification information (the spec member in the -XcmsColor +XcmsColor structure). XcmsColor @@ -258,7 +258,7 @@ typedef struct { Because the color specification can be encoded for the various color spaces, encoding for the spec member is identified by the format member, which is of type -XcmsColorFormat. +XcmsColorFormat. The following macros define standard formats. @@ -431,7 +431,7 @@ The device-dependent formats provided allow color specification in: RGB Intensity -(XcmsRGBi) +(XcmsRGBi) @@ -444,17 +444,17 @@ where 1.0 indicates full intensity, 0.5 half intensity, and so on. RGB Device -(XcmsRGB) +(XcmsRGB) Red, green, and blue values appropriate for the specified output device. -XcmsRGB +XcmsRGB values are of type unsigned short, scaled from 0 to 65535 inclusive, and are interchangeable with the red, green, and blue values in an -XColor +XColor structure. @@ -762,20 +762,20 @@ so the default CCC attributes can be modified to affect new CCCs. Xcms functions in which gamut mapping can occur return -Status +Status and have specific status values defined for them, as follows: -XcmsFailure +XcmsFailure indicates that the function failed. -XcmsSuccess +XcmsSuccess indicates that the function succeeded. In addition, if the function performed any color conversion, @@ -784,7 +784,7 @@ the colors did not need to be compressed. -XcmsSuccessWithCompression +XcmsSuccessWithCompression indicates the function performed color conversion and at least one of the colors needed to be compressed. The gamut compression method is determined by the gamut compression @@ -807,7 +807,7 @@ To create a colormap for a screen, use - Colormap XCreateColormap + Colormap XCreateColormap Display *display Window w Visual *visual @@ -846,7 +846,7 @@ Specifies the window (Wi. Specifies a visual type supported on the screen. If the visual type is not one supported by the screen, a -BadMatch +BadMatch error results. @@ -859,9 +859,9 @@ error results. Specifies the colormap entries to be allocated. You can pass -AllocNone +AllocNone or -AllocAll. +AllocAll. @@ -881,30 +881,30 @@ Note that the specified window is only used to determine the screen. The initial values of the colormap entries are undefined for the visual classes -GrayScale, -PseudoColor, +GrayScale, +PseudoColor, and -DirectColor. +DirectColor. For -StaticGray, -StaticColor, +StaticGray, +StaticColor, and -TrueColor, +TrueColor, the entries have defined values, but those values are specific to the visual and are not defined by X. For -StaticGray, -StaticColor, +StaticGray, +StaticColor, and -TrueColor, +TrueColor, alloc must be -AllocNone, +AllocNone, or a -BadMatch +BadMatch error results. For the other visual classes, if alloc is -AllocNone, +AllocNone, the colormap initially has no allocated entries, and clients can allocate them. For information about the visual types, @@ -913,19 +913,19 @@ see section 3.1. If alloc is -AllocAll, +AllocAll, the entire colormap is allocated writable. The initial values of all allocated entries are undefined. For -GrayScale +GrayScale and -PseudoColor, +PseudoColor, the effect is as if an XAllocColorCells call returned all pixel values from zero to N - 1, where N is the colormap entries value in the specified visual. For -DirectColor, +DirectColor, the effect is as if an XAllocColorPlanes call returned a pixel value of zero and red_mask, green_mask, @@ -939,11 +939,11 @@ none of these entries can be freed by using XCreateColormap can generate -BadAlloc, -BadMatch, -BadValue, +BadAlloc, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -956,7 +956,7 @@ shared colormap has failed because of resource exhaustion, use - ColormapXCopyColormapAndFree + Colormap XCopyColormapAndFree Display *display Colormap colormap @@ -998,13 +998,13 @@ and their read-only or writable characteristics intact and frees those entries in the specified colormap. Color values in other entries in the new colormap are undefined. If the specified colormap was created by the client with alloc set to -AllocAll, +AllocAll, the new colormap is also created with -AllocAll, +AllocAll, all color values for all entries are copied from the specified colormap, and then all entries in the specified colormap are freed. If the specified colormap was not created by the client with -AllocAll, +AllocAll, the allocations to be moved are all those pixels and planes that have been allocated by the client using XAllocColor, @@ -1018,9 +1018,9 @@ and that have not been freed since they were allocated. XCopyColormapAndFree can generate -BadAlloc +BadAlloc and -BadColor +BadColor errors. @@ -1081,18 +1081,18 @@ or XChangeWindowAttributes), XFreeColormap changes the colormap associated with the window to -None +None and generates a -ColormapNotify +ColormapNotify event. X does not define the colors displayed for a window with a colormap of -None. +None. XFreeColormap can generate a -BadColor +BadColor error. @@ -1195,7 +1195,7 @@ otherwise, it returns zero. XLookupColor can generate a -BadColor +BadColor error. @@ -1256,10 +1256,10 @@ case is ignored. Returns the exact color value for later use and sets the -DoRed, -DoGreen, +DoRed, +DoGreen, and -DoBlue +DoBlue flags. @@ -1285,7 +1285,7 @@ otherwise, it returns zero. XParseColor can generate a -BadColor +BadColor error. @@ -1370,13 +1370,13 @@ Returns the color that can be reproduced on the screen. Specifies the color format for the returned color specifications (color_screen_return and color_exact_return arguments). If the format is -XcmsUndefinedFormat +XcmsUndefinedFormat and the color string contains a numerical color specification, the specification is returned in the format used in that numerical color specification. If the format is -XcmsUndefinedFormat +XcmsUndefinedFormat and the color string contains a color name, the specification is returned in the format used to store the color in the database. @@ -1401,13 +1401,13 @@ the result is implementation-dependent. Use of uppercase or lowercase does not matter. XcmsLookupColor returns -XcmsSuccess +XcmsSuccess or -XcmsSuccessWithCompression +XcmsSuccessWithCompression if the name is resolved; otherwise, it returns -XcmsFailure. +XcmsFailure. If -XcmsSuccessWithCompression +XcmsSuccessWithCompression is returned, the color specification returned in color_screen_return is the result of gamut compression. @@ -1519,14 +1519,14 @@ the same read-only entry, thus allowing entries to be shared. When the last client deallocates a shared cell, it is deallocated. XAllocColor does not use or affect the flags in the -XColor +XColor structure. XAllocColor can generate a -BadColor +BadColor error. delim %% @@ -1618,21 +1618,21 @@ returns the pixel value of the color cell and the color specification actually allocated. This returned color specification is the result of converting the RGB value returned by -XAllocColor +XAllocColor into the format specified with the result_format argument. If there is no interest in a returned color specification, unnecessary computation can be bypassed if result_format is set to -XcmsRGBFormat. +XcmsRGBFormat. The corresponding colormap cell is read-only. If this routine returns -XcmsFailure, +XcmsFailure, the color_in_out color specification is left unchanged. XcmsAllocColor can generate a -BadColor +BadColor error. @@ -1737,7 +1737,7 @@ otherwise, it returns zero. XAllocNamedColor can generate a -BadColor +BadColor error. @@ -1828,13 +1828,13 @@ or parsed from the corresponding string found in a color-name database. Specifies the color format for the returned color specifications (color_screen_return and color_exact_return arguments). If the format is -XcmsUndefinedFormat +XcmsUndefinedFormat and the color string contains a numerical color specification, the specification is returned in the format used in that numerical color specification. If the format is -XcmsUndefinedFormat +XcmsUndefinedFormat and the color string contains a color name, the specification is returned in the format used to store the color in the database. @@ -1856,7 +1856,7 @@ ultimately calls to allocate a read-only color cell with the color specified by a color string. The color string is parsed into an -XcmsColor +XcmsColor structure (see XcmsLookupColor), converted @@ -1877,7 +1877,7 @@ returned by into the format specified in result_format. If there is no interest in a returned color specification, unnecessary computation can be bypassed if result_format is set to -XcmsRGBFormat. +XcmsRGBFormat. If color_screen_return and color_exact_return point to the same structure, the pixel field will be set correctly, but the color values are undefined. @@ -1886,14 +1886,14 @@ but the color values are undefined. XcmsAllocNamedColor can generate a -BadColor +BadColor error. To allocate read/write color cell and color plane combinations for a -PseudoColor +PseudoColor model, use XAllocColorCells. @@ -2002,7 +2002,7 @@ The function allocates read/write color cells. The number of colors must be positive and the number of planes nonnegative, or a -BadValue +BadValue error results. If ncolors and nplanes are requested, then ncolors pixels @@ -2014,23 +2014,23 @@ ncolors * %2 sup nplanes% distinct pixels can be produced. All of these are allocated writable by the request. For -GrayScale +GrayScale or -PseudoColor, +PseudoColor, each mask has exactly one bit set to 1. For -DirectColor, +DirectColor, each has exactly three bits set to 1. If contig is -True +True and if all masks are ORed together, a single contiguous set of bits set to 1 will be formed for -GrayScale +GrayScale or -PseudoColor +PseudoColor and three contiguous sets of bits set to 1 (one within each pixel subfield) for -DirectColor. +DirectColor. The RGB values of the allocated entries are undefined. XAllocColorCells @@ -2040,16 +2040,16 @@ returns nonzero if it succeeded or zero if it failed. XAllocColorCells can generate -BadColor +BadColor and -BadValue +BadValue errors. To allocate read/write color resources for a -DirectColor +DirectColor model, use XAllocColorPlanes. @@ -2203,19 +2203,19 @@ delim %% The specified ncolors must be positive; and nreds, ngreens, and nblues must be nonnegative, or a -BadValue +BadValue error results. If ncolors colors, nreds reds, ngreens greens, and nblues blues are requested, ncolors pixels are returned; and the masks have nreds, ngreens, and nblues bits set to 1, respectively. If contig is -True, +True, each mask will have a contiguous set of bits set to 1. No mask will have any bits set to 1 in common with any other mask or with any of the pixels. For -DirectColor, +DirectColor, each mask will lie within the corresponding pixel subfield. By ORing together @@ -2227,7 +2227,7 @@ colormap, there are only ncolors * %2 sup nreds% independent red entries, ncolors * %2 sup ngreens% independent green entries, and ncolors * %2 sup nblues% independent blue entries. This is true even for -PseudoColor. +PseudoColor. When the colormap entry of a pixel value is changed (using XStoreColors, @@ -2243,9 +2243,9 @@ returns nonzero if it succeeded or zero if it failed. XAllocColorPlanes can generate -BadColor +BadColor and -BadValue +BadValue errors. @@ -2347,7 +2347,7 @@ and XAllocColorPlanes). Note that freeing an individual pixel obtained from -XAllocColorPlanes +XAllocColorPlanes may not actually allow it to be reused until all of its related pixels are also freed. Similarly, @@ -2360,16 +2360,16 @@ it must free the entry that many times before the entry is actually freed. All specified pixels that are allocated by the client in the colormap are freed, even if one or more pixels produce an error. If a specified pixel is not a valid index into the colormap, a -BadValue +BadValue error results. If a specified pixel is not allocated by the client (that is, is unallocated or is only allocated by another client) or if the colormap was created with all entries writable (by passing -AllocAll +AllocAll to XCreateColormap), a -BadAccess +BadAccess error results. If more than one pixel is in error, the one that gets reported is arbitrary. @@ -2378,10 +2378,10 @@ the one that gets reported is arbitrary. XFreeColors can generate -BadAccess, -BadColor, +BadAccess, +BadColor, and -BadValue +BadValue errors. @@ -2448,26 +2448,26 @@ The XStoreColor function changes the colormap entry of the pixel value specified in the pixel member of the -XColor +XColor structure. You specified this value in the pixel member of the -XColor +XColor structure. This pixel value must be a read/write cell and a valid index into the colormap. If a specified pixel is not a valid index into the colormap, a -BadValue +BadValue error results. XStoreColor also changes the red, green, and/or blue color components. You specify which color components are to be changed by setting -DoRed, -DoGreen, +DoRed, +DoGreen, and/or -DoBlue +DoBlue in the flags member of the -XColor +XColor structure. If the colormap is an installed map for its screen, the changes are visible immediately. @@ -2476,10 +2476,10 @@ the changes are visible immediately. XStoreColor can generate -BadAccess, -BadColor, +BadAccess, +BadColor, and -BadValue +BadValue errors. @@ -2540,7 +2540,7 @@ Specifies an array of color definition structures to be stored. Specifies the number of -XColor +XColor structures in the color definition array. @@ -2554,26 +2554,26 @@ The XStoreColors function changes the colormap entries of the pixel values specified in the pixel members of the -XColor +XColor structures. You specify which color components are to be changed by setting -DoRed, -DoGreen, +DoRed, +DoGreen, and/or -DoBlue +DoBlue in the flags member of the -XColor +XColor structures. If the colormap is an installed map for its screen, the changes are visible immediately. -XStoreColors +XStoreColors changes the specified pixels if they are allocated writable in the colormap by any client, even if one or more pixels generates an error. If a specified pixel is not a valid index into the colormap, a -BadValue +BadValue error results. If a specified pixel either is unallocated or is allocated read-only, a -BadAccess +BadAccess error results. If more than one pixel is in error, the one that gets reported is arbitrary. @@ -2582,10 +2582,10 @@ the one that gets reported is arbitrary. XStoreColors can generate -BadAccess, -BadColor, +BadAccess, +BadColor, and -BadValue +BadValue errors. @@ -2635,7 +2635,7 @@ Specifies the colormap. Specifies the color cell and the color to store. Values specified in this -XcmsColor +XcmsColor structure remain unchanged on return. @@ -2648,27 +2648,27 @@ structure remain unchanged on return. The XcmsStoreColor function converts the color specified in the -XcmsColor +XcmsColor structure into RGB values. It then uses this RGB specification in an -XColor +XColor structure, whose three flags -(DoRed, -DoGreen, +(DoRed, +DoGreen, and -DoBlue) +DoBlue) are set, in a call to XStoreColor to change the color cell specified by the pixel member of the -XcmsColor +XcmsColor structure. This pixel value must be a valid index for the specified colormap, and the color cell specified by the pixel value must be a read/write cell. If the pixel value is not a valid index, a -BadValue +BadValue error results. If the color cell is unallocated or is allocated read-only, a -BadAccess +BadAccess error results. If the colormap is an installed map for its screen, the changes are visible immediately. @@ -2678,7 +2678,7 @@ the changes are visible immediately. Note that XStoreColor has no return value; therefore, an -XcmsSuccess +XcmsSuccess return value from this function indicates that the conversion to RGB succeeded and the call to XStoreColor @@ -2693,10 +2693,10 @@ to the color specified. XcmsStoreColor can generate -BadAccess, -BadColor, +BadAccess, +BadColor, and -BadValue +BadValue errors. @@ -2747,7 +2747,7 @@ Specifies the colormap. Specifies the color specification array of -XcmsColor +XcmsColor structures, each specifying a color cell and the color to store in that cell. Values specified in the array remain unchanged upon return. @@ -2761,7 +2761,7 @@ Values specified in the array remain unchanged upon return. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -2775,9 +2775,9 @@ structures in the color-specification array. Returns an array of Boolean values indicating compression status. If a non-NULL pointer is supplied, each element of the array is set to -True +True if the corresponding color was compressed and -False +False otherwise. Pass NULL if the compression status is not useful. @@ -2791,26 +2791,26 @@ Pass NULL if the compression status is not useful. The XcmsStoreColors function converts the colors specified in the array of -XcmsColor +XcmsColor structures into RGB values and then uses these RGB specifications in -XColor +XColor structures, whose three flags -(DoRed, -DoGreen, +(DoRed, +DoGreen, and -DoBlue) +DoBlue) are set, in a call to XStoreColors to change the color cells specified by the pixel member of the corresponding -XcmsColor +XcmsColor structure. Each pixel value must be a valid index for the specified colormap, and the color cell specified by each pixel value must be a read/write cell. If a pixel value is not a valid index, a -BadValue +BadValue error results. If a color cell is unallocated or is allocated read-only, a -BadAccess +BadAccess error results. If more than one pixel is in error, the one that gets reported is arbitrary. @@ -2822,7 +2822,7 @@ the changes are visible immediately. Note that XStoreColors has no return value; therefore, an -XcmsSuccess +XcmsSuccess return value from this function indicates that conversions to RGB succeeded and the call to XStoreColors @@ -2837,10 +2837,10 @@ to the colors specified. XcmsStoreColors can generate -BadAccess, -BadColor, +BadAccess, +BadColor, and -BadValue +BadValue errors. @@ -2929,29 +2929,29 @@ The flags argument determines which of the red, green, and blue components are set. You can set this member to the bitwise inclusive OR of the bits -DoRed, -DoGreen, +DoRed, +DoGreen, and -DoBlue. +DoBlue. If the color name is not in the Host Portable Character Encoding, the result is implementation-dependent. Use of uppercase or lowercase does not matter. If the specified pixel is not a valid index into the colormap, a -BadValue +BadValue error results. If the specified pixel either is unallocated or is allocated read-only, a -BadAccess +BadAccess error results. XStoreNamedColor can generate -BadAccess, -BadColor, -BadName, +BadAccess, +BadColor, +BadName, and -BadValue +BadValue errors. @@ -2961,15 +2961,15 @@ The and XQueryColors functions take pixel values in the pixel member of -XColor +XColor structures and store in the structures the RGB values for those pixels from the specified colormap. The values returned for an unallocated entry are undefined. These functions also set the flags member in the -XColor +XColor structure to all three colors. If a pixel is not a valid index into the specified colormap, a -BadValue +BadValue error results. If more than one pixel is in error, the one that gets reported is arbitrary. @@ -3031,21 +3031,21 @@ Specifies and returns the RGB values for the pixel specified The XQueryColor function returns the current RGB value for the pixel in the -XColor +XColor structure and sets the -DoRed, -DoGreen, +DoRed, +DoGreen, and -DoBlue +DoBlue flags. XQueryColor can generate -BadColor +BadColor and -BadValue +BadValue errors. @@ -3107,7 +3107,7 @@ specified in the structure. Specifies the number of -XColor +XColor structures in the color definition array. @@ -3120,12 +3120,12 @@ structures in the color definition array. The XQueryColors function returns the RGB value for each pixel in each -XColor +XColor structure and sets the -DoRed, -DoGreen, +DoRed, +DoGreen, and -DoBlue +DoBlue flags in each structure. @@ -3133,9 +3133,9 @@ flags in each structure. XQueryColors can generate -BadColor +BadColor and -BadValue +BadValue errors. @@ -3186,7 +3186,7 @@ Specifies the colormap. Specifies the pixel member that indicates the color cell to query. The color specification stored for the color cell is returned in this -XcmsColor +XcmsColor structure. @@ -3210,21 +3210,21 @@ The XcmsQueryColor function obtains the RGB value for the pixel value in the pixel member of the specified -XcmsColor +XcmsColor structure and then converts the value to the target format as specified by the result_format argument. If the pixel is not a valid index in the specified colormap, a -BadValue +BadValue error results. XcmsQueryColor can generate -BadColor +BadColor and -BadValue +BadValue errors. @@ -3275,7 +3275,7 @@ Specifies the colormap. Specifies an array of -XcmsColor +XcmsColor structures, each pixel member indicating the color cell to query. The color specifications for the color cells are returned in these structures. @@ -3288,7 +3288,7 @@ The color specifications for the color cells are returned in these structures. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -3312,12 +3312,12 @@ The XcmsQueryColors function obtains the RGB values for pixel values in the pixel members of -XcmsColor +XcmsColor structures and then converts the values to the target format as specified by the result_format argument. If a pixel is not a valid index into the specified colormap, a -BadValue +BadValue error results. If more than one pixel is in error, the one that gets reported is arbitrary. @@ -3326,9 +3326,9 @@ the one that gets reported is arbitrary. XcmsQueryColors can generate -BadColor +BadColor and -BadValue +BadValue errors. @@ -3581,7 +3581,7 @@ specific. Applications should not directly modify any part of the -XcmsCCC. +XcmsCCC. The following lists the C language macros, their corresponding function equivalents for other language bindings, and what data they both can return. @@ -3601,7 +3601,7 @@ can return. - Display *XcmsDisplayOfCCC + Display *XcmsDisplayOfCCC XcmsCCC ccc @@ -3638,7 +3638,7 @@ Both return the display associated with the specified CCC. - Visual*XcmsVisualOfCCC + Visual *XcmsVisualOfCCC XcmsCCC ccc @@ -3748,7 +3748,7 @@ Both return the white point of the screen associated with the specified CCC. - XcmsColor *XcmsClientWhitePointOfCCC + XcmsColor *XcmsClientWhitePointOfCCC XcmsCCC ccc @@ -3788,7 +3788,7 @@ To set the Client White Point in the CCC, use - Status XcmsSetWhitePoint + Status XcmsSetWhitePoint XcmsCCC ccc XcmsColor *color @@ -3827,14 +3827,14 @@ function changes the Client White Point in the specified CCC. Note that the pixel member is ignored and that the color specification is left unchanged upon return. The format for the new white point must be -XcmsCIEXYZFormat, -XcmsCIEuvYFormat, -XcmsCIExyYFormat, +XcmsCIEXYZFormat, +XcmsCIEuvYFormat, +XcmsCIExyYFormat, or -XcmsUndefinedFormat. +XcmsUndefinedFormat. If the color argument is NULL, this function sets the format component of the Client White Point specification to -XcmsUndefinedFormat, +XcmsUndefinedFormat, indicating that the Client White Point is assumed to be the same as the Screen White Point. @@ -3889,7 +3889,7 @@ If NULL is specified and a function using this CCC must convert a color specification to a device-dependent format and encounters a color that lies outside the screen's color gamut, that function will return -XcmsFailure. +XcmsFailure. @@ -4074,7 +4074,7 @@ If NULL is specified and a function using this CCC must convert a color specification to a device-dependent format and encounters a color that lies outside the screen's color gamut, that function will return -XcmsFailure. +XcmsFailure. @@ -4220,7 +4220,7 @@ Pixel members are ignored and remain unchanged upon return. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -4244,9 +4244,9 @@ Specifies the target color specification format. Returns an array of Boolean values indicating compression status. If a non-NULL pointer is supplied, each element of the array is set to -True +True if the corresponding color was compressed and -False +False otherwise. Pass NULL if the compression status is not useful. @@ -4260,11 +4260,11 @@ Pass NULL if the compression status is not useful. The XcmsConvertColors function converts the color specifications in the specified array of -XcmsColor +XcmsColor structures from their current format to a single target format, using the specified CCC. When the return value is -XcmsFailure, +XcmsFailure, the contents of the color specification array are left unchanged. @@ -4274,8 +4274,8 @@ The array may contain a mixture of color specification formats When the array contains both device-independent and device-dependent color specifications and the target_format argument specifies a device-dependent format (for example, -XcmsRGBiFormat, -XcmsRGBFormat), +XcmsRGBiFormat, +XcmsRGBFormat), all specifications are converted to CIE XYZ format and then to the target device-dependent format. @@ -4294,9 +4294,9 @@ adjustment callbacks. The gamut compression procedure specified in the CCC is called when an attempt to convert a color specification from -XcmsCIEXYZ +XcmsCIEXYZ to a device-dependent format (typically -XcmsRGBi) +XcmsRGBi) results in a color that lies outside the screen's color gamut. If the gamut compression procedure requires client data, this data is passed via the gamut compression client data in the CCC. @@ -4361,7 +4361,7 @@ Pixel members should be ignored and must remain unchanged upon return. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -4373,7 +4373,7 @@ structures in the color-specification array. Specifies the index into the array of -XcmsColor +XcmsColor structures for the encountered color specification that lies outside the screen's color gamut. Valid values are 0 (for the first element) to ncolors - 1. @@ -4389,7 +4389,7 @@ Valid values are 0 (for the first element) to ncolors - 1. Returns an array of Boolean values for indicating compression status. If a non-NULL pointer is supplied and a color at a given index is compressed, then -True +True should be stored at the corresponding index in this array; otherwise, the array should not be modified. @@ -4416,7 +4416,7 @@ When called, elements 0 to index - 1 in the color specification array can be assumed to fall within the screen's color gamut. In addition, these color specifications are already in some device-dependent format (typically -XcmsRGBi). +XcmsRGBi). If any modifications are made to these color specifications, they must be in their initial device-dependent format upon return. @@ -4427,9 +4427,9 @@ When called, the element in the color specification array specified by the index argument contains the color specification outside the screen's color gamut encountered by the calling routine. In addition, this color specification can be assumed to be in -XcmsCIEXYZ. +XcmsCIEXYZ. Upon return, this color specification must be in -XcmsCIEXYZ. +XcmsCIEXYZ. @@ -4438,10 +4438,10 @@ When called, elements from index to ncolors - 1 in the color specification array may or may not fall within the screen's color gamut. In addition, these color specifications can be assumed to be in -XcmsCIEXYZ. +XcmsCIEXYZ. If any modifications are made to these color specifications, they must be in -XcmsCIEXYZ +XcmsCIEXYZ upon return. @@ -4720,7 +4720,7 @@ Pixel members should be ignored and must remain unchanged upon return. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -4734,7 +4734,7 @@ structures in the color-specification array. Returns an array of Boolean values for indicating compression status. If a non-NULL pointer is supplied and a color at a given index is compressed, then -True +True should be stored at the corresponding index in this array; otherwise, the array should not be modified. @@ -4768,7 +4768,7 @@ This uses the CIE L*a*b* color space for adjusting the chroma of colors to compensate for the chromatic differences between the source and destination white points. This procedure simply converts the color specifications to -XcmsCIELab +XcmsCIELab using the source white point and then converts to the target specification format using the destination's white point. No client data is necessary. @@ -4785,7 +4785,7 @@ This uses the CIE L*u*v* color space for adjusting the chroma of colors to compensate for the chromatic differences between the source and destination white points. This procedure simply converts the color specifications to -XcmsCIELuv +XcmsCIELuv using the source white point and then converts to the target specification format using the destination's white point. No client data is necessary. @@ -4802,7 +4802,7 @@ This uses the TekHVC color space for adjusting the chromatic character of colors to compensate for the chromatic differences between the source and destination white points. This procedure simply converts the color specifications to -XcmsTekHVC +XcmsTekHVC using the source white point and then converts to the target specification format using the destination's white point. An advantage of this procedure over those previously described @@ -4845,26 +4845,26 @@ procedure twice: Once to convert to -XcmsRGB +XcmsRGB A second time to convert from -XcmsRGB +XcmsRGB For example, assume the specification is in -XcmsCIEuvY +XcmsCIEuvY and the adjustment procedure is XcmsCIELuvWhiteShiftColors. During conversion to -XcmsRGB, +XcmsRGB, the call to -XcmsAllocColor +XcmsAllocColor results in the following series of color specification conversions: @@ -4872,44 +4872,44 @@ results in the following series of color specification conversions: From -XcmsCIEuvY +XcmsCIEuvY to -XcmsCIELuv +XcmsCIELuv using the Client White Point From -XcmsCIELuv +XcmsCIELuv to -XcmsCIEuvY +XcmsCIEuvY using the Screen White Point From -XcmsCIEuvY +XcmsCIEuvY to -XcmsCIEXYZ +XcmsCIEXYZ (CIE u'v'Y and XYZ are white-point-independent color spaces) From -XcmsCIEXYZ +XcmsCIEXYZ to -XcmsRGBi +XcmsRGBi From -XcmsRGBi +XcmsRGBi to -XcmsRGB +XcmsRGB @@ -4921,7 +4921,7 @@ and the RGB specification returned by XAllocColor is converted back to -XcmsCIEuvY +XcmsCIEuvY by reversing the color conversion sequence. @@ -5520,7 +5520,7 @@ finds the point in CIE L*a*b* color space of maximum lightness (L*) displayable by the screen. It returns this point in CIE L*a*b* coordinates. An -XcmsFailure +XcmsFailure return value usually indicates that the given chroma is beyond maximum for the given hue angle. @@ -5682,7 +5682,7 @@ function, given a hue angle and chroma, finds the point of minimum lightness (L*) displayable by the screen. It returns this point in CIE L*a*b* coordinates. An -XcmsFailure +XcmsFailure return value usually indicates that the given chroma is beyond maximum for the given hue angle. @@ -5877,7 +5877,7 @@ finds the point in CIE L*u*v* color space of maximum lightness (L*) displayable by the screen. It returns this point in CIE L*u*v* coordinates. An -XcmsFailure +XcmsFailure return value usually indicates that the given chroma is beyond maximum for the given hue angle. @@ -5969,7 +5969,7 @@ for a given Psychometric Hue Angle and Psychometric Chroma, use - + Status XcmsCIELuvQueryMinL XcmsCCC ccc XcmsFloat hue_angle XcmsFloat chroma @@ -6039,7 +6039,7 @@ function, given a hue angle and chroma, finds the point of minimum lightness (L*) displayable by the screen. It returns this point in CIE L*u*v* coordinates. An -XcmsFailure +XcmsFailure return value usually indicates that the given chroma is beyond maximum for the given hue angle. @@ -6512,13 +6512,13 @@ function. The CIE XYZ color space serves as the hub for all conversions between device-independent and device-dependent color spaces. Therefore, the knowledge to convert an -XcmsColor +XcmsColor structure to and from CIE XYZ format is associated with each color space. For example, conversion from CIE L*u*v* to RGB requires the knowledge to convert from CIE L*u*v* to CIE XYZ and from CIE XYZ to RGB. This knowledge is stored as an array of functions that, when applied in series, will convert the -XcmsColor +XcmsColor structure to or from CIE XYZ format. This color specification conversion mechanism facilitates the addition of color spaces. @@ -6571,7 +6571,7 @@ Specifies the device-independent color space to add. The XcmsAddColorSpace function makes a device-independent color space (actually an -XcmsColorSpace +XcmsColorSpace structure) accessible by the color management system. Because format values for unregistered color spaces are assigned at run time, they should be treated as private to the client. @@ -6587,16 +6587,16 @@ and If the -XcmsColorSpace +XcmsColorSpace structure is already accessible in the color management system, XcmsAddColorSpace returns -XcmsSuccess. +XcmsSuccess. Note that added -XcmsColorSpaces +XcmsColorSpaces must be retained for reference by Xlib. @@ -6615,7 +6615,7 @@ associated with a specified color string prefix, use - XcmsColorFormatXcmsFormatOfPrefix + XcmsColorFormat XcmsFormatOfPrefix char *prefix @@ -6644,7 +6644,7 @@ The prefix is case-insensitive. If the color space is not accessible in the color management system, XcmsFormatOfPrefix returns -XcmsUndefinedFormat. +XcmsUndefinedFormat. @@ -6657,7 +6657,7 @@ specified by a color format, use - char *XcmsPrefixOfFormat + char *XcmsPrefixOfFormat XcmsColorFormat format @@ -6695,7 +6695,7 @@ The returned string must be treated as read-only. Color space specific information necessary for color space conversion and color string parsing is stored in an -XcmsColorSpace +XcmsColorSpace structure. Therefore, a new structure containing this information is required for each additional color space. @@ -6708,7 +6708,7 @@ function. If a new -XcmsColorSpace +XcmsColorSpace structure specifies a color space not registered with the X Consortium, they should be treated as private to the client because format values for unregistered color spaces are assigned at run time. @@ -6752,7 +6752,7 @@ The format member specifies the color specification format. Formats for unregistered color spaces are assigned at run time. The parseString member contains a pointer to the function that can parse a color string into an -XcmsColor +XcmsColor structure. This function returns an integer (int): nonzero if it succeeded and zero otherwise. @@ -6760,7 +6760,7 @@ The to_CIEXYZ and from_CIEXYZ members contain pointers, each to a NULL terminated list of function pointers. When the list of functions is executed in series, it will convert the color specified in an -XcmsColor +XcmsColor structure from/to the current color space format to/from the CIE XYZ format. Each function returns an integer (int): nonzero if it succeeded and zero otherwise. @@ -6793,7 +6793,7 @@ thus bypassing CIE XYZ if possible (for example, TekHVC to The callback in the -XcmsColorSpace +XcmsColorSpace structure for parsing a color string for the particular color space must adhere to the following software interface specification: @@ -6843,7 +6843,7 @@ Returns the color specification in the color space's format. Callback functions in the -XcmsColorSpace +XcmsColorSpace structure for converting a color specification between device-independent spaces must adhere to the following software interface specification: @@ -6851,7 +6851,7 @@ following software interface specification: - Status ConversionProc + Status ConversionProc XcmsCCC ccc XcmsColor *white_point XcmsColor *colors_in_out @@ -6900,7 +6900,7 @@ Pixel members should be ignored and must remain unchanged upon return. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -6912,7 +6912,7 @@ structures in the color-specification array. Callback functions in the -XcmsColorSpace +XcmsColorSpace structure for converting a color specification to or from a device-dependent space must adhere to the following software interface specification: @@ -6920,7 +6920,7 @@ following software interface specification: - Status ConversionProc + Status ConversionProc XcmsCCC ccc XcmsColor *colors_in_out unsignedint ncolors @@ -6957,7 +6957,7 @@ Pixel members should be ignored and must remain unchanged upon return. Specifies the number of -XcmsColor +XcmsColor structures in the color-specification array. @@ -6971,7 +6971,7 @@ structures in the color-specification array. Returns an array of Boolean values for indicating compression status. If a non-NULL pointer is supplied and a color at a given index is compressed, then -True +True should be stored at the corresponding index in this array; otherwise, the array should not be modified. @@ -7001,73 +7001,73 @@ The conversion functions provided by Xlib are: XcmsCIELabToCIEXYZ - XcmsCIELabFormat - XcmsCIEXYZFormat + XcmsCIELabFormat + XcmsCIEXYZFormat XcmsCIELuvToCIEuvY - XcmsCIELuvFormat - XcmsCIEuvYFormat + XcmsCIELuvFormat + XcmsCIEuvYFormat XcmsCIEXYZToCIELab - XcmsCIEXYZFormat - XcmsCIELabFormat + XcmsCIEXYZFormat + XcmsCIELabFormat XcmsCIEXYZToCIEuvY - XcmsCIEXYZFormat - XcmsCIEuvYFormat + XcmsCIEXYZFormat + XcmsCIEuvYFormat XcmsCIEXYZToCIExyY - XcmsCIEXYZFormat - XcmsCIExyYFormat + XcmsCIEXYZFormat + XcmsCIExyYFormat XcmsCIEXYZToRGBi - XcmsCIEXYZFormat - XcmsRGBiFormat + XcmsCIEXYZFormat + XcmsRGBiFormat XcmsCIEuvYToCIELuv - XcmsCIEuvYFormat - XcmsCIELabFormat + XcmsCIEuvYFormat + XcmsCIELabFormat XcmsCIEuvYToCIEXYZ - XcmsCIEuvYFormat - XcmsCIEXYZFormat + XcmsCIEuvYFormat + XcmsCIEXYZFormat XcmsCIEuvYToTekHVC - XcmsCIEuvYFormat - XcmsTekHVCFormat + XcmsCIEuvYFormat + XcmsTekHVCFormat XcmsCIExyYToCIEXYZ - XcmsCIExyYFormat - XcmsCIEXYZFormat + XcmsCIExyYFormat + XcmsCIEXYZFormat XcmsRGBToRGBi - XcmsRGBFormat - XcmsRGBiFormat + XcmsRGBFormat + XcmsRGBiFormat XcmsRGBiToCIEXYZ - XcmsRGBiFormat - XcmsCIEXYZFormat + XcmsRGBiFormat + XcmsCIEXYZFormat XcmsRGBiToRGB - XcmsRGBiFormat - XcmsRGBFormat + XcmsRGBiFormat + XcmsRGBFormat XcmsTekHVCToCIEuvY - XcmsTekHVCFormat - XcmsCIEuvYFormat + XcmsTekHVCFormat + XcmsCIEuvYFormat @@ -7148,12 +7148,12 @@ The XcmsAddFunctionSet function adds a function set to the color management system. If the function set uses device-dependent -XcmsColorSpace +XcmsColorSpace structures not accessible in the color management system, XcmsAddFunctionSet adds them. If an added -XcmsColorSpace +XcmsColorSpace structure is for a device-dependent color space not registered with the X Consortium, they should be treated as private to the client @@ -7172,9 +7172,9 @@ and Additional function sets should be added before any calls to other Xlib routines are made. If not, the -XcmsPerScrnInfo +XcmsPerScrnInfo member of a previously created -XcmsCCC +XcmsCCC does not have the opportunity to initialize with the added function set. @@ -7190,11 +7190,11 @@ The creation of additional function sets should be required only when an output device does not conform to existing function sets or when additional device-dependent color spaces are necessary. A function set consists primarily of a collection of device-dependent -XcmsColorSpace +XcmsColorSpace structures and a means to read and store a screen's color characterization data. This data is stored in an -XcmsFunctionSet +XcmsFunctionSet structure. A handle to this structure (that is, by means of global variable) is usually made accessible to the client program for use with @@ -7203,18 +7203,18 @@ is usually made accessible to the client program for use with If a function set uses new device-dependent -XcmsColorSpace +XcmsColorSpace structures, they will be transparently processed into the color management system. Function sets can share an -XcmsColorSpace +XcmsColorSpace structure for a device-dependent color space. In addition, multiple -XcmsColorSpace +XcmsColorSpace structures are allowed for a device-dependent color space; however, a function set can reference only one of them. These -XcmsColorSpace +XcmsColorSpace structures will differ in the functions to convert to and from CIE XYZ, thus tailored for the specific function set. @@ -7236,12 +7236,12 @@ typedef struct _XcmsFunctionSet { The DDColorSpaces member is a pointer to a NULL terminated list of pointers to -XcmsColorSpace +XcmsColorSpace structures for the device-dependent color spaces that are supported by the function set. The screenInitProc member is set to the callback procedure (see the following interface specification) that initializes the -XcmsPerScrnInfo +XcmsPerScrnInfo structure for a particular screen. @@ -7289,7 +7289,7 @@ Specifies the appropriate screen number on the host server. Specifies the -XcmsPerScrnInfo +XcmsPerScrnInfo structure, which contains the per screen information. @@ -7300,18 +7300,18 @@ structure, which contains the per screen information. The screen initialization callback in the -XcmsFunctionSet +XcmsFunctionSet structure fetches the color characterization data (device profile) for the specified screen, typically off properties on the screen's root window. It then initializes the specified -XcmsPerScrnInfo +XcmsPerScrnInfo structure. Device profile Color Characterization Data If successful, the procedure fills in the -XcmsPerScrnInfo +XcmsPerScrnInfo structure as follows: @@ -7330,30 +7330,30 @@ It next sets the screenWhitePoint member. It next sets the functionSet member to the address of the -XcmsFunctionSet +XcmsFunctionSet structure. It then sets the state member to -XcmsInitSuccess +XcmsInitSuccess and finally returns -XcmsSuccess. +XcmsSuccess. If unsuccessful, the procedure sets the state member to -XcmsInitFailure +XcmsInitFailure and returns -XcmsFailure. +XcmsFailure. The -XcmsPerScrnInfo +XcmsPerScrnInfo structure contains: @@ -7383,19 +7383,19 @@ The state member is set to one of the following: -XcmsInitNone +XcmsInitNone indicates initialization has not been previously attempted. -XcmsInitFailure +XcmsInitFailure indicates initialization has been previously attempted but failed. -XcmsInitSuccess +XcmsInitSuccess indicates initialization has been previously attempted and succeeded. @@ -7429,7 +7429,7 @@ Specifies the data to be freed. This function is called to free the screenData stored in an -XcmsPerScrnInfo +XcmsPerScrnInfo structure. diff --git a/libX11/specs/libX11/CH07.xml b/libX11/specs/libX11/CH07.xml index 6e8894080..ae977b365 100644 --- a/libX11/specs/libX11/CH07.xml +++ b/libX11/specs/libX11/CH07.xml @@ -58,11 +58,11 @@ sharing GCs between applications is highly discouraged. To set an attribute of a GC, set the appropriate member of the -XGCValues +XGCValues structure and OR in the corresponding value bitmask in your subsequent calls to XCreateGC. The symbols for the value mask bits and the -XGCValues +XGCValues structure are: @@ -147,7 +147,7 @@ The default GC values are: function - GXcopy + GXcopy plane_mask @@ -167,27 +167,27 @@ The default GC values are: line_style - LineSolid + LineSolid cap_style - CapButt + CapButt join_style - JoinMiter + JoinMiter fill_style - FillSolid + FillSolid fill_rule - EvenOddRule + EvenOddRule arc_mode - ArcPieSlice + ArcPieSlice tile @@ -219,11 +219,11 @@ The default GC values are: subwindow_mode - ClipByChildren + ClipByChildren graphics_exposures - True + True clip_x_origin @@ -235,7 +235,7 @@ The default GC values are: clip_mask - None + None dash_offset @@ -264,12 +264,12 @@ The function attributes of a GC are used when you update a section of a drawable (the destination) with bits from somewhere else (the source). The function in a GC defines how the new destination bits are to be computed from the source bits and the old destination bits. -GXcopy +GXcopy is typically the most useful because it will work on a color display, but special applications may use other functions, particularly in concert with particular planes of a color display. The 16 GC functions, defined in - +<X11/X.h>, are: @@ -291,82 +291,82 @@ are: - GXclear + GXclear 0x0 0 - GXand + GXand 0x1 src AND dst - GXandReverse + GXandReverse 0x2 src AND NOT dst - GXcopy + GXcopy 0x3 src - GXandInverted + GXandInverted 0x4 (NOT src) AND dst - GXnoop + GXnoop 0x5 dst - GXxor + GXxor 0x6 src XOR dst - GXor + GXor 0x7 src OR dst - GXnor + GXnor 0x8 (NOT src) AND (NOT dst) - GXequiv + GXequiv 0x9 (NOT src) XOR dst - GXinvert + GXinvert 0xa NOT dst - GXorReverse + GXorReverse 0xb src OR (NOT dst) - GXcopyInverted + GXcopyInverted 0xc NOT src - GXorInverted + GXorInverted 0xd (NOT src) OR dst - GXnand + GXnand 0xe (NOT src) OR (NOT dst) - GXset + GXset 0xf 1 @@ -393,7 +393,7 @@ the result is computed bitwise on corresponding bits of the pixels. That is, a Boolean operation is performed in each bit plane. The plane_mask restricts the operation to a subset of planes. A macro constant -AllPlanes +AllPlanes can be used to refer to all planes of the screen simultaneously. The result is computed by the following: @@ -496,34 +496,34 @@ The line-style defines which sections of a line are drawn: - LineSolid + LineSolid The full path of the line is drawn. - LineDoubleDash + LineDoubleDash The full path of the line is drawn, but the even dashes are filled differently from the odd dashes (see fill-style) with -CapButt +CapButt style used where even and odd dashes meet. - LineOnOffDash + LineOnOffDash Only the even dashes are drawn, and cap-style applies to all internal ends of the individual dashes, except -CapNotLast +CapNotLast is treated as -CapButt. +CapButt. @@ -534,18 +534,18 @@ The cap-style defines how the endpoints of a path are drawn: - CapNotLast + CapNotLast This is equivalent to -CapButt +CapButt except that for a line-width of zero the final endpoint is not drawn. - CapButt + CapButt The line is square at the endpoint (perpendicular to the slope of the line) @@ -554,25 +554,25 @@ with no projection beyond. - CapRound + CapRound The line has a circular arc with the diameter equal to the line-width, centered on the endpoint. (This is equivalent to -CapButt +CapButt for line-width of zero). - CapProjecting + CapProjecting The line is square at the end, but the path continues beyond the endpoint for a distance equal to half the line-width. (This is equivalent to -CapButt +CapButt for line-width of zero). @@ -585,19 +585,19 @@ The join-style defines how corners are drawn for wide lines: - JoinMiter + JoinMiter The outer edges of two lines extend to meet at an angle. However, if the angle is less than 11 degrees, then a -JoinBevel +JoinBevel join-style is used instead. - JoinRound + JoinRound The corner is a circular arc with the diameter equal to the line-width, @@ -606,11 +606,11 @@ centered on the joinpoint. - JoinBevel + JoinBevel The corner has -CapButt +CapButt endpoint styles with the triangular notch filled. @@ -632,42 +632,42 @@ the semantics depends on the line-width and the cap-style: - CapNotLast + CapNotLast thin The results are device dependent, but the desired effect is that nothing is drawn. - CapButt + CapButt thin The results are device dependent, but the desired effect is that a single pixel is drawn. - CapRound + CapRound thin The results are the same as for - CapButt /thin. + CapButt /thin. - CapProjecting + CapProjecting thin The results are the same as for - CapButt /thin. + CapButt /thin. - CapButt + CapButt wide Nothing is drawn. - CapRound + CapRound wide The closed path is a circle, centered at the endpoint, and with the diameter equal to the line-width. - CapProjecting + CapProjecting wide The closed path is a square, aligned with the coordinate axes, centered at the endpoint, and with the sides equal to the line-width. @@ -698,16 +698,16 @@ origin of whatever destination drawable is specified in a graphics request. The tile pixmap must have the same root and depth as the GC, or a -BadMatch +BadMatch error results. The stipple pixmap must have depth one and must have the same root as the GC, or a -BadMatch +BadMatch error results. For stipple operations where the fill-style is -FillStippled +FillStippled but not -FillOpaqueStippled, +FillOpaqueStippled, the stipple pattern is tiled in a single plane and acts as an additional clip mask to be ANDed with the clip-mask. Although some sizes may be faster to use than others, @@ -727,16 +727,16 @@ and XFillArc); for line requests with line-style -LineSolid +LineSolid (for example, XDrawLine, XDrawSegments, XDrawRectangle, XDrawArc); and for the even dashes for line requests with line-style -LineOnOffDash +LineOnOffDash or -LineDoubleDash, +LineDoubleDash, the following apply: @@ -746,21 +746,21 @@ the following apply: - FillSolid + FillSolid Foreground - FillTiled + FillTiled Tile - FillOpaqueStippled + FillOpaqueStippled A tile with the same width and height as stipple, but with background everywhere stipple has a zero and with foreground everywhere stipple has a one - FillStippled + FillStippled Foreground masked by stipple @@ -770,7 +770,7 @@ the following apply: When drawing lines with line-style -LineDoubleDash, +LineDoubleDash, the odd dashes are controlled by the fill-style in the following manner: @@ -780,19 +780,19 @@ the odd dashes are controlled by the fill-style in the following manner: - FillSolid + FillSolid Background - FillTiled + FillTiled Same as for even dashes - FillOpaqueStippled + FillOpaqueStippled Same as for even dashes - FillStippled + FillStippled Background masked by stipple @@ -830,7 +830,7 @@ value of N is equivalent to specifying the two-element list [N, N] in XSetDashes. The value must be nonzero, or a -BadValue +BadValue error results. @@ -839,10 +839,10 @@ The clip-mask restricts writes to the destination drawable. If the clip-mask is set to a pixmap, it must have depth one and have the same root as the GC, or a -BadMatch +BadMatch error results. If clip-mask is set to -None, +None, the pixels are always drawn regardless of the clip origin. The clip-mask also can be set by calling the XSetClipRectangles @@ -860,22 +860,22 @@ destination drawable is specified in a graphics request. You can set the subwindow-mode to -ClipByChildren +ClipByChildren or -IncludeInferiors. +IncludeInferiors. For -ClipByChildren, +ClipByChildren, both source and destination windows are additionally clipped by all viewable -InputOutput +InputOutput children. For -IncludeInferiors, +IncludeInferiors, neither source nor destination window is clipped by inferiors. This will result in including subwindow contents in the source and drawing through subwindow boundaries of the destination. The use of -IncludeInferiors +IncludeInferiors on a window of one depth with mapped inferiors of differing depth is not illegal, but the semantics are undefined by the core protocol. @@ -884,18 +884,18 @@ undefined by the core protocol. The fill-rule defines what pixels are inside (drawn) for paths given in -XFillPolygon +XFillPolygon requests and can be set to -EvenOddRule +EvenOddRule or -WindingRule. +WindingRule. For -EvenOddRule, +EvenOddRule, a point is inside if an infinite ray with the point as origin crosses the path an odd number of times. For -WindingRule, +WindingRule, a point is inside if an infinite ray with the point as origin crosses an unequal number of clockwise and counterclockwise directed path segments. @@ -910,9 +910,9 @@ coincident with a segment. For both -EvenOddRule +EvenOddRule and -WindingRule, +WindingRule, a point is infinitely small, and the path is an infinitely thin line. A pixel is inside if the center point of the pixel is inside @@ -929,23 +929,23 @@ and are inside if and only if the polygon interior is immediately below The arc-mode controls filling in the XFillArcs function and can be set to -ArcPieSlice +ArcPieSlice or -ArcChord. +ArcChord. For -ArcPieSlice, +ArcPieSlice, the arcs are pie-slice filled. For -ArcChord, +ArcChord, the arcs are chord filled. The graphics-exposure flag controls -GraphicsExpose +GraphicsExpose event generation for -XCopyArea +XCopyArea and XCopyPlane requests (and any similar requests defined by extensions). @@ -961,7 +961,7 @@ depth of drawable, use - GC XCreateGC + GC XCreateGC Display *display Drawable d unsignedlong valuemask @@ -1024,20 +1024,20 @@ function creates a graphics context and returns a GC. The GC can be used with any destination drawable having the same root and depth as the specified drawable. Use with other drawables results in a -BadMatch +BadMatch error. XCreateGC can generate -BadAlloc, -BadDrawable, -BadFont, -BadMatch, -BadPixmap, +BadAlloc, +BadDrawable, +BadFont, +BadMatch, +BadPixmap, and -BadValue +BadValue errors. @@ -1049,7 +1049,7 @@ To copy components from a source GC to a destination GC, use - XCopyGC + XCopyGC Display *display GCsrc, dest unsignedlong valuemask @@ -1111,7 +1111,7 @@ function copies the specified components from the source GC to the destination GC. The source and destination GCs must have the same root and depth, or a -BadMatch +BadMatch error results. The valuemask specifies which component to copy, as for XCreateGC. @@ -1120,10 +1120,10 @@ The valuemask specifies which component to copy, as for XCopyGC can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadMatch +BadMatch errors. @@ -1135,7 +1135,7 @@ To change the components in a given GC, use - XChangeGC + XChangeGC Display *display GC gc unsignedlong valuemask @@ -1213,13 +1213,13 @@ If an error is generated, a subset of the components may have been altered. XChangeGC can generate -BadAlloc, -BadFont, -BadGC, -BadMatch, -BadPixmap, +BadAlloc, +BadFont, +BadGC, +BadMatch, +BadPixmap, and -BadValue +BadValue errors. @@ -1231,7 +1231,7 @@ To obtain components of a given GC, use - Status XGetGCValues + Status XGetGCValues Display *display GC gc unsignedlong valuemask @@ -1280,7 +1280,7 @@ GC component mask bits. Returns the GC values in the specified -XGCValues +XGCValues structure. @@ -1294,44 +1294,44 @@ The XGetGCValues function returns the components specified by valuemask for the specified GC. If the valuemask contains a valid set of GC mask bits -(GCFunction, -GCPlaneMask, -GCForeground, -GCBackground, -GCLineWidth, -GCLineStyle, -GCCapStyle, -GCJoinStyle, -GCFillStyle, -GCFillRule, -GCTile, -GCStipple, -GCTileStipXOrigin, -GCTileStipYOrigin, -GCFont, -GCSubwindowMode, -GCGraphicsExposures, -GCClipXOrigin, -GCCLipYOrigin, -GCDashOffset, +(GCFunction, +GCPlaneMask, +GCForeground, +GCBackground, +GCLineWidth, +GCLineStyle, +GCCapStyle, +GCJoinStyle, +GCFillStyle, +GCFillRule, +GCTile, +GCStipple, +GCTileStipXOrigin, +GCTileStipYOrigin, +GCFont, +GCSubwindowMode, +GCGraphicsExposures, +GCClipXOrigin, +GCClipYOrigin, +GCDashOffset, or -GCArcMode) +GCArcMode) and no error occurs, XGetGCValues sets the requested components in values_return and returns a nonzero status. Otherwise, it returns a zero status. Note that the clip-mask and dash-list (represented by the -GCClipMask +GCClipMask and -GCDashList +GCDashList bits, respectively, in the valuemask) cannot be requested. Also note that an invalid resource ID (with one or more of the three most significant bits set to 1) will be returned for -GCFont, -GCTile, +GCFont, +GCTile, and -GCStipple +GCStipple if the component has never been explicitly set by the client. @@ -1343,7 +1343,7 @@ To free a given GC, use - XFreeGC + XFreeGC Display *display GC gc @@ -1383,21 +1383,21 @@ function destroys the specified GC as well as all the associated storage. XFreeGC can generate a -BadGC +BadGC error. To obtain the -GContext +GContext resource ID for a given GC, use XGContextFromGC. XGContextFromGC - GContext XGContextFromGC + GContext XGContextFromGC GC gc @@ -1433,7 +1433,7 @@ To force sending GC component changes, use - void XFlushGC + void XFlushGC Display *display GC gc @@ -1527,7 +1527,7 @@ for a given GC, use - XSetState + XSetState Display *display GC gc unsignedlongforeground, background @@ -1605,10 +1605,10 @@ Specifies the plane mask. XSetState can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -1620,7 +1620,7 @@ To set the foreground of a given GC, use - XSetForeground + XSetForeground Display *display GC gc unsignedlong foreground @@ -1665,9 +1665,9 @@ Specifies the foreground you want to set for the specified GC. XSetForeground can generate -BadAlloc +BadAlloc and -BadGC +BadGC errors. @@ -1679,7 +1679,7 @@ To set the background of a given GC, use - XSetBackground + XSetBackground Display *display GC gc unsignedlong background @@ -1724,9 +1724,9 @@ Specifies the background you want to set for the specified GC. XSetBackground can generate -BadAlloc +BadAlloc and -BadGC +BadGC errors. @@ -1738,7 +1738,7 @@ To set the display function in a given GC, use - XSetFunction + XSetFunction Display *display GC gc int function @@ -1783,10 +1783,10 @@ Specifies the function you want to set for the specified GC. XSetFunction can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -1798,7 +1798,7 @@ To set the plane mask of a given GC, use - XSetPlaneMask + XSetPlaneMask Display *display GC gc unsignedlong plane_mask @@ -1844,9 +1844,9 @@ Specifies the plane mask. XSetPlaneMask can generate -BadAlloc +BadAlloc and -BadGC +BadGC errors. @@ -1863,7 +1863,7 @@ To set the line drawing components of a given GC, use - XSetLineAttributes + XSetLineAttributes Display *display GC gc unsignedint line_width @@ -1912,10 +1912,10 @@ Specifies the line-width you want to set for the specified GC. Specifies the line-style you want to set for the specified GC. You can pass -LineSolid, -LineOnOffDash, +LineSolid, +LineOnOffDash, or -LineDoubleDash. +LineDoubleDash. @@ -1927,11 +1927,11 @@ or Specifies the line-style and cap-style you want to set for the specified GC. You can pass -CapNotLast, -CapButt, -CapRound, +CapNotLast, +CapButt, +CapRound, or -CapProjecting. +CapProjecting. @@ -1943,10 +1943,10 @@ or Specifies the line join-style you want to set for the specified GC. You can pass -JoinMiter, -JoinRound, +JoinMiter, +JoinRound, or -JoinBevel. +JoinBevel. @@ -1957,10 +1957,10 @@ or XSetLineAttributes can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -1972,7 +1972,7 @@ To set the dash-offset and dash-list for dashed line styles of a given GC, use - XSetDashes + XSetDashes Display *display GC gc int dash_offset @@ -2045,7 +2045,7 @@ function sets the dash-offset and dash-list attributes for dashed line styles in the specified GC. There must be at least one element in the specified dash_list, or a -BadValue +BadValue error results. The initial and alternating elements (second, fourth, and so on) of the dash_list are the even dashes, and @@ -2053,7 +2053,7 @@ the others are the odd dashes. Each element specifies a dash length in pixels. All of the elements must be nonzero, or a -BadValue +BadValue error results. Specifying an odd-length list is equivalent to specifying the same list concatenated with itself to produce an even-length list. @@ -2081,10 +2081,10 @@ For all other lines, the major axis is the y axis. XSetDashes can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -2101,7 +2101,7 @@ To set the fill-style of a given GC, use - XSetFillStyle + XSetFillStyle Display *display GC gc int fill_style @@ -2137,11 +2137,11 @@ Specifies the GC. Specifies the fill-style you want to set for the specified GC. You can pass -FillSolid, -FillTiled, -FillStippled, +FillSolid, +FillTiled, +FillStippled, or -FillOpaqueStippled. +FillOpaqueStippled. @@ -2152,10 +2152,10 @@ or XSetFillStyle can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -2167,7 +2167,7 @@ To set the fill-rule of a given GC, use - XSetFillRule + XSetFillRule Display *display GC gc int fill_rule @@ -2203,9 +2203,9 @@ Specifies the GC. Specifies the fill-rule you want to set for the specified GC. You can pass -EvenOddRule +EvenOddRule or -WindingRule. +WindingRule. @@ -2216,10 +2216,10 @@ or XSetFillRule can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -2247,7 +2247,7 @@ To obtain the best size of a tile, stipple, or cursor, use - Status XQueryBestSize + Status XQueryBestSize Display *display int class Drawable which_screen @@ -2275,10 +2275,10 @@ Specifies the connection to the X server. Specifies the class that you are interested in. You can pass -TileShape, -CursorShape, +TileShape, +CursorShape, or -StippleShape. +StippleShape. @@ -2344,41 +2344,41 @@ The XQueryBestSize function returns the best or closest size to the specified size. For -CursorShape, +CursorShape, this is the largest size that can be fully displayed on the screen specified by which_screen. For -TileShape, +TileShape, this is the size that can be tiled fastest. For -StippleShape, +StippleShape, this is the size that can be stippled fastest. For -CursorShape, +CursorShape, the drawable indicates the desired screen. For -TileShape +TileShape and -StippleShape, +StippleShape, the drawable indicates the screen and possibly the window class and depth. An -InputOnly +InputOnly window cannot be used as the drawable for -TileShape +TileShape or -StippleShape, +StippleShape, or a -BadMatch +BadMatch error results. XQueryBestSize can generate -BadDrawable, -BadMatch, +BadDrawable, +BadMatch, and -BadValue +BadValue errors. @@ -2390,7 +2390,7 @@ To obtain the best fill tile shape, use - Status XQueryBestTile + Status XQueryBestTile Display *display Drawable which_screen unsignedintwidth, height @@ -2473,18 +2473,18 @@ function returns the best or closest size, that is, the size that can be tiled fastest on the screen specified by which_screen. The drawable indicates the screen and possibly the window class and depth. If an -InputOnly +InputOnly window is used as the drawable, a -BadMatch +BadMatch error results. XQueryBestTile can generate -BadDrawable +BadDrawable and -BadMatch +BadMatch errors. @@ -2496,7 +2496,7 @@ To obtain the best stipple shape, use - Status XQueryBestStipple + Status XQueryBestStipple Display *display Drawable which_screen unsignedintwidth, height @@ -2579,18 +2579,18 @@ function returns the best or closest size, that is, the size that can be stippled fastest on the screen specified by which_screen. The drawable indicates the screen and possibly the window class and depth. If an -InputOnly +InputOnly window is used as the drawable, a -BadMatch +BadMatch error results. XQueryBestStipple can generate -BadDrawable +BadDrawable and -BadMatch +BadMatch errors. @@ -2602,7 +2602,7 @@ To set the fill tile of a given GC, use - XSetTile + XSetTile Display *display GC gc Pixmap tile @@ -2647,18 +2647,18 @@ Specifies the fill tile you want to set for the specified GC. The tile and GC must have the same depth, or a -BadMatch +BadMatch error results. XSetTile can generate -BadAlloc, -BadGC, -BadMatch, +BadAlloc, +BadGC, +BadMatch, and -BadPixmap +BadPixmap errors. @@ -2670,7 +2670,7 @@ To set the stipple of a given GC, use - XSetStipple + XSetStipple Display *display GC gc Pixmap stipple @@ -2715,18 +2715,18 @@ Specifies the stipple you want to set for the specified GC. The stipple must have a depth of one, or a -BadMatch +BadMatch error results. XSetStipple can generate -BadAlloc, -BadGC, -BadMatch, +BadAlloc, +BadGC, +BadMatch, and -BadPixmap +BadPixmap errors. @@ -2738,7 +2738,7 @@ To set the tile or stipple origin of a given GC, use - XSetTSOrigin + XSetTSOrigin Display *display GC gc intts_x_origin, ts_y_origin @@ -2800,9 +2800,9 @@ drawable is specified in the graphics request. XSetTSOrigin can generate -BadAlloc +BadAlloc and -BadGC +BadGC errors. @@ -2819,7 +2819,7 @@ To set the current font of a given GC, use - XSetFont + XSetFont Display *display GC gc Font font @@ -2864,10 +2864,10 @@ Specifies the font. XSetFont can generate -BadAlloc, -BadFont, +BadAlloc, +BadFont, and -BadGC +BadGC errors. @@ -2890,7 +2890,7 @@ To set the clip-origin of a given GC, use - XSetClipOrigin + XSetClipOrigin Display *display GC gc intclip_x_origin, clip_y_origin @@ -2951,9 +2951,9 @@ destination drawable is specified in the graphics request. XSetClipOrigin can generate -BadAlloc +BadAlloc and -BadGC +BadGC errors. @@ -2965,7 +2965,7 @@ To set the clip-mask of a given GC to the specified pixmap, use - XSetClipMask + XSetClipMask Display *display GC gc Pixmap pixmap @@ -3000,7 +3000,7 @@ Specifies the GC. Specifies the pixmap or -None. +None. @@ -3010,18 +3010,18 @@ Specifies the pixmap or If the clip-mask is set to -None, +None, the pixels are always drawn (regardless of the clip-origin). XSetClipMask can generate -BadAlloc, -BadGC, -BadMatch, +BadAlloc, +BadGC, +BadMatch, and -BadPixmap +BadPixmap errors. @@ -3033,7 +3033,7 @@ To set the clip-mask of a given GC to the specified list of rectangles, use - XSetClipRectangles + XSetClipRectangles Display *display GC gc intclip_x_origin, clip_y_origin @@ -3113,11 +3113,11 @@ Specifies the number of rectangles. Specifies the ordering relations on the rectangles. You can pass -Unsorted, -YSorted, -YXSorted, +Unsorted, +YSorted, +YXSorted, or -YXBanded. +YXBanded. @@ -3140,7 +3140,7 @@ undefined. Note that the list of rectangles can be empty, which effectively disables output. This is the opposite of passing -None +None as the clip-mask in XCreateGC, XChangeGC, @@ -3154,23 +3154,23 @@ specified with the ordering argument. This may provide faster operation by the server. If an incorrect ordering is specified, the X server may generate a -BadMatch +BadMatch error, but it is not required to do so. If no error is generated, the graphics results are undefined. -Unsorted +Unsorted means the rectangles are in arbitrary order. -YSorted +YSorted means that the rectangles are nondecreasing in their Y origin. -YXSorted +YXSorted additionally constrains -YSorted +YSorted order in that all rectangles with an equal Y origin are nondecreasing in their X origin. -YXBanded +YXBanded additionally constrains -YXSorted +YXSorted by requiring that, for every possible Y scanline, all rectangles that include that scanline have an identical Y origins and Y extents. @@ -3179,11 +3179,11 @@ scanline have an identical Y origins and Y extents. XSetClipRectangles can generate -BadAlloc, -BadGC, -BadMatch, +BadAlloc, +BadGC, +BadMatch, and -BadValue +BadValue errors. @@ -3207,7 +3207,7 @@ To set the arc mode of a given GC, use - XSetArcMode + XSetArcMode Display *display GC gc int arc_mode @@ -3243,9 +3243,9 @@ Specifies the GC. Specifies the arc mode. You can pass -ArcChord +ArcChord or -ArcPieSlice. +ArcPieSlice. @@ -3256,10 +3256,10 @@ or XSetArcMode can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -3271,7 +3271,7 @@ To set the subwindow mode of a given GC, use - XSetSubwindowMode + XSetSubwindowMode Display *display GC gc int subwindow_mode @@ -3307,9 +3307,9 @@ Specifies the GC. Specifies the subwindow mode. You can pass -ClipByChildren +ClipByChildren or -IncludeInferiors. +IncludeInferiors. @@ -3320,10 +3320,10 @@ or XSetSubwindowMode can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. @@ -3335,7 +3335,7 @@ To set the graphics-exposures flag of a given GC, use - XSetGraphicsExposures + XSetGraphicsExposures Display *display GC gc Bool graphics_exposures @@ -3370,9 +3370,9 @@ Specifies the GC. Specifies a Boolean value that indicates whether you want -GraphicsExpose +GraphicsExpose and -NoExpose +NoExpose events to be reported when calling XCopyArea and @@ -3388,10 +3388,10 @@ with this GC. XSetGraphicsExposures can generate -BadAlloc, -BadGC, +BadAlloc, +BadGC, and -BadValue +BadValue errors. diff --git a/libX11/specs/libX11/CH08.xml b/libX11/specs/libX11/CH08.xml index 5f08f93f3..d1e0b36d5 100644 --- a/libX11/specs/libX11/CH08.xml +++ b/libX11/specs/libX11/CH08.xml @@ -42,7 +42,7 @@ To clear a rectangular area of a given window, use - XClearArea + XClearArea Display *display Window w intx, y @@ -124,7 +124,7 @@ Specify the width and height(Wh. Specifies a Boolean value that indicates if -Expose +Expose events are to be generated. @@ -139,7 +139,7 @@ The function paints a rectangular area in the specified window according to the specified dimensions with the window's background pixel or pixmap. The subwindow-mode effectively is -ClipByChildren. +ClipByChildren. If width is zero, it is replaced with the current width of the window minus x. If height is @@ -148,29 +148,29 @@ If the window has a defined background tile, the rectangle clipped by any children is filled with this tile. If the window has background -None, +None, the contents of the window are not changed. In either case, if exposures is -True, +True, one or more -Expose +Expose events are generated for regions of the rectangle that are either visible or are being retained in a backing store. If you specify a window whose class is -InputOnly, +InputOnly, a -BadMatch +BadMatch error results. XClearArea can generate -BadMatch, -BadValue, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -184,7 +184,7 @@ To clear the entire area in a given window, use - XClearWindow + XClearWindow Display *display Window w @@ -222,28 +222,28 @@ function clears the entire area in the specified window and is equivalent to XClearArea (display, w, 0, 0, 0, 0, -False). +False). If the window has a defined background tile, the rectangle is tiled with a plane-mask of all ones and -GXcopy +GXcopy function. If the window has background -None, +None, the contents of the window are not changed. If you specify a window whose class is -InputOnly, +InputOnly, a -BadMatch +BadMatch error results. XClearWindow can generate -BadMatch +BadMatch and -BadWindow +BadWindow errors. @@ -268,7 +268,7 @@ root and depth, use - XCopyArea + XCopyArea Display *display Drawablesrc, dest GC gc @@ -400,7 +400,7 @@ function combines the specified rectangle of src with the specified rectangle of dest. The drawables must have the same root and depth, or a -BadMatch +BadMatch error results. @@ -413,27 +413,27 @@ Instead, the following occurs on all corresponding destination regions that are either visible or are retained in backing store. If the destination is a window with a background other than -None, +None, corresponding regions of the destination are tiled with that background (with plane-mask of all ones and -GXcopy +GXcopy function). Regardless of tiling or whether the destination is a window or a pixmap, if graphics-exposures is -True, +True, then -GraphicsExpose +GraphicsExpose events for all corresponding destination regions are generated. If graphics-exposures is -True +True but no -GraphicsExpose +GraphicsExpose events are generated, a -NoExpose +NoExpose event is generated. Note that by default graphics-exposures is -True +True in new GCs. @@ -446,10 +446,10 @@ clip-y-origin, and clip-mask. XCopyArea can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -463,7 +463,7 @@ To copy a single bit plane of a given drawable, use - XCopyPlane + XCopyPlane Display *display Drawablesrc, dest GC gc @@ -606,11 +606,11 @@ function uses a single bit plane of the specified source rectangle combined with the specified GC to modify the specified rectangle of dest. The drawables must have the same root but need not have the same depth. If the drawables do not have the same root, a -BadMatch +BadMatch error results. If plane does not have exactly one bit set to 1 and the value of plane is not less than %2 sup n%, where n is the depth of src, a -BadValue +BadValue error results. @@ -623,11 +623,11 @@ It uses the foreground/background pixels in the GC (foreground everywhere the bit plane in src contains a bit set to 1, background everywhere the bit plane in src contains a bit set to 0) and the equivalent of a -CopyArea +CopyArea protocol request is performed with all the same exposure semantics. This can also be thought of as using the specified region of the source bit plane as a stipple with a fill-style of -FillOpaqueStippled +FillOpaqueStippled for filling a rectangular area of the destination. @@ -640,11 +640,11 @@ and clip-mask. XCopyPlane can generate -BadDrawable, -BadGC, -BadMatch, +BadDrawable, +BadGC, +BadMatch, and -BadValue +BadValue errors. @@ -767,7 +767,7 @@ To draw a single point in a given drawable, use - XDrawPoint + XDrawPoint Display *display Drawable d GC gc @@ -839,7 +839,7 @@ To draw multiple points in a given drawable, use - XDrawPoints + XDrawPoints Display *display Drawable d GC gc @@ -908,9 +908,9 @@ Specifies the number of points in the array. Specifies the coordinate mode. You can pass -CoordModeOrigin +CoordModeOrigin or -CoordModePrevious. +CoordModePrevious. @@ -925,10 +925,10 @@ function uses the foreground pixel and function components of the GC to draw a single point into the specified drawable; XDrawPoints draws multiple points this way. -CoordModeOrigin +CoordModeOrigin treats all coordinates as relative to the origin, and -CoordModePrevious +CoordModePrevious treats all coordinates after the first as relative to the previous point. XDrawPoints draws the points in the order listed in the array. @@ -942,18 +942,18 @@ foreground, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. XDrawPoint can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. XDrawPoints can generate -BadDrawable, -BadGC, -BadMatch, +BadDrawable, +BadGC, +BadMatch, and -BadValue +BadValue errors. @@ -980,7 +980,7 @@ To draw a single line between two points in a given drawable, use - XDrawLine + XDrawLine Display *display Drawable d GC gc @@ -1074,7 +1074,7 @@ To draw multiple lines in a given drawable, use - XDrawLines + XDrawLines Display *display Drawable d GC gc @@ -1143,9 +1143,9 @@ Specifies the number of points in the array. Specifies the coordinate mode. You can pass -CoordModeOrigin +CoordModeOrigin or -CoordModePrevious. +CoordModePrevious. @@ -1162,7 +1162,7 @@ use - XDrawSegments + XDrawSegments Display *display Drawable d GC gc @@ -1233,7 +1233,7 @@ function uses the components of the specified GC to draw a line between the specified set of points (x1, y1) and (x2, y2). It does not perform joining at coincident endpoints. For any given line, -XDrawLine +XDrawLine does not draw a pixel more than once. If lines intersect, the intersecting pixels are drawn multiple times. @@ -1244,7 +1244,7 @@ The function uses the components of the specified GC to draw npoints-1 lines between each pair of points (point[i], point[i+1]) in the array of -XPoint +XPoint structures. It draws the lines in the order listed in the array. The lines join correctly at all intermediate points, and if the first and last @@ -1256,25 +1256,25 @@ If thin (zero line-width) lines intersect, the intersecting pixels are drawn multiple times. If wide lines intersect, the intersecting pixels are drawn only once, as though the entire -PolyLine +PolyLine protocol request were a single, filled shape. -CoordModeOrigin +CoordModeOrigin treats all coordinates as relative to the origin, and -CoordModePrevious +CoordModePrevious treats all coordinates after the first as relative to the previous point. The -XDrawSegments +XDrawSegments function draws multiple, unconnected lines. For each segment, -XDrawSegments +XDrawSegments draws a line between (x1, y1) and (x2, y2). It draws the lines in the order listed in the array of -XSegment +XSegment structures and does not perform joining at coincident endpoints. For any given line, XDrawSegments @@ -1301,14 +1301,14 @@ tile-stipple-y-origin, dash-offset, and dash-list. and XDrawSegments can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. XDrawLines also can generate -BadValue +BadValue errors. @@ -1332,7 +1332,7 @@ To draw the outline of a single rectangle in a given drawable, use - XDrawRectangle + XDrawRectangle Display *display Drawable d GC gc @@ -1429,7 +1429,7 @@ in a given drawable, use - XDrawRectangles + XDrawRectangles Display *display Drawable d GC gc @@ -1500,7 +1500,7 @@ and XDrawRectangles functions draw the outlines of the specified rectangle or rectangles as if a five-point -PolyLine +PolyLine protocol request were specified for each rectangle: @@ -1535,10 +1535,10 @@ tile-stipple-y-origin, dash-offset, and dash-list. and XDrawRectangles can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -1563,7 +1563,7 @@ To draw a single arc in a given drawable, use - XDrawArc + XDrawArc Display *display Drawable d GC gc @@ -1683,7 +1683,7 @@ To draw multiple arcs in a given drawable, use - XDrawArcs + XDrawArcs Display *display Drawable d GC gc @@ -1866,10 +1866,10 @@ tile-stipple-y-origin, dash-offset, and dash-list. and XDrawArcs can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -1921,7 +1921,7 @@ To fill a single rectangular area in a given drawable, use - XFillRectangle + XFillRectangle Display *display Drawable d GC gc @@ -2018,7 +2018,7 @@ To fill multiple rectangular areas in a given drawable, use - XFillRectangles + XFillRectangles Display *display Drawable d GC gc @@ -2089,7 +2089,7 @@ and XFillRectangles functions fill the specified rectangle or rectangles as if a four-point -FillPolygon +FillPolygon protocol request were specified for each rectangle: @@ -2130,10 +2130,10 @@ and tile-stipple-y-origin. and XFillRectangles can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -2153,7 +2153,7 @@ To fill a polygon area in a given drawable, use - XFillPolygon + XFillPolygon Display *display Drawable d GC gc @@ -2223,10 +2223,10 @@ Specifies the number of points in the array. Specifies a shape that helps the server to improve performance. You can pass -Complex, -Convex, +Complex, +Convex, or -Nonconvex. +Nonconvex. @@ -2238,9 +2238,9 @@ or Specifies the coordinate mode. You can pass -CoordModeOrigin +CoordModeOrigin or -CoordModePrevious. +CoordModePrevious. @@ -2249,17 +2249,17 @@ or -XFillPolygon +XFillPolygon fills the region closed by the specified path. The path is closed automatically if the last point in the list does not coincide with the first point. XFillPolygon does not draw a pixel of the region more than once. -CoordModeOrigin +CoordModeOrigin treats all coordinates as relative to the origin, and -CoordModePrevious +CoordModePrevious treats all coordinates after the first as relative to the previous point. @@ -2270,7 +2270,7 @@ Depending on the specified shape, the following occurs: If shape is -Complex, +Complex, the path may self-intersect. Note that contiguous coincident points in the path are not treated as self-intersection. @@ -2279,15 +2279,15 @@ as self-intersection. If shape is -Convex, +Convex, for every pair of points inside the polygon, the line segment connecting them does not intersect the path. If known by the client, specifying -Convex +Convex can improve performance. If you specify -Convex +Convex for a path that is not convex, the graphics results are undefined. @@ -2295,17 +2295,17 @@ the graphics results are undefined. If shape is -Nonconvex, +Nonconvex, the path does not self-intersect, but the shape is not wholly convex. If known by the client, specifying -Nonconvex +Nonconvex instead of -Complex +Complex may improve performance. If you specify -Nonconvex +Nonconvex for a self-intersecting path, the graphics results are undefined. @@ -2328,11 +2328,11 @@ and tile-stipple-y-origin. XFillPolygon can generate -BadDrawable, -BadGC, -BadMatch, +BadDrawable, +BadGC, +BadMatch, and -BadValue +BadValue errors. @@ -2352,7 +2352,7 @@ To fill a single arc in a given drawable, use - XFillArc + XFillArc Display *display Drawable d GC gc @@ -2472,7 +2472,7 @@ To fill multiple arcs in a given drawable, use - XFillArcs + XFillArcs Display *display Drawable d GC gc @@ -2545,10 +2545,10 @@ fills the region closed by the infinitely thin path described by the specified arc and, depending on the arc-mode specified in the GC, one or two line segments. For -ArcChord, +ArcChord, the single line segment joining the endpoints of the arc is used. For -ArcPieSlice, +ArcPieSlice, the two line segments joining the endpoints of the arc with the center point are used. XFillArcs @@ -2576,10 +2576,10 @@ and tile-stipple-y-origin. and XFillArcs can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -2649,18 +2649,18 @@ This means that it makes sense to draw text using stipples or tiles The -XFontStruct +XFontStruct structure contains all of the information for the font and consists of the font-specific information as well as a pointer to an array of -XCharStruct +XCharStruct structures for the characters contained in the font. The -XFontStruct, -XFontProp, +XFontStruct, +XFontProp, and -XCharStruct +XCharStruct structures contain: @@ -2746,35 +2746,35 @@ specified in the structure defines a range of characters. The bounding box of a character is defined by the -XCharStruct +XCharStruct of that character. When characters are absent from a font, the default_char is used. When fonts have all characters of the same size, only the information in the -XFontStruct +XFontStruct min and max bounds are used. The members of the -XFontStruct +XFontStruct have the following semantics: The direction member can be either -FontLeftToRight +FontLeftToRight or -FontRightToLeft. +FontRightToLeft. It is just a hint as to whether most -XCharStruct +XCharStruct elements have a positive -(FontLeftToRight) +(FontLeftToRight) or a negative -(FontRightToLeft) +(FontRightToLeft) character width metric. The core protocol defines no support for vertical text. @@ -2830,7 +2830,7 @@ as given by both min_bounds and max_bounds. If all_chars_exist is -True, +True, all characters in the per_char array have nonzero bounding boxes. @@ -2850,7 +2850,7 @@ no printing is performed for an undefined or nonexistent character. The min_bounds and max_bounds members contain the most extreme values of each individual -XCharStruct +XCharStruct component over all elements of this array (and ignore nonexistent characters). The bounding box of the font (the smallest @@ -2909,7 +2909,7 @@ For a character origin at [x,y], the bounding box of a character (that is, the smallest rectangle that encloses the character's shape) described in terms of -XCharStruct +XCharStruct components is a rectangle with its upper-left corner at: @@ -2971,7 +2971,7 @@ a nonkerned character. When lbearing is zero, no pixels with X-coordinate less than x are drawn. Any of the -XCharStruct +XCharStruct metric members could be negative. If the width is negative, the next character will be placed to the left of the current origin. @@ -2980,10 +2980,10 @@ the next character will be placed to the left of the current origin. The X protocol does not define the interpretation of the attributes member in the -XCharStruct +XCharStruct structure. A nonexistent character is represented with all members of its -XCharStruct +XCharStruct set to zero. @@ -3007,7 +3007,7 @@ unload fonts, and free font information. Fontsunloading Fontsfreeing font information A few font functions use a -GContext +GContext resource ID or a font ID interchangeably. @@ -3019,7 +3019,7 @@ To load a given font, use - Font XLoadFont + Font XLoadFont Display *display char *name @@ -3069,7 +3069,7 @@ If XLoadFont was unsuccessful at loading the specified font, a -BadName +BadName error results. Fonts are not associated with a particular screen and can be stored as a component @@ -3081,9 +3081,9 @@ When the font is no longer needed, call XLoadFont can generate -BadAlloc +BadAlloc and -BadName +BadName errors. @@ -3095,7 +3095,7 @@ To return information about an available font, use - XFontStruct *XQueryFont + XFontStruct *XQueryFont Display *display XID font_ID @@ -3119,7 +3119,7 @@ Specifies the connection to the X server. Specifies the font ID or the -GContext +GContext ID. @@ -3132,13 +3132,13 @@ ID. The XQueryFont function returns a pointer to the -XFontStruct +XFontStruct structure, which contains information associated with the font. You can query a font or the font stored in a GC. The font ID stored in the -XFontStruct +XFontStruct structure will be the -GContext +GContext ID, and you need to be careful when using this ID in other functions (see XGContextFromGC). @@ -3161,7 +3161,7 @@ in a single operation, use - XFontStruct *XLoadQueryFont + XFontStruct *XLoadQueryFont Display *display char *name @@ -3200,7 +3200,7 @@ function provides the most common way for accessing a font. XLoadQueryFont both opens (loads) the specified font and returns a pointer to the appropriate -XFontStruct +XFontStruct structure. If the font name is not in the Host Portable Character Encoding, the result is implementation-dependent. @@ -3212,7 +3212,7 @@ returns NULL. XLoadQueryFont can generate a -BadAlloc +BadAlloc error. @@ -3229,7 +3229,7 @@ use - XFreeFont + XFreeFont Display *display XFontStruct *font_struct @@ -3265,7 +3265,7 @@ The XFreeFont function deletes the association between the font resource ID and the specified font and frees the -XFontStruct +XFontStruct structure. The font itself will be freed when no other resource references it. The data and the font should not be referenced again. @@ -3274,7 +3274,7 @@ The data and the font should not be referenced again. XFreeFont can generate a -BadFont +BadFont error. @@ -3286,7 +3286,7 @@ To return a given font property, use - Bool XGetFontProperty + Bool XGetFontProperty XFontStruct *font_struct Atom atom unsignedlong *value_return @@ -3335,13 +3335,13 @@ the function returns the value of the specified font property. XGetFontProperty also returns -False +False if the property was not defined or -True +True if it was defined. A set of predefined atoms exists for font properties, which can be found in - +<X11/Xatom.h>. This set contains the standard properties associated with a font. Although it is not guaranteed, @@ -3358,7 +3358,7 @@ use - XUnloadFont + XUnloadFont Display *display Font font @@ -3400,7 +3400,7 @@ The font should not be referenced again. XUnloadFont can generate a -BadFont +BadFont error. @@ -3423,7 +3423,7 @@ To return a list of the available font names, use - char **XListFonts + char **XListFonts Display *display char *pattern int maxnames @@ -3510,7 +3510,7 @@ To free a font name array, use - XFreeFontNames + XFreeFontNames char *list[] @@ -3534,7 +3534,7 @@ Specifies the array of strings you want to free. The XFreeFontNames function frees the array and strings returned by -XListFonts +XListFonts or XListFontsWithInfo. @@ -3547,7 +3547,7 @@ To obtain the names and information about available fonts, use - char **XListFontsWithInfo + char **XListFontsWithInfo Display *display char *pattern int maxnames @@ -3654,7 +3654,7 @@ To free font structures and font names, use - XFreeFontInfo + XFreeFontInfo char **names XFontStruct *free_info int actual_count @@ -3738,7 +3738,7 @@ To determine the width of an 8-bit character string, use - int XTextWidth + int XTextWidth XFontStruct *font_struct char *string int count @@ -3788,7 +3788,7 @@ To determine the width of a 2-byte character string, use - int XTextWidth16 + int XTextWidth16 XFontStruct *font_struct XChar2b *string int count @@ -3846,7 +3846,7 @@ To compute the bounding box of an 8-bit character string in a given font, use - XTextExtents + XTextExtents XFontStruct *font_struct char *string int nchars @@ -3864,7 +3864,7 @@ To compute the bounding box of an 8-bit character string in a given font, use Specifies the -XFontStruct +XFontStruct structure. @@ -3896,9 +3896,9 @@ Specifies the number of characters in the character string. Returns the value of the direction hint -(FontLeftToRight +(FontLeftToRight or -FontRightToLeft). +FontRightToLeft). @@ -3929,7 +3929,7 @@ Returns the font descent. Returns the overall size in the specified -XCharStruct +XCharStruct structure. @@ -3946,7 +3946,7 @@ To compute the bounding box of a 2-byte character string in a given font, use - XTextExtents16 + XTextExtents16 XFontStruct *font_struct XChar2b *string int nchars @@ -3964,7 +3964,7 @@ To compute the bounding box of a 2-byte character string in a given font, use Specifies the -XFontStruct +XFontStruct structure. @@ -3996,9 +3996,9 @@ Specifies the number of characters in the character string. Returns the value of the direction hint -(FontLeftToRight +(FontLeftToRight or -FontRightToLeft). +FontRightToLeft). @@ -4029,7 +4029,7 @@ Returns the font descent. Returns the overall size in the specified -XCharStruct +XCharStruct structure. @@ -4046,11 +4046,11 @@ and functions perform the size computation locally and, thereby, avoid the round-trip overhead of -XQueryTextExtents +XQueryTextExtents and XQueryTextExtents16. Both functions return an -XCharStruct +XCharStruct structure, whose members are set to the values as follows. @@ -4072,7 +4072,7 @@ The rbearing member is set to the maximum R. For fonts defined with linear indexing rather than 2-byte matrix indexing, each -XChar2b +XChar2b structure is interpreted as a 16-bit number with byte1 as the most significant byte. If the font has no defined default character, @@ -4093,7 +4093,7 @@ given font, use - XQueryTextExtents + XQueryTextExtents Display *display XID font_ID char *string @@ -4122,7 +4122,7 @@ Specifies the connection to the X server. Specifies either the font ID or the -GContext +GContext ID that contains the font. @@ -4154,9 +4154,9 @@ Specifies the number of characters in the character string. Returns the value of the direction hint -(FontLeftToRight +(FontLeftToRight or -FontRightToLeft). +FontRightToLeft). @@ -4187,7 +4187,7 @@ Returns the font descent. Returns the overall size in the specified -XCharStruct +XCharStruct structure. @@ -4205,7 +4205,7 @@ in a given font, use - XQueryTextExtents16 + XQueryTextExtents16 Display *display XID font_ID XChar2b *string @@ -4234,7 +4234,7 @@ Specifies the connection to the X server. Specifies either the font ID or the -GContext +GContext ID that contains the font. @@ -4266,9 +4266,9 @@ Specifies the number of characters in the character string. Returns the value of the direction hint -(FontLeftToRight +(FontLeftToRight or -FontRightToLeft). +FontRightToLeft). @@ -4299,7 +4299,7 @@ Returns the font descent. Returns the overall size in the specified -XCharStruct +XCharStruct structure. @@ -4322,7 +4322,7 @@ overhead that is avoided by and XTextExtents16. Both functions return a -XCharStruct +XCharStruct structure, whose members are set to the values as follows. @@ -4344,7 +4344,7 @@ The rbearing member is set to the maximum R. For fonts defined with linear indexing rather than 2-byte matrix indexing, each -XChar2b +XChar2b structure is interpreted as a 16-bit number with byte1 as the most significant byte. If the font has no defined default character, @@ -4362,9 +4362,9 @@ the undefined characters in the string are also ignored. and XQueryTextExtents16 can generate -BadFont +BadFont and -BadGC +BadGC errors. @@ -4436,7 +4436,7 @@ typedef struct { If the font member is not -None, +None, the font is changed before printing and also is stored in the GC. If an error was generated during text drawing, the previous items may have been drawn. @@ -4451,13 +4451,13 @@ If you want the upper-left corner of the background rectangle to be at pixel coordinate (x,y), pass the (x,y + ascent) as the baseline origin coordinates to the text functions. The ascent is the font ascent, as given in the -XFontStruct +XFontStruct structure. If you want the lower-left corner of the background rectangle to be at pixel coordinate (x,y), pass the (x,y - descent + 1) as the baseline origin coordinates to the text functions. The descent is the font descent, as given in the -XFontStruct +XFontStruct structure. @@ -4478,7 +4478,7 @@ To draw 8-bit characters in a given drawable, use - XDrawText + XDrawText Display *display Drawable d GC gc @@ -4574,7 +4574,7 @@ To draw 2-byte characters in a given drawable, use - XDrawText16 + XDrawText16 Display *display Drawable d GC gc @@ -4666,7 +4666,7 @@ Specifies the number of text items in the array. The XDrawText16 function is similar to -XDrawText +XDrawText except that it uses 2-byte or 16-bit characters. Both functions allow complex spacing and font shifts between counted strings. @@ -4674,7 +4674,7 @@ Both functions allow complex spacing and font shifts between counted strings. Each text item is processed in turn. A font member other than -None +None in an item causes the font to be stored in the GC and used for subsequent text. A text element delta specifies an additional change @@ -4685,14 +4685,14 @@ Each character image, as defined by the font in the GC, is treated as an additional mask for a fill operation on the drawable. The drawable is modified only where the font character has a bit set to 1. If a text item generates a -BadFont +BadFont error, the previous text items may have been drawn. For fonts defined with linear indexing rather than 2-byte matrix indexing, each -XChar2b +XChar2b structure is interpreted as a 16-bit number with byte1 as the most significant byte. @@ -4711,11 +4711,11 @@ and tile-stipple-y-origin. and XDrawText16 can generate -BadDrawable, -BadFont, -BadGC, +BadDrawable, +BadFont, +BadGC, and -BadMatch +BadMatch errors. @@ -4734,7 +4734,7 @@ To draw 8-bit characters in a given drawable, use - XDrawString + XDrawString Display *display Drawable d GC gc @@ -4830,7 +4830,7 @@ To draw 2-byte characters in a given drawable, use - XDrawString16 + XDrawString16 Display *display Drawable d GC gc @@ -4942,10 +4942,10 @@ and tile-stipple-y-origin. and XDrawString16 can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -4974,7 +4974,7 @@ To draw 8-bit image text characters in a given drawable, use - XDrawImageString + XDrawImageString Display *display Drawable d GC gc @@ -5070,7 +5070,7 @@ To draw 2-byte image text characters in a given drawable, use - XDrawImageString16 + XDrawImageString16 Display *display Drawable d GC gc @@ -5162,7 +5162,7 @@ Specifies the number of characters in the string argument. The XDrawImageString16 function is similar to -XDrawImageString +XDrawImageString except that it uses 2-byte or 16-bit characters. Both functions also use both the foreground and background pixels of the GC in the destination. @@ -5204,13 +5204,13 @@ font-ascent + font-descent The overall-width, font-ascent, and font-descent are as would be returned by -XQueryTextExtents +XQueryTextExtents using gc and string. The function and fill-style defined in the GC are ignored for these functions. The effective function is -GXcopy, +GXcopy, and the effective fill-style is -FillSolid. +FillSolid. @@ -5231,10 +5231,10 @@ clip-y-origin, and clip-mask. and XDrawImageString16 can generate -BadDrawable, -BadGC, +BadDrawable, +BadGC, and -BadMatch +BadMatch errors. @@ -5267,7 +5267,7 @@ to an image (see section 16.8). All the image manipulation functions discussed in this section make use of the -XImage +XImage structure, which describes an image as it exists in the client's memory. @@ -5315,7 +5315,7 @@ To initialize the image manipulation routines of an image structure, use - Status XInitImage + Status XInitImage XImage *image @@ -5373,7 +5373,7 @@ use - XPutImage + XPutImage Display *display Drawable d GC gc @@ -5433,7 +5433,7 @@ Specifies the image you want combined with the rectangle. Specifies the offset in X from the left edge of the image defined by the -XImage +XImage structure. @@ -5446,7 +5446,7 @@ structure. Specifies the offset in Y from the top edge of the image defined by the -XImage +XImage structure. and are the coordinates of the subimage @@ -5508,27 +5508,27 @@ combines an image with a rectangle of the specified drawable. The section of the image defined by the src_x, src_y, width, and height arguments is drawn on the specified part of the drawable. If -XYBitmap +XYBitmap format is used, the depth of the image must be one, or a -BadMatch +BadMatch error results. The foreground pixel in the GC defines the source for the one bits in the image, and the background pixel defines the source for the zero bits. For -XYPixmap +XYPixmap and -ZPixmap, +ZPixmap, the depth of the image must match the depth of the drawable, or a -BadMatch +BadMatch error results. If the characteristics of the image (for example, byte_order and bitmap_unit) differ from what the server requires, -XPutImage +XPutImage automatically makes the appropriate conversions. @@ -5544,11 +5544,11 @@ foreground and background. XPutImage can generate -BadDrawable, -BadGC, -BadMatch, +BadDrawable, +BadGC, +BadMatch, and -BadValue +BadValue errors. @@ -5562,7 +5562,7 @@ This function specifically supports rudimentary screen dumps. - XImage *XGetImage + XImage *XGetImage Display *display Drawable d intx, y @@ -5657,9 +5657,9 @@ Specifies the plane mask. Specifies the format for the image. You can pass -XYPixmap +XYPixmap or -ZPixmap. +ZPixmap. @@ -5671,18 +5671,18 @@ or The XGetImage function returns a pointer to an -XImage +XImage structure. This structure provides you with the contents of the specified rectangle of the drawable in the format you specify. If the format argument is -XYPixmap, +XYPixmap, the image contains only the bit planes you passed to the plane_mask argument. If the plane_mask argument only requests a subset of the planes of the display, the depth of the returned image will be the number of planes requested. If the format argument is -ZPixmap, +ZPixmap, XGetImage returns as zero the bits in all planes not specified in the plane_mask argument. @@ -5693,11 +5693,11 @@ extraneous bits. XGetImage returns the depth of the image to the depth member of the -XImage +XImage structure. The depth of the image is as specified when the drawable was created, except when getting a subset of the planes in -XYPixmap +XYPixmap format, when the depth is given by the number of bits set to 1 in plane_mask. @@ -5705,7 +5705,7 @@ format, when the depth is given by the number of bits set to 1 in plane_mask. If the drawable is a pixmap, the given rectangle must be wholly contained within the pixmap, or a -BadMatch +BadMatch error results. If the drawable is a window, the window must be viewable, @@ -5713,7 +5713,7 @@ and it must be the case that if there were no inferiors or overlapping windows, the specified rectangle of the window would be fully visible on the screen and wholly contained within the outside edges of the window, or a -BadMatch +BadMatch error results. Note that the borders of the window can be included and read with this request. @@ -5733,10 +5733,10 @@ returns NULL. XGetImage can generate -BadDrawable, -BadMatch, +BadDrawable, +BadMatch, and -BadValue +BadValue errors. @@ -5749,7 +5749,7 @@ to a location within a preexisting image structure, use - XImage *XGetSubImage + XImage *XGetSubImage Display *display Drawable d intx, y @@ -5846,9 +5846,9 @@ Specifies the plane mask. Specifies the format for the image. You can pass -XYPixmap +XYPixmap or -ZPixmap. +ZPixmap. @@ -5892,14 +5892,14 @@ Specify the x and y coordinates(Dx. The -XGetSubImage +XGetSubImage function updates dest_image with the specified subimage in the same manner as XGetImage. If the format argument is -XYPixmap, +XYPixmap, the image contains only the bit planes you passed to the plane_mask argument. If the format argument is -ZPixmap, +ZPixmap, XGetSubImage returns as zero the bits in all planes not specified in the plane_mask argument. @@ -5908,20 +5908,20 @@ extraneous bits. As a convenience, XGetSubImage returns a pointer to the same -XImage +XImage structure specified by dest_image. The depth of the destination -XImage +XImage structure must be the same as that of the drawable. If the specified subimage does not fit at the specified location on the destination image, the right and bottom edges are clipped. If the drawable is a pixmap, the given rectangle must be wholly contained within the pixmap, or a -BadMatch +BadMatch error results. If the drawable is a window, the window must be viewable, @@ -5929,7 +5929,7 @@ and it must be the case that if there were no inferiors or overlapping windows, the specified rectangle of the window would be fully visible on the screen and wholly contained within the outside edges of the window, or a -BadMatch +BadMatch error results. If the window has backing-store, then the backing-store contents are returned for regions of the window @@ -5946,11 +5946,11 @@ returns NULL. XGetSubImage can generate -BadDrawable, -BadGC, -BadMatch, +BadDrawable, +BadGC, +BadMatch, and -BadValue +BadValue errors. diff --git a/libX11/specs/libX11/CH09.xml b/libX11/specs/libX11/CH09.xml index 20b2e99bc..60bf08e68 100644 --- a/libX11/specs/libX11/CH09.xml +++ b/libX11/specs/libX11/CH09.xml @@ -33,7 +33,7 @@ There is no way to move a window between screens. - XReparentWindow + XReparentWindow Display *display Window w Window parent @@ -102,7 +102,7 @@ Specify the x and y coordinates(Xy. If the specified window is mapped, XReparentWindow automatically performs an -UnmapWindow +UnmapWindow request on it, removes it from its current position in the hierarchy, and inserts it as the child of the specified parent. The window is placed in the stacking order on top with respect to @@ -113,16 +113,16 @@ sibling windows. After reparenting the specified window, XReparentWindow causes the X server to generate a -ReparentNotify +ReparentNotify event. The override_redirect member returned in this event is set to the window's corresponding attribute. Window manager clients usually should ignore this window if this member is set to -True. +True. Finally, if the specified window was originally mapped, the X server automatically performs a -MapWindow +MapWindow request on it. @@ -130,14 +130,14 @@ request on it. The X server performs normal exposure processing on formerly obscured windows. The X server might not generate -Expose +Expose events for regions from the initial -UnmapWindow +UnmapWindow request that are immediately obscured by the final -MapWindow +MapWindow request. A -BadMatch +BadMatch error results if: @@ -156,14 +156,14 @@ specified window. The new parent is -InputOnly, +InputOnly, and the window is not. The specified window has a -ParentRelative +ParentRelative background, and the new parent window is not the same depth as the specified window. @@ -173,9 +173,9 @@ specified window. XReparentWindow can generate -BadMatch +BadMatch and -BadWindow +BadWindow errors. @@ -217,7 +217,7 @@ To add or remove a window from the client's save-set, use - XChangeSaveSet + XChangeSaveSet Display *display Window w int change_mode @@ -254,9 +254,9 @@ Specifies the window (Wi. Specifies the mode. You can pass -SetModeInsert +SetModeInsert or -SetModeDelete. +SetModeDelete. @@ -270,17 +270,17 @@ Depending on the specified mode, either inserts or deletes the specified window from the client's save-set. The specified window must have been created by some other client, or a -BadMatch +BadMatch error results. XChangeSaveSet can generate -BadMatch, -BadValue, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -292,7 +292,7 @@ To add a window to the client's save-set, use - XAddToSaveSet + XAddToSaveSet Display *display Window w @@ -330,16 +330,16 @@ The function adds the specified window to the client's save-set. The specified window must have been created by some other client, or a -BadMatch +BadMatch error results. XAddToSaveSet can generate -BadMatch +BadMatch and -BadWindow +BadWindow errors. @@ -351,7 +351,7 @@ To remove a window from the client's save-set, use - XRemoveFromSaveSet + XRemoveFromSaveSet Display *display Window w @@ -389,16 +389,16 @@ The function removes the specified window from the client's save-set. The specified window must have been created by some other client, or a -BadMatch +BadMatch error results. XRemoveFromSaveSet can generate -BadMatch +BadMatch and -BadWindow +BadWindow errors. @@ -448,7 +448,7 @@ To install a colormap, use - XInstallColormap + XInstallColormap Display *display Colormap colormap @@ -496,20 +496,20 @@ or If the specified colormap is not already an installed colormap, the X server generates a -ColormapNotify +ColormapNotify event on each window that has that colormap. In addition, for every other colormap that is installed as a result of a call to XInstallColormap, the X server generates a -ColormapNotify +ColormapNotify event on each window that has that colormap. XInstallColormap can generate a -BadColor +BadColor error. @@ -521,7 +521,7 @@ To uninstall a colormap, use - XUninstallColormap + XUninstallColormap Display *display Colormap colormap @@ -567,20 +567,20 @@ except that the required list must remain installed. If the specified colormap becomes uninstalled, the X server generates a -ColormapNotify +ColormapNotify event on each window that has that colormap. In addition, for every other colormap that is installed or uninstalled as a result of a call to XUninstallColormap, the X server generates a -ColormapNotify +ColormapNotify event on each window that has that colormap. XUninstallColormap can generate a -BadColor +BadColor error. @@ -592,7 +592,7 @@ To obtain a list of the currently installed colormaps for a given screen, use - Colormap *XListInstalledColormaps + Colormap *XListInstalledColormaps Display *display Window w int *num_return @@ -650,7 +650,7 @@ free it by using XListInstalledColormaps can generate a -BadWindow +BadWindow error. @@ -674,7 +674,7 @@ To set the font search path, use - XSetFontPath + XSetFontPath Display *display char **directories int ndirs @@ -740,7 +740,7 @@ The meaning of an error from this request is implementation-dependent. XSetFontPath can generate a -BadValue +BadValue error. @@ -752,7 +752,7 @@ To get the current font search path, use - char **XGetFontPath + char **XGetFontPath Display *display int *npaths_return @@ -804,7 +804,7 @@ use - XFreeFontPath + XFreeFontPath char **list @@ -860,7 +860,7 @@ To grab the server, use - XGrabServer + XGrabServer Display *display @@ -896,7 +896,7 @@ To ungrab the server, use - XUngrabServer + XUngrabServer Display *display @@ -938,7 +938,7 @@ To destroy a client, use - XKillClient + XKillClient Display *display XID resource @@ -962,7 +962,7 @@ Specifies the connection to the X server. Specifies any resource associated with the client that you want to destroy or -AllTemporary. +AllTemporary. @@ -979,19 +979,19 @@ that created the resource if a valid resource is specified. If the client has already terminated in either -RetainPermanent +RetainPermanent or -RetainTemporary +RetainTemporary mode, all of the client's resources are destroyed. If -AllTemporary +AllTemporary is specified, the resources of all clients that have terminated in -RetainTemporary +RetainTemporary are destroyed (see section 2.5). This permits implementation of window manager facilities that aid debugging. A client can set its close-down mode to -RetainTemporary. +RetainTemporary. If the client then crashes, its windows would not be destroyed. The programmer can then inspect the application's window tree @@ -1001,7 +1001,7 @@ and use the window manager to destroy the zombie windows. XKillClient can generate a -BadValue +BadValue error. @@ -1025,7 +1025,7 @@ To set the screen saver mode, use - XSetScreenSaver + XSetScreenSaver Display *display inttimeout, interval int prefer_blanking @@ -1072,10 +1072,10 @@ Specifies the interval, in seconds, between screen saver alterations. Specifies how to enable screen blanking. You can pass -DontPreferBlanking, -PreferBlanking, +DontPreferBlanking, +PreferBlanking, or -DefaultBlanking. +DefaultBlanking. @@ -1087,10 +1087,10 @@ or Specifies the screen save control values. You can pass -DontAllowExposures, -AllowExposures, +DontAllowExposures, +AllowExposures, or -DefaultExposures. +DefaultExposures. @@ -1104,7 +1104,7 @@ A timeout of 0 disables the screen saver (but an activated screen saver is not deactivated), and a timeout of \-1 restores the default. Other negative values generate a -BadValue +BadValue error. If the timeout value is nonzero, XSetScreenSaver @@ -1121,7 +1121,7 @@ if blanking is preferred and the hardware supports video blanking, the screen simply goes blank. Otherwise, if either exposures are allowed or the screen can be regenerated without sending -Expose +Expose events to clients, the screen is tiled with the root window background tile randomly re-origined each interval seconds. @@ -1132,7 +1132,7 @@ and all screen states are restored at the next keyboard or pointer input or at the next call to XForceScreenSaver with mode -ScreenSaverReset. +ScreenSaverReset. @@ -1148,7 +1148,7 @@ periodically. XSetScreenSaver can generate a -BadValue +BadValue error. @@ -1160,7 +1160,7 @@ To force the screen saver on or off, use - XForceScreenSaver + XForceScreenSaver Display *display int mode @@ -1185,9 +1185,9 @@ Specifies the connection to the X server. Specifies the mode that is to be applied. You can pass -ScreenSaverActive +ScreenSaverActive or -ScreenSaverReset. +ScreenSaverReset. @@ -1197,13 +1197,13 @@ or If the specified mode is -ScreenSaverActive +ScreenSaverActive and the screen saver currently is deactivated, XForceScreenSaver activates the screen saver even if the screen saver had been disabled with a timeout of zero. If the specified mode is -ScreenSaverReset +ScreenSaverReset and the screen saver currently is enabled, XForceScreenSaver deactivates the screen saver if it was activated, @@ -1214,7 +1214,7 @@ and the activation timer is reset to its initial state XForceScreenSaver can generate a -BadValue +BadValue error. @@ -1226,7 +1226,7 @@ To activate the screen saver, use - XActivateScreenSaver + XActivateScreenSaver Display *display @@ -1254,7 +1254,7 @@ To reset the screen saver, use - XResetScreenSaver + XResetScreenSaver Display *display @@ -1282,7 +1282,7 @@ To get the current screen saver values, use - XGetScreenSaver + XGetScreenSaver Display *display int*timeout_return, *interval_return int *prefer_blanking_return @@ -1328,10 +1328,10 @@ Returns the interval between screen saver invocations. Returns the current screen blanking preference -(DontPreferBlanking, -PreferBlanking, +(DontPreferBlanking, +PreferBlanking, or -DefaultBlanking). +DefaultBlanking). @@ -1342,10 +1342,10 @@ or Returns the current screen save control value -(DontAllowExposures, -AllowExposures, +(DontAllowExposures, +AllowExposures, or -DefaultExposures). +DefaultExposures). @@ -1405,11 +1405,11 @@ The host the window system is running on. On POSIX-conformant systems, each host listed in the -/etc/X?.hosts +/etc/X?.hosts file. The ? indicates the number of the display. -Files/etc/X?.hosts +Files/etc/X?.hosts This file should consist of host names separated by newlines. DECnet nodes must terminate in :: to distinguish them from Internet hosts. @@ -1442,7 +1442,7 @@ see ``X Window System Protocol.'' Xlib provides functions that you can use to add, get, or remove hosts from the access control list. All the host access control functions use the -XHostAddress +XHostAddress structure, which contains: @@ -1464,12 +1464,12 @@ typedef struct { The family member specifies which protocol address family to use (for example, TCP/IP or DECnet) and can be -FamilyInternet, -FamilyInternet6, -FamilyServerInterpreted, -FamilyDECnet, +FamilyInternet, +FamilyInternet6, +FamilyServerInterpreted, +FamilyDECnet, or -FamilyChaos. +FamilyChaos. The length member specifies the length of the address in bytes. The address member specifies a pointer to the address. @@ -1494,7 +1494,7 @@ and the area in the most significant 6 bits of the byte. For the ServerInterpreted family, the length is ignored and the address member is a pointer to a -XServerInterpretedAddress +XServerInterpretedAddress structure, which contains: @@ -1529,7 +1529,7 @@ To add a single host, use - XAddHost + XAddHost Display *display XHostAddress *host @@ -1566,16 +1566,16 @@ The XAddHost function adds the specified host to the access control list for that display. The server must be on the same host as the client issuing the command, or a -BadAccess +BadAccess error results. XAddHost can generate -BadAccess +BadAccess and -BadValue +BadValue errors. @@ -1587,7 +1587,7 @@ To add multiple hosts at one time, use - XAddHosts + XAddHosts Display *display XHostAddress *hosts int num_hosts @@ -1635,16 +1635,16 @@ The XAddHosts function adds each specified host to the access control list for that display. The server must be on the same host as the client issuing the command, or a -BadAccess +BadAccess error results. XAddHosts can generate -BadAccess +BadAccess and -BadValue +BadValue errors. @@ -1656,7 +1656,7 @@ To obtain a host list, use - XHostAddress *XListHosts + XHostAddress *XListHosts Display *display int *nhosts_return Bool *state_return @@ -1720,7 +1720,7 @@ To remove a single host, use - XRemoveHost + XRemoveHost Display *display XHostAddress *host @@ -1758,7 +1758,7 @@ The function removes the specified host from the access control list for that display. The server must be on the same host as the client process, or a -BadAccess +BadAccess error results. If you remove your machine from the access list, you can no longer connect to that server, @@ -1768,9 +1768,9 @@ and this operation cannot be reversed unless you reset the server. XRemoveHost can generate -BadAccess +BadAccess and -BadValue +BadValue errors. @@ -1782,7 +1782,7 @@ To remove multiple hosts at one time, use - XRemoveHosts + XRemoveHosts Display *display XHostAddress *hosts int num_hosts @@ -1831,7 +1831,7 @@ The function removes each specified host from the access control list for that display. The X server must be on the same host as the client process, or a -BadAccess +BadAccess error results. If you remove your machine from the access list, you can no longer connect to that server, @@ -1841,9 +1841,9 @@ and this operation cannot be reversed unless you reset the server. XRemoveHosts can generate -BadAccess +BadAccess and -BadValue +BadValue errors. @@ -1873,7 +1873,7 @@ To change access control, use - XSetAccessControl + XSetAccessControl Display *display int mode @@ -1898,9 +1898,9 @@ Specifies the connection to the X server. Specifies the mode. You can pass -EnableAccess +EnableAccess or -DisableAccess. +DisableAccess. @@ -1918,9 +1918,9 @@ at each connection setup. XSetAccessControl can generate -BadAccess +BadAccess and -BadValue +BadValue errors. @@ -1932,7 +1932,7 @@ To enable access control, use - XEnableAccessControl + XEnableAccessControl Display *display @@ -1961,7 +1961,7 @@ function enables the use of the access control list at each connection setup. XEnableAccessControl can generate a -BadAccess +BadAccess error. @@ -1973,7 +1973,7 @@ To disable access control, use - XDisableAccessControl + XDisableAccessControl Display *display @@ -2002,7 +2002,7 @@ function disables the use of the access control list at each connection setup. XDisableAccessControl can generate a -BadAccess +BadAccess error. diff --git a/libX11/specs/libX11/CH10.xml b/libX11/specs/libX11/CH10.xml index 68a5f98f4..e00b517e7 100644 --- a/libX11/specs/libX11/CH10.xml +++ b/libX11/specs/libX11/CH10.xml @@ -48,7 +48,7 @@ You can also mask out events that would propagate to ancestor windows by manipulating the do-not-propagate mask of the window's attributes. However, -MappingNotify +MappingNotify events are always sent to all clients. Input Control Output Control @@ -58,7 +58,7 @@ events are always sent to all clients. An event type describes a specific event generated by the X server. For each event type, a corresponding constant name is defined in - +<X11/X.h>, which is used when referring to an event type. Eventcategories The following table lists the event category @@ -85,67 +85,67 @@ The processing associated with these events is discussed in section 10.5. Keyboard events - KeyPress, - KeyRelease + KeyPress, + KeyRelease Pointer events - ButtonPress, - ButtonRelease, - MotionNotify + ButtonPress, + ButtonRelease, + MotionNotify Window crossing events - EnterNotify, - LeaveNotify + EnterNotify, + LeaveNotify Input focus events - FocusIn, - FocusOut + FocusIn, + FocusOut Keymap state notification event - KeymapNotify + KeymapNotify Exposure events - Expose, - GraphicsExpose, - NoExpose + Expose, + GraphicsExpose, + NoExpose Structure control events - CirculateRequest, - ConfigureRequest, - MapRequest, - ResizeRequest + CirculateRequest, + ConfigureRequest, + MapRequest, + ResizeRequest Window state notification events - CirculateNotify, - ConfigureNotify, - CreateNotify, - DestroyNotify, - GravityNotify, - MapNotify, - MappingNotify, - ReparentNotify, - UnmapNotify, - VisibilityNotify + CirculateNotify, + ConfigureNotify, + CreateNotify, + DestroyNotify, + GravityNotify, + MapNotify, + MappingNotify, + ReparentNotify, + UnmapNotify, + VisibilityNotify Colormap state notification event - ColormapNotify + ColormapNotify Client communication events - ClientMessage, - PropertyNotify, - SelectionClear, - SelectionNotify, - SelectionRequest + ClientMessage, + PropertyNotify, + SelectionClear, + SelectionNotify, + SelectionRequest @@ -171,7 +171,7 @@ The processing associated with these events is discussed in section 10.5. For each event type, a corresponding structure is declared in - +<X11/Xlib.h>. All the event structures have the following common members: @@ -196,16 +196,16 @@ typedef struct { The type member is set to the event type constant name that uniquely identifies it. For example, when the X server reports a -GraphicsExpose +GraphicsExpose event to a client application, it sends an -XGraphicsExposeEvent +XGraphicsExposeEvent structure with the type member set to -GraphicsExpose. +GraphicsExpose. The display member is set to a pointer to the display the event was read on. The send_event member is set to -True +True if the event came from a -SendEvent +SendEvent protocol request. The serial member 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. @@ -223,11 +223,11 @@ in the event queue (see section 11.3). In addition to the individual structures declared for each event type, the -XEvent +XEvent structure is a union of the individual structures declared for each event type. Depending on the type, you should access members of each event by using the -XEvent +XEvent union. @@ -279,14 +279,14 @@ typedef union _XEvent { An -XEvent +XEvent structure's first entry always is the type member, which is set to the event type. The second member always is the serial number of the protocol request that generated the event. The third member always is send_event, which is a -Bool +Bool that indicates if the event was sent by a different client. The fourth member always is a display, which is the display that the event was read from. @@ -313,7 +313,7 @@ Clients select event reporting of most events relative to a window. To do this, pass an event mask to an Xlib event-handling function that takes an event_mask argument. The bits of the event mask are defined in - +<X11/X.h>. Each bit in the event mask maps to an event mask name, which describes the event or events you want the X server to return to a client application. @@ -323,24 +323,24 @@ return to a client application. Unless the client has specifically asked for them, most events are not reported to clients when they are generated. Unless the client suppresses them by setting graphics-exposures in the GC to -False, -GraphicsExpose +False, +GraphicsExpose and -NoExpose +NoExpose are reported by default as a result of XCopyPlane and XCopyArea. -SelectionClear, -SelectionRequest, -SelectionNotify, +SelectionClear, +SelectionRequest, +SelectionNotify, or -ClientMessage +ClientMessage cannot be masked. Selection-related events are only sent to clients cooperating with selections (see section 4.5). When the keyboard or pointer mapping is changed, -MappingNotify +MappingNotify is always sent to clients. @@ -367,107 +367,107 @@ event mask: - NoEventMask + NoEventMask No events wanted - KeyPressMask + KeyPressMask Keyboard down events wanted - KeyReleaseMask + KeyReleaseMask Keyboard up events wanted - ButtonPressMask + ButtonPressMask Pointer button down events wanted - ButtonReleaseMask + ButtonReleaseMask Pointer button up events wanted - EnterWindowMask + EnterWindowMask Pointer window entry events wanted - LeaveWindowMask + LeaveWindowMask Pointer window leave events wanted - PointerMotionMask + PointerMotionMask Pointer motion events wanted - PointerMotionHintMask + PointerMotionHintMask Pointer motion hints wanted - Button1MotionMask + Button1MotionMask Pointer motion while button 1 down - Button2MotionMask + Button2MotionMask Pointer motion while button 2 down - Button3MotionMask + Button3MotionMask Pointer motion while button 3 down - Button4MotionMask + Button4MotionMask Pointer motion while button 4 down - Button5MotionMask + Button5MotionMask Pointer motion while button 5 down - ButtonMotionMask + ButtonMotionMask Pointer motion while any button down - KeymapStateMask + KeymapStateMask Keyboard state wanted at window entry and focus in - ExposureMask + ExposureMask Any exposure wanted - VisibilityChangeMask + VisibilityChangeMask Any change in visibility wanted - StructureNotifyMask + StructureNotifyMask Any change in window structure wanted - ResizeRedirectMask + ResizeRedirectMask Redirect resize of this window - SubstructureNotifyMask + SubstructureNotifyMask Substructure notification wanted - SubstructureRedirectMask + SubstructureRedirectMask Redirect structure requests on children - FocusChangeMask + FocusChangeMask Any change in input focus wanted - PropertyChangeMask + PropertyChangeMask Any change in property wanted - ColormapChangeMask + ColormapChangeMask Any change in colormap wanted - OwnerGrabButtonMask + OwnerGrabButtonMask Automatic grabs should activate with owner_events set to True @@ -491,9 +491,9 @@ for a window. For some event masks, there is a one-to-one correspondence between the event mask constant and the event type constant. For example, if you pass the event mask -ButtonPressMask, +ButtonPressMask, the X server sends back only -ButtonPress +ButtonPress events. CurrentTime Most events contain a time member, @@ -503,17 +503,17 @@ which is the time at which an event occurred. In other cases, one event mask constant can map to several event type constants. For example, if you pass the event mask -SubstructureNotifyMask, +SubstructureNotifyMask, the X server can send back -CirculateNotify, -ConfigureNotify, -CreateNotify, -DestroyNotify, -GravityNotify, -MapNotify, -ReparentNotify, +CirculateNotify, +ConfigureNotify, +CreateNotify, +DestroyNotify, +GravityNotify, +MapNotify, +ReparentNotify, or -UnmapNotify +UnmapNotify events. @@ -522,12 +522,12 @@ In another case, two event masks can map to one event type. For example, if you pass either -PointerMotionMask +PointerMotionMask or -ButtonMotionMask, +ButtonMotionMask, the X server sends back a -MotionNotify +MotionNotify event. @@ -925,28 +925,28 @@ with these client passed arguments: pointer_mode - GrabModeAsync + GrabModeAsync keyboard_mode - GrabModeAsync + GrabModeAsync owner_events - True, + True, if the client has selected - OwnerGrabButtonMask + OwnerGrabButtonMask on the event window, otherwise - False + False confine_to - None + None cursor - None + None @@ -977,14 +977,14 @@ and EventsMotionNotify This section discusses the processing that occurs for the keyboard events -KeyPress +KeyPress and -KeyRelease +KeyRelease and the pointer events -ButtonPress, -ButtonRelease, +ButtonPress, +ButtonRelease, and -MotionNotify. +MotionNotify. For information about the keyboard event-handling utilities, see chapter 11. @@ -993,30 +993,30 @@ see chapter 11. KeyPress KeyRelease The X server reports -KeyPress +KeyPress or -KeyRelease +KeyRelease events to clients wanting information about keys that logically change state. Note that these events are generated for all keys, even those mapped to modifier bits. ButtonPress ButtonRelease The X server reports -ButtonPress +ButtonPress or -ButtonRelease +ButtonRelease events to clients wanting information about buttons that logically change state. MotionNotify The X server reports -MotionNotify +MotionNotify events to clients wanting information about when the pointer logically moves. The X server generates this event whenever the pointer is moved and the pointer motion begins and ends in the window. The granularity of -MotionNotify +MotionNotify events is not guaranteed, but a client that selects this event type is guaranteed to receive at least one event when the pointer moves and then rests. @@ -1029,23 +1029,23 @@ if device event processing is frozen. To receive -KeyPress, -KeyRelease, -ButtonPress, +KeyPress, +KeyRelease, +ButtonPress, and -ButtonRelease +ButtonRelease events, set -KeyPressMask, -KeyReleaseMask, -ButtonPressMask, +KeyPressMask, +KeyReleaseMask, +ButtonPressMask, and -ButtonReleaseMask +ButtonReleaseMask bits in the event-mask attribute of the window. To receive -MotionNotify +MotionNotify events, set one or more of the following event masks bits in the event-mask attribute of the window. @@ -1053,57 +1053,57 @@ masks bits in the event-mask attribute of the window. Button1MotionMask \ \- -Button5MotionMask +Button5MotionMask The client application receives -MotionNotify +MotionNotify events only when one or more of the specified buttons is pressed. -ButtonMotionMask +ButtonMotionMask The client application receives -MotionNotify +MotionNotify events only when at least one button is pressed. -PointerMotionMask +PointerMotionMask The client application receives -MotionNotify +MotionNotify events independent of the state of the pointer buttons. -PointerMotionHintMask +PointerMotionHintMask If -PointerMotionHintMask +PointerMotionHintMask is selected in combination with one or more of the above masks, the X server is free to send only one -MotionNotify +MotionNotify event (with the is_hint member of the -XPointerMovedEvent +XPointerMovedEvent structure set to -NotifyHint) +NotifyHint) to the client for the event window, until either the key or button state changes, the pointer leaves the event window, or the client calls @@ -1111,9 +1111,9 @@ the pointer leaves the event window, or the client calls or XGetMotionEvents. The server still may send -MotionNotify +MotionNotify events without is_hint set to -NotifyHint. +NotifyHint. @@ -1212,14 +1212,14 @@ relative to the root window's origin at the time of the event. The same_screen member is set to indicate whether the event window is on the same screen as the root window and can be either -True +True or -False. +False. If -True, +True, the event and root windows are on the same screen. If -False, +False, the event and root windows are not on the same screen. @@ -1229,7 +1229,7 @@ the subwindow member of the structure is set to the child of the event window that is the source window or the child of the event window that is an ancestor of the source window. Otherwise, the X server sets the subwindow member to -None. +None. The time member is set to the time when the event was generated and is expressed in milliseconds. @@ -1246,28 +1246,28 @@ The state member is set to indicate the logical state of the pointer buttons and modifier keys just prior to the event, which is the bitwise inclusive OR of one or more of the button or modifier key masks: -Button1Mask, -Button2Mask, -Button3Mask, -Button4Mask, -Button5Mask, -ShiftMask, -LockMask, -ControlMask, -Mod1Mask, -Mod2Mask, -Mod3Mask, -Mod4Mask, +Button1Mask, +Button2Mask, +Button3Mask, +Button4Mask, +Button5Mask, +ShiftMask, +LockMask, +ControlMask, +Mod1Mask, +Mod2Mask, +Mod3Mask, +Mod4Mask, and -Mod5Mask. +Mod5Mask. Each of these structures also has a member that indicates the detail. For the -XKeyPressedEvent +XKeyPressedEvent and -XKeyReleasedEvent +XKeyReleasedEvent structures, this member is called a keycode. It is set to a number that represents a physical key on the keyboard. The keycode is an arbitrary representation for any key on the keyboard @@ -1276,25 +1276,25 @@ The keycode is an arbitrary representation for any key on the keyboard For the -XButtonPressedEvent +XButtonPressedEvent and -XButtonReleasedEvent +XButtonReleasedEvent structures, this member is called button. It represents the pointer button that changed state and can be the -Button1, -Button2, -Button3, -Button4, +Button1, +Button2, +Button3, +Button4, or -Button5 +Button5 value. For the -XPointerMovedEvent +XPointerMovedEvent structure, this member is called is_hint. It can be set to -NotifyNormal +NotifyNormal or -NotifyHint. +NotifyHint. @@ -1313,95 +1313,95 @@ follows: - Button1MotionMask + Button1MotionMask (1L<<8) - Button2MotionMask + Button2MotionMask (1L<<9) - Button3MotionMask + Button3MotionMask (1L<<10) - Button4MotionMask + Button4MotionMask (1L<<11) - Button5MotionMask + Button5MotionMask (1L<<12) - Button1Mask + Button1Mask (1<<8) - Button2Mask + Button2Mask (1<<9) - Button3Mask + Button3Mask (1<<10) - Button4Mask + Button4Mask (1<<11) - Button5Mask + Button5Mask (1<<12) - ShiftMask + ShiftMask (1<<0) - LockMask + LockMask (1<<1) - ControlMask + ControlMask (1<<2) - Mod1Mask + Mod1Mask (1<<3) - Mod2Mask + Mod2Mask (1<<4) - Mod3Mask + Mod3Mask (1<<5) - Mod4Mask + Mod4Mask (1<<6) - Mod5Mask + Mod5Mask (1<<7) - Button1 + Button1 1 - Button2 + Button2 2 - Button3 + Button3 3 - Button4 + Button4 4 - Button5 + Button5 5 @@ -1421,50 +1421,50 @@ follows: EventsLeaveNotify This section describes the processing that occurs for the window crossing events -EnterNotify +EnterNotify and -LeaveNotify. +LeaveNotify. EnterNotify LeaveNotify If a pointer motion or a window hierarchy change causes the pointer to be in a different window than before, the X server reports -EnterNotify +EnterNotify or -LeaveNotify +LeaveNotify events to clients who have selected for these events. All -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events caused by a hierarchy change are generated after any hierarchy event -(UnmapNotify, -MapNotify, -ConfigureNotify, -GravityNotify, -CirculateNotify) +(UnmapNotify, +MapNotify, +ConfigureNotify, +GravityNotify, +CirculateNotify) caused by that change; however, the X protocol does not constrain the ordering of -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events with respect to -FocusOut, -VisibilityNotify, +FocusOut, +VisibilityNotify, and -Expose +Expose events. This contrasts with -MotionNotify +MotionNotify events, which are also generated when the pointer moves but only when the pointer motion begins and ends in a single window. An -EnterNotify +EnterNotify or -LeaveNotify +LeaveNotify event also can be generated when some client application calls XGrabPointer and @@ -1473,13 +1473,13 @@ and To receive -EnterNotify +EnterNotify or -LeaveNotify +LeaveNotify events, set the -EnterWindowMask +EnterWindowMask or -LeaveWindowMask +LeaveWindowMask bits of the event-mask attribute of the window. @@ -1523,9 +1523,9 @@ typedef XCrossingEvent XLeaveWindowEvent; The window member is set to the window on which the -EnterNotify +EnterNotify or -LeaveNotify +LeaveNotify event was generated and is referred to as the event window. This is the window used by the X server to report the event, and is relative to the root @@ -1536,17 +1536,17 @@ on which the event occurred. For a -LeaveNotify +LeaveNotify event, if a child of the event window contains the initial position of the pointer, the subwindow component is set to that child. Otherwise, the X server sets the subwindow member to -None. +None. For an -EnterNotify +EnterNotify event, if a child of the event window contains the final pointer position, the subwindow component is set to that child or -None. +None. @@ -1567,14 +1567,14 @@ root window's origin at the time of the event. The same_screen member is set to indicate whether the event window is on the same screen as the root window and can be either -True +True or -False. +False. If -True, +True, the event and root windows are on the same screen. If -False, +False, the event and root windows are not on the same screen. @@ -1582,14 +1582,14 @@ the event and root windows are not on the same screen. The focus member is set to indicate whether the event window is the focus window or an inferior of the focus window. The X server can set this member to either -True +True or -False. +False. If -True, +True, the event window is the focus window or an inferior of the focus window. If -False, +False, the event window is not the focus window or an inferior of the focus window. @@ -1599,19 +1599,19 @@ modifier keys just prior to the event. The X server can set this member to the bitwise inclusive OR of one or more of the button or modifier key masks: -Button1Mask, -Button2Mask, -Button3Mask, -Button4Mask, -Button5Mask, -ShiftMask, -LockMask, -ControlMask, -Mod1Mask, -Mod2Mask, -Mod3Mask, -Mod4Mask, -Mod5Mask. +Button1Mask, +Button2Mask, +Button3Mask, +Button4Mask, +Button5Mask, +ShiftMask, +LockMask, +ControlMask, +Mod1Mask, +Mod2Mask, +Mod3Mask, +Mod4Mask, +Mod5Mask. @@ -1619,20 +1619,20 @@ The mode member is set to indicate whether the events are normal events, pseudo-motion events when a grab activates, or pseudo-motion events when a grab deactivates. The X server can set this member to -NotifyNormal, -NotifyGrab, +NotifyNormal, +NotifyGrab, or -NotifyUngrab. +NotifyUngrab. The detail member is set to indicate the notify detail and can be -NotifyAncestor, -NotifyVirtual, -NotifyInferior, -NotifyNonlinear, +NotifyAncestor, +NotifyVirtual, +NotifyInferior, +NotifyNonlinear, or -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. Normal Entry/Exit Events @@ -1641,17 +1641,17 @@ or -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events are generated when the pointer moves from one window to another window. Normal events are identified by -XEnterWindowEvent +XEnterWindowEvent or -XLeaveWindowEvent +XLeaveWindowEvent structures whose mode member is set to -NotifyNormal. +NotifyNormal. @@ -1664,32 +1664,32 @@ the X server does the following: It generates a -LeaveNotify +LeaveNotify event on window A, with the detail member of the -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyAncestor. +NotifyAncestor. It generates a -LeaveNotify +LeaveNotify event on each window between window A and window B, exclusive, with the detail member of each -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyVirtual. +NotifyVirtual. It generates an -EnterNotify +EnterNotify event on window B, with the detail member of the -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyInferior. +NotifyInferior. @@ -1703,33 +1703,33 @@ the X server does the following: It generates a -LeaveNotify +LeaveNotify event on window A, with the detail member of the -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyInferior. +NotifyInferior. It generates an -EnterNotify +EnterNotify event on each window between window A and window B, exclusive, with the detail member of each -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyVirtual. +NotifyVirtual. It generates an -EnterNotify +EnterNotify event on window B, with the detail member of the -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyAncestor. +NotifyAncestor. @@ -1744,44 +1744,44 @@ the X server does the following: It generates a -LeaveNotify +LeaveNotify event on window A, with the detail member of the -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyNonlinear. +NotifyNonlinear. It generates a -LeaveNotify +LeaveNotify event on each window between window A and window C, exclusive, with the detail member of each -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates an -EnterNotify +EnterNotify event on each window between window C and window B, exclusive, with the detail member of each -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates an -EnterNotify +EnterNotify event on window B, with the detail member of the -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyNonlinear. +NotifyNonlinear. @@ -1795,46 +1795,46 @@ the X server does the following: It generates a -LeaveNotify +LeaveNotify event on window A, with the detail member of the -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyNonlinear. +NotifyNonlinear. If window A is not a root window, it generates a -LeaveNotify +LeaveNotify event on each window above window A up to and including its root, with the detail member of each -XLeaveWindowEvent +XLeaveWindowEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. If window B is not a root window, it generates an -EnterNotify +EnterNotify event on each window from window B's root down to but not including window B, with the detail member of each -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates an -EnterNotify +EnterNotify event on window B, with the detail member of the -XEnterWindowEvent +XEnterWindowEvent structure set to -NotifyNonlinear. +NotifyNonlinear. @@ -1849,24 +1849,24 @@ structure set to Pseudo-motion mode -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events are generated when a pointer grab activates or deactivates. Events in which the pointer grab activates are identified by -XEnterWindowEvent +XEnterWindowEvent or -XLeaveWindowEvent +XLeaveWindowEvent structures whose mode member is set to -NotifyGrab. +NotifyGrab. Events in which the pointer grab deactivates are identified by -XEnterWindowEvent +XEnterWindowEvent or -XLeaveWindowEvent +XLeaveWindowEvent structures whose mode member is set to -NotifyUngrab +NotifyUngrab (see XGrabPointer). @@ -1875,7 +1875,7 @@ structures whose mode member is set to When a pointer grab activates after any initial warp into a confine_to window and before generating any actual -ButtonPress +ButtonPress event that activates the grab, G is the grab_window for the grab, and P is the window the pointer is in, @@ -1886,16 +1886,16 @@ the X server does the following: It generates -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events (see section 10.6.1) with the mode members of the -XEnterWindowEvent +XEnterWindowEvent and -XLeaveWindowEvent +XLeaveWindowEvent structures set to -NotifyGrab. +NotifyGrab. These events are generated as if the pointer were to suddenly warp from its current position in P to some position in G. @@ -1907,7 +1907,7 @@ as both the initial and final positions for the events. When a pointer grab deactivates after generating any actual -ButtonRelease +ButtonRelease event that deactivates the grab, G is the grab_window for the grab, and P is the window the pointer is in, @@ -1918,16 +1918,16 @@ the X server does the following: It generates -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events (see section 10.6.1) with the mode members of the -XEnterWindowEvent +XEnterWindowEvent and -XLeaveWindowEvent +XLeaveWindowEvent structures set to -NotifyUngrab. +NotifyUngrab. These events are generated as if the pointer were to suddenly warp from some position in G to its current position in P. However, the pointer does not warp, and the X server uses the @@ -1949,15 +1949,15 @@ initial and final positions for the events. EventsFocusIn EventsFocusOut This section describes the processing that occurs for the input focus events -FocusIn +FocusIn and -FocusOut. +FocusOut. FocusIn FocusOut The X server can report -FocusIn +FocusIn or -FocusOut +FocusOut events to clients wanting information about when the input focus changes. The keyboard is always attached to some window (typically, the root window or a top-level window), @@ -1970,11 +1970,11 @@ to control highlighting of areas on the screen. To receive -FocusIn +FocusIn or -FocusOut +FocusOut events, set the -FocusChangeMask +FocusChangeMask bit in the event-mask attribute of the window. @@ -2010,9 +2010,9 @@ typedef XFocusChangeEvent XFocusOutEvent; The window member is set to the window on which the -FocusIn +FocusIn or -FocusOut +FocusOut event was generated. This is the window used by the X server to report the event. The mode member is set to indicate whether the focus events @@ -2021,42 +2021,42 @@ focus events while grabbed, focus events when a grab activates, or focus events when a grab deactivates. The X server can set the mode member to -NotifyNormal, -NotifyWhileGrabbed, -NotifyGrab, +NotifyNormal, +NotifyWhileGrabbed, +NotifyGrab, or -NotifyUngrab. +NotifyUngrab. All -FocusOut +FocusOut events caused by a window unmap are generated after any -UnmapNotify +UnmapNotify event; however, the X protocol does not constrain the ordering of -FocusOut +FocusOut events with respect to generated -EnterNotify, -LeaveNotify, -VisibilityNotify, +EnterNotify, +LeaveNotify, +VisibilityNotify, and -Expose +Expose events. Depending on the event mode, the detail member is set to indicate the notify detail and can be -NotifyAncestor, -NotifyVirtual, -NotifyInferior, -NotifyNonlinear, -NotifyNonlinearVirtual, -NotifyPointer, -NotifyPointerRoot, +NotifyAncestor, +NotifyVirtual, +NotifyInferior, +NotifyNonlinear, +NotifyNonlinearVirtual, +NotifyPointer, +NotifyPointerRoot, or -NotifyDetailNone. +NotifyDetailNone. Normal Focus Events and Focus Events While Grabbed @@ -2066,17 +2066,17 @@ or Normal focus events are identified by -XFocusInEvent +XFocusInEvent or -XFocusOutEvent +XFocusOutEvent structures whose mode member is set to -NotifyNormal. +NotifyNormal. Focus events while grabbed are identified by -XFocusInEvent +XFocusInEvent or -XFocusOutEvent +XFocusOutEvent structures whose mode member is set to -NotifyWhileGrabbed. +NotifyWhileGrabbed. The X server processes normal focus and focus events while grabbed according to the following: @@ -2092,32 +2092,32 @@ the X server does the following: It generates a -FocusOut +FocusOut event on window A, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyAncestor. +NotifyAncestor. It generates a -FocusOut +FocusOut event on each window between window A and window B, exclusive, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyVirtual. +NotifyVirtual. It generates a -FocusIn +FocusIn event on window B, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyInferior. +NotifyInferior. @@ -2125,12 +2125,12 @@ structure set to If window P is an inferior of window B but window P is not window A or an inferior or ancestor of window A, it generates a -FocusIn +FocusIn event on each window below window B, down to and including window P, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyPointer. +NotifyPointer. @@ -2147,44 +2147,44 @@ the X server does the following: If window P is an inferior of window A but P is not an inferior of window B or an ancestor of B, it generates a -FocusOut +FocusOut event on each window from window P up to but not including window A, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointer. +NotifyPointer. It generates a -FocusOut +FocusOut event on window A, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyInferior. +NotifyInferior. It generates a -FocusIn +FocusIn event on each window between window A and window B, exclusive, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyVirtual. +NotifyVirtual. It generates a -FocusIn +FocusIn event on window B, with the detail member of the -XFocusInEvent +XFocusInEvent structure set to -NotifyAncestor. +NotifyAncestor. @@ -2201,66 +2201,66 @@ the X server does the following: If window P is an inferior of window A, it generates a -FocusOut +FocusOut event on each window from window P up to but not including window A, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointer. +NotifyPointer. It generates a -FocusOut +FocusOut event on window A, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyNonlinear. +NotifyNonlinear. It generates a -FocusOut +FocusOut event on each window between window A and window C, exclusive, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates a -FocusIn +FocusIn event on each window between C and B, exclusive, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates a -FocusIn +FocusIn event on window B, with the detail member of the -XFocusInEvent +XFocusInEvent structure set to -NotifyNonlinear. +NotifyNonlinear. If window P is an inferior of window B, it generates a -FocusIn +FocusIn event on each window below window B down to and including window P, with the detail member of the -XFocusInEvent +XFocusInEvent structure set to -NotifyPointer. +NotifyPointer. @@ -2275,78 +2275,78 @@ the X server does the following: If window P is an inferior of window A, it generates a -FocusOut +FocusOut event on each window from window P up to but not including window A, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointer. +NotifyPointer. It generates a -FocusOut +FocusOut event on window A, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyNonlinear. +NotifyNonlinear. If window A is not a root window, it generates a -FocusOut +FocusOut event on each window above window A up to and including its root, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. If window B is not a root window, it generates a -FocusIn +FocusIn event on each window from window B's root down to but not including window B, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates a -FocusIn +FocusIn event on window B, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyNonlinear. +NotifyNonlinear. If window P is an inferior of window B, it generates a -FocusIn +FocusIn event on each window below window B down to and including window P, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyPointer. +NotifyPointer. When the focus moves from window A to -PointerRoot +PointerRoot (events sent to the window under the pointer) or -None +None (discard), and the pointer is in window P, the X server does the following: @@ -2355,69 +2355,69 @@ the X server does the following: If window P is an inferior of window A, it generates a -FocusOut +FocusOut event on each window from window P up to but not including window A, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointer. +NotifyPointer. It generates a -FocusOut +FocusOut event on window A, with the detail member of the -XFocusOutEvent +XFocusOutEvent structure set to -NotifyNonlinear. +NotifyNonlinear. If window A is not a root window, it generates a -FocusOut +FocusOut event on each window above window A up to and including its root, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates a -FocusIn +FocusIn event on the root window of all screens, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyPointerRoot +NotifyPointerRoot (or -NotifyDetailNone). +NotifyDetailNone). If the new focus is -PointerRoot, +PointerRoot, it generates a -FocusIn +FocusIn event on each window from window P's root down to and including window P, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyPointer. +NotifyPointer. When the focus moves from -PointerRoot +PointerRoot (events sent to the window under the pointer) or -None +None to window A, and the pointer is in window P, the X server does the following: @@ -2426,71 +2426,71 @@ the X server does the following: If the old focus is -PointerRoot, +PointerRoot, it generates a -FocusOut +FocusOut event on each window from window P up to and including window P's root, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointer. +NotifyPointer. It generates a -FocusOut +FocusOut event on all root windows, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointerRoot +NotifyPointerRoot (or -NotifyDetailNone). +NotifyDetailNone). If window A is not a root window, it generates a -FocusIn +FocusIn event on each window from window A's root down to but not including window A, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyNonlinearVirtual. +NotifyNonlinearVirtual. It generates a -FocusIn +FocusIn event on window A, with the detail member of the -XFocusInEvent +XFocusInEvent structure set to -NotifyNonlinear. +NotifyNonlinear. If window P is an inferior of window A, it generates a -FocusIn +FocusIn event on each window below window A down to and including window P, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyPointer. +NotifyPointer. When the focus moves from -PointerRoot +PointerRoot (events sent to the window under the pointer) to -None +None (or vice versa), and the pointer is in window P, the X server does the following: @@ -2499,53 +2499,53 @@ the X server does the following: If the old focus is -PointerRoot, +PointerRoot, it generates a -FocusOut +FocusOut event on each window from window P up to and including window P's root, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to -NotifyPointer. +NotifyPointer. It generates a -FocusOut +FocusOut event on all root windows, with the detail member of each -XFocusOutEvent +XFocusOutEvent structure set to either -NotifyPointerRoot +NotifyPointerRoot or -NotifyDetailNone. +NotifyDetailNone. It generates a -FocusIn +FocusIn event on all root windows, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyDetailNone +NotifyDetailNone or -NotifyPointerRoot. +NotifyPointerRoot. If the new focus is -PointerRoot, +PointerRoot, it generates a -FocusIn +FocusIn event on each window from window P's root down to and including window P, with the detail member of each -XFocusInEvent +XFocusInEvent structure set to -NotifyPointer. +NotifyPointer. @@ -2561,18 +2561,18 @@ structure set to Focus events in which the keyboard grab activates are identified by -XFocusInEvent +XFocusInEvent or -XFocusOutEvent +XFocusOutEvent structures whose mode member is set to -NotifyGrab. +NotifyGrab. Focus events in which the keyboard grab deactivates are identified by -XFocusInEvent +XFocusInEvent or -XFocusOutEvent +XFocusOutEvent structures whose mode member is set to -NotifyUngrab +NotifyUngrab (see XGrabKeyboard). @@ -2580,7 +2580,7 @@ structures whose mode member is set to When a keyboard grab activates before generating any actual -KeyPress +KeyPress event that activates the grab, G is the grab_window, and F is the current focus, the X server does the following: @@ -2590,15 +2590,15 @@ the X server does the following: It generates -FocusIn +FocusIn and -FocusOut +FocusOut events, with the mode members of the -XFocusInEvent +XFocusInEvent and -XFocusOutEvent +XFocusOutEvent structures set to -NotifyGrab. +NotifyGrab. These events are generated as if the focus were to change from F to G. @@ -2608,7 +2608,7 @@ F to G. When a keyboard grab deactivates after generating any actual -KeyRelease +KeyRelease event that deactivates the grab, G is the grab_window, and F is the current focus, the X server does the following: @@ -2618,15 +2618,15 @@ the X server does the following: It generates -FocusIn +FocusIn and -FocusOut +FocusOut events, with the mode members of the -XFocusInEvent +XFocusInEvent and -XFocusOutEvent +XFocusOutEvent structures set to -NotifyUngrab. +NotifyUngrab. These events are generated as if the focus were to change from G to F. @@ -2646,20 +2646,20 @@ G to F. EventsKeymapNotify KeymapNotify The X server can report -KeymapNotify +KeymapNotify events to clients that want information about changes in their keyboard state. To receive -KeymapNotify +KeymapNotify events, set the -KeymapStateMask +KeymapStateMask bit in the event-mask attribute of the window. The X server generates this event immediately after every -EnterNotify +EnterNotify and -FocusIn +FocusIn event. @@ -2714,7 +2714,7 @@ restoring the contents of an exposed window region. (An exposed window region describes a formerly obscured window whose region becomes visible.) Therefore, the X server sends -Expose +Expose events describing the window and the region of the window that has been exposed. A naive client application usually redraws the entire window. A more sophisticated client application redraws only the exposed region. @@ -2729,43 +2729,43 @@ A more sophisticated client application redraws only the exposed region. EventsExpose Expose The X server can report -Expose +Expose events to clients wanting information about when the contents of window regions have been lost. The circumstances in which the X server generates -Expose +Expose events are not as definite as those for other events. However, the X server never generates -Expose +Expose events on windows whose class you specified as -InputOnly. +InputOnly. The X server can generate -Expose +Expose events when no valid contents are available for regions of a window and either the regions are visible, the regions are viewable and the server is (perhaps newly) maintaining backing store on the window, or the window is not viewable but the server is (perhaps newly) honoring the window's backing-store attribute of -Always +Always or -WhenMapped. +WhenMapped. The regions decompose into an (arbitrary) set of rectangles, and an -Expose +Expose event is generated for each rectangle. For any given window, the X server guarantees to report contiguously all of the regions exposed by some action that causes -Expose +Expose events, such as raising a window. To receive -Expose +Expose events, set the -ExposureMask +ExposureMask bit in the event-mask attribute of the window. @@ -2799,17 +2799,17 @@ The x and y members are set to the coordinates relative to the window's origin and indicate the upper-left corner of the rectangle. The width and height members are set to the size (extent) of the rectangle. The count member is set to the number of -Expose +Expose events that are to follow. If count is zero, no more -Expose +Expose events follow for this window. However, if count is nonzero, at least that number of -Expose +Expose events (and possibly more) follow for this window. Simple applications that do not want to optimize redisplay by distinguishing between subareas of its window can just ignore all -Expose +Expose events with nonzero counts and perform full redisplays on events with zero counts. @@ -2825,7 +2825,7 @@ on events with zero counts. EventsNoExpose GraphicsExpose The X server can report -GraphicsExpose +GraphicsExpose events to clients wanting information about when a destination region could not be computed during certain graphics requests: XCopyArea @@ -2842,29 +2842,29 @@ drawable). NoExpose The X server generates a -NoExpose +NoExpose event whenever a graphics request that might produce a -GraphicsExpose +GraphicsExpose event does not produce any. In other words, the client is really asking for a -GraphicsExpose +GraphicsExpose event but instead receives a -NoExpose +NoExpose event. To receive -GraphicsExpose +GraphicsExpose or -NoExpose +NoExpose events, you must first set the graphics-exposure attribute of the graphics context to -True. +True. You also can set the graphics-expose attribute when creating a graphics context using -XCreateGC +XCreateGC or by calling XSetGraphicsExposures. @@ -2918,21 +2918,21 @@ The drawable member is set to the drawable of the destination region on which the graphics request was to be performed. The major_code member is set to the graphics request initiated by the client and can be either -X_CopyArea +X_CopyArea or -X_CopyPlane. +X_CopyPlane. If it is -X_CopyArea, +X_CopyArea, a call to XCopyArea initiated the request. If it is -X_CopyPlane, +X_CopyPlane, a call to XCopyPlane initiated the request. These constants are defined in - +<X11/Xproto.h>. The minor_code member, like the major_code member, indicates which graphics request was initiated by @@ -2944,19 +2944,19 @@ although it may be used by an extension. The -XGraphicsExposeEvent +XGraphicsExposeEvent structure has these additional members: x, y, width, height, and count. The x and y members are set to the coordinates relative to the drawable's origin and indicate the upper-left corner of the rectangle. The width and height members are set to the size (extent) of the rectangle. The count member is set to the number of -GraphicsExpose +GraphicsExpose events to follow. If count is zero, no more -GraphicsExpose +GraphicsExpose events follow for this window. However, if count is nonzero, at least that number of -GraphicsExpose +GraphicsExpose events (and possibly more) are to follow for this window. @@ -2973,61 +2973,61 @@ The following sections discuss: -CirculateNotify +CirculateNotify events -ConfigureNotify +ConfigureNotify events -CreateNotify +CreateNotify events -DestroyNotify +DestroyNotify events -GravityNotify +GravityNotify events -MapNotify +MapNotify events -MappingNotify +MappingNotify events -ReparentNotify +ReparentNotify events -UnmapNotify +UnmapNotify events -VisibilityNotify +VisibilityNotify events @@ -3043,7 +3043,7 @@ events EventsCirculateNotify CirculateNotify The X server can report -CirculateNotify +CirculateNotify events to clients wanting information about when a window changes its position in the stack. The X server generates this event type whenever a window is actually restacked @@ -3056,12 +3056,12 @@ or To receive -CirculateNotify +CirculateNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the parent window (in which case, circulating any child generates an event). @@ -3092,21 +3092,21 @@ typedef struct { The event member is set either to the restacked window or to its parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. The window member is set to the window that was restacked. The place member is set to the window's position after the restack occurs and is either -PlaceOnTop +PlaceOnTop or -PlaceOnBottom. +PlaceOnBottom. If it is -PlaceOnTop, +PlaceOnTop, the window is now on top of all siblings. If it is -PlaceOnBottom, +PlaceOnBottom, the window is now below all siblings. @@ -3120,7 +3120,7 @@ the window is now below all siblings. EventsConfigureNotify ConfigureNotify The X server can report -ConfigureNotify +ConfigureNotify events to clients wanting information about actual changes to a window's state, such as size, position, border, and stacking order. The X server generates this event type whenever one of the following configure @@ -3178,11 +3178,11 @@ A window's border width is changed by calling To receive -ConfigureNotify +ConfigureNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the parent window (in which case, configuring any child generates an event). @@ -3215,9 +3215,9 @@ typedef struct { The event member is set either to the reconfigured window or to its parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. The window member is set to the window whose size, position, border, and/or stacking @@ -3237,7 +3237,7 @@ The border_width member is set to the width of the window's border, in pixels. The above member is set to the sibling window and is used for stacking operations. If the X server sets this member to -None, +None, the window whose state was changed is on the bottom of the stack with respect to sibling windows. However, if this member is set to a sibling window, @@ -3250,7 +3250,7 @@ window. Window manager clients normally should ignore this window if the override_redirect member is -True. +True. @@ -3263,7 +3263,7 @@ is EventsCreateNotify CreateNotify The X server can report -CreateNotify +CreateNotify events to clients wanting information about creation of windows. The X server generates this event whenever a client application creates a window by calling @@ -3274,9 +3274,9 @@ or To receive -CreateNotify +CreateNotify events, set the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the window. Creating any children then generates an event. @@ -3320,7 +3320,7 @@ The override_redirect member is set to the override-redirect attribute of the window. Window manager clients normally should ignore this window if the override_redirect member is -True. +True. @@ -3333,7 +3333,7 @@ if the override_redirect member is EventsDestroyNotify DestroyNotify The X server can report -DestroyNotify +DestroyNotify events to clients wanting information about which windows are destroyed. The X server generates this event whenever a client application destroys a window by calling @@ -3344,9 +3344,9 @@ or The ordering of the -DestroyNotify +DestroyNotify events is such that for any given window, -DestroyNotify +DestroyNotify is generated on all inferiors of the window before being generated on the window itself. The X protocol does not constrain the ordering among @@ -3355,11 +3355,11 @@ siblings and across subhierarchies. To receive -DestroyNotify +DestroyNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the parent window (in which case, destroying any child generates an event). @@ -3389,9 +3389,9 @@ typedef struct { The event member is set either to the destroyed window or to its parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. The window member is set to the window that is destroyed. @@ -3406,7 +3406,7 @@ The window member is set to the window that is destroyed. EventsGravityNotify GravityNotify The X server can report -GravityNotify +GravityNotify events to clients wanting information about when a window is moved because of a change in the size of its parent. The X server generates this event whenever a client @@ -3419,11 +3419,11 @@ or To receive -GravityNotify +GravityNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the parent window (in which case, any child that is moved because its parent has been resized generates an event). @@ -3455,9 +3455,9 @@ typedef struct { The event member is set either to the window that was moved or to its parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. The window member is set to the child window that was moved. The x and y members are set to the coordinates relative to the @@ -3476,7 +3476,7 @@ window. EventsMapNotify MapNotify The X server can report -MapNotify +MapNotify events to clients wanting information about which windows are mapped. The X server generates this event type whenever a client application changes the window's state from unmapped to mapped by calling @@ -3489,11 +3489,11 @@ or as a result of save-set processing. To receive -MapNotify +MapNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the parent window (in which case, mapping any child generates an event). @@ -3524,16 +3524,16 @@ typedef struct { The event member is set either to the window that was mapped or to its parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. The window member is set to the window that was mapped. The override_redirect member is set to the override-redirect attribute of the window. Window manager clients normally should ignore this window if the override-redirect attribute is -True, +True, because these events usually are generated from pop-ups, which override structure control. @@ -3548,7 +3548,7 @@ which override structure control. EventsMappingNotify MappingNotify The X server reports -MappingNotify +MappingNotify events to all clients. There is no mechanism to express disinterest in this event. The X server generates this event type whenever a client application @@ -3603,22 +3603,22 @@ typedef struct { The request member is set to indicate the kind of mapping change that occurred and can be -MappingModifier, -MappingKeyboard, +MappingModifier, +MappingKeyboard, or -MappingPointer. +MappingPointer. If it is -MappingModifier, +MappingModifier, the modifier mapping was changed. If it is -MappingKeyboard, +MappingKeyboard, the keyboard mapping was changed. If it is -MappingPointer, +MappingPointer, the pointer button mapping was changed. The first_keycode and count members are set only if the request member was set to -MappingKeyboard. +MappingKeyboard. The number in first_keycode represents the first number in the range of the altered mapping, and count represents the number of keycodes altered. @@ -3640,21 +3640,21 @@ you should call EventsReparentNotify ReparentNotify The X server can report -ReparentNotify +ReparentNotify events to clients wanting information about changing a window's parent. The X server generates this event whenever a client application calls -XReparentWindow +XReparentWindow and the window is actually reparented. To receive -ReparentNotify +ReparentNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of either the old or the new parent window (in which case, reparenting any child generates an event). @@ -3687,9 +3687,9 @@ typedef struct { The event member is set either to the reparented window or to the old or the new parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. The window member is set to the window that was reparented. The parent member is set to the new parent window. @@ -3700,7 +3700,7 @@ The override_redirect member is set to the override-redirect attribute of the window specified by the window member. Window manager clients normally should ignore this window if the override_redirect member is -True. +True. @@ -3713,7 +3713,7 @@ if the override_redirect member is EventsUnmapNotify UnmapNotify The X server can report -UnmapNotify +UnmapNotify events to clients wanting information about which windows are unmapped. The X server generates this event type whenever a client application changes the window's state from mapped to unmapped. @@ -3721,11 +3721,11 @@ window's state from mapped to unmapped. To receive -UnmapNotify +UnmapNotify events, set the -StructureNotifyMask +StructureNotifyMask bit in the event-mask attribute of the window or the -SubstructureNotifyMask +SubstructureNotifyMask bit in the event-mask attribute of the parent window (in which case, unmapping any child window generates an event). @@ -3756,17 +3756,17 @@ typedef struct { The event member is set either to the unmapped window or to its parent, depending on whether -StructureNotify +StructureNotify or -SubstructureNotify +SubstructureNotify was selected. This is the window used by the X server to report the event. The window member is set to the window that was unmapped. The from_configure member is set to -True +True if the event was generated as a result of a resizing of the window's parent when the window itself had a win_gravity of -UnmapGravity. +UnmapGravity. @@ -3779,50 +3779,50 @@ the window itself had a win_gravity of EventsVisibilityNotify VisibilityNotify The X server can report -VisibilityNotify +VisibilityNotify events to clients wanting any change in the visibility of the specified window. A region of a window is visible if someone looking at the screen can actually see it. The X server generates this event whenever the visibility changes state. However, this event is never generated for windows whose class is -InputOnly. +InputOnly. All -VisibilityNotify +VisibilityNotify events caused by a hierarchy change are generated after any hierarchy event -(UnmapNotify, -MapNotify, -ConfigureNotify, -GravityNotify, -CirculateNotify) +(UnmapNotify, +MapNotify, +ConfigureNotify, +GravityNotify, +CirculateNotify) caused by that change. Any -VisibilityNotify +VisibilityNotify event on a given window is generated before any -Expose +Expose events on that window, but it is not required that all -VisibilityNotify +VisibilityNotify events on all windows be generated before all -Expose +Expose events on all windows. The X protocol does not constrain the ordering of -VisibilityNotify +VisibilityNotify events with respect to -FocusOut, -EnterNotify, +FocusOut, +EnterNotify, and -LeaveNotify +LeaveNotify events. To receive -VisibilityNotify +VisibilityNotify events, set the -VisibilityChangeMask +VisibilityChangeMask bit in the event-mask attribute of the window. @@ -3851,13 +3851,13 @@ typedef struct { The window member is set to the window whose visibility state changes. The state member is set to the state of the window's visibility and can be -VisibilityUnobscured, -VisibilityPartiallyObscured, +VisibilityUnobscured, +VisibilityPartiallyObscured, or -VisibilityFullyObscured. +VisibilityFullyObscured. The X server ignores all of a window's subwindows when determining the visibility state of the window and processes -VisibilityNotify +VisibilityNotify events according to the following: @@ -3866,9 +3866,9 @@ events according to the following: When the window changes state from partially obscured, fully obscured, or not viewable to viewable and completely unobscured, the X server generates the event with the state member of the -XVisibilityEvent +XVisibilityEvent structure set to -VisibilityUnobscured. +VisibilityUnobscured. @@ -3876,9 +3876,9 @@ structure set to When the window changes state from viewable and completely unobscured or not viewable to viewable and partially obscured, the X server generates the event with the state member of the -XVisibilityEvent +XVisibilityEvent structure set to -VisibilityPartiallyObscured. +VisibilityPartiallyObscured. @@ -3887,9 +3887,9 @@ When the window changes state from viewable and completely unobscured, viewable and partially obscured, or not viewable to viewable and fully obscured, the X server generates the event with the state member of the -XVisibilityEvent +XVisibilityEvent structure set to -VisibilityFullyObscured. +VisibilityFullyObscured. @@ -3907,25 +3907,25 @@ This section discusses: -CirculateRequest +CirculateRequest events -ConfigureRequest +ConfigureRequest events -MapRequest +MapRequest events -ResizeRequest +ResizeRequest events @@ -3940,7 +3940,7 @@ events EventsCirculateRequest CirculateRequest The X server can report -CirculateRequest +CirculateRequest events to clients wanting information about when another client initiates a circulate window request on a specified window. @@ -3955,9 +3955,9 @@ or To receive -CirculateRequest +CirculateRequest events, set the -SubstructureRedirectMask +SubstructureRedirectMask in the event-mask attribute of the window. Then, in the future, the circulate window request for the specified window is not executed, @@ -3966,9 +3966,9 @@ For example, suppose a client application calls XCirculateSubwindowsUp to raise a subwindow to the top of the stack. If you had selected -SubstructureRedirectMask +SubstructureRedirectMask on the window, the X server reports to you a -CirculateRequest +CirculateRequest event and does not raise the subwindow to the top of the stack. @@ -4000,14 +4000,14 @@ The parent member is set to the parent window. The window member is set to the subwindow to be restacked. The place member is set to what the new position in the stacking order should be and is either -PlaceOnTop +PlaceOnTop or -PlaceOnBottom. +PlaceOnBottom. If it is -PlaceOnTop, +PlaceOnTop, the subwindow should be on top of all siblings. If it is -PlaceOnBottom, +PlaceOnBottom, the subwindow should be below all siblings. @@ -4021,7 +4021,7 @@ the subwindow should be below all siblings. EventsConfigureRequest ConfigureRequest The X server can report -ConfigureRequest +ConfigureRequest events to clients wanting information about when a different client initiates a configure window request on any child of a specified window. The configure window request attempts to @@ -4042,24 +4042,24 @@ or To receive -ConfigureRequest +ConfigureRequest events, set the -SubstructureRedirectMask +SubstructureRedirectMask bit in the event-mask attribute of the window. -ConfigureRequest +ConfigureRequest events are generated when a -ConfigureWindow +ConfigureWindow protocol request is issued on a child window by another client. For example, suppose a client application calls XLowerWindow to lower a window. If you had selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent window and if the override-redirect attribute of the window is set to -False, +False, the X server reports a -ConfigureRequest +ConfigureRequest event to you and does not lower the specified window. @@ -4096,15 +4096,15 @@ The parent member is set to the parent window. The window member is set to the window whose size, position, border width, and/or stacking order is to be reconfigured. The value_mask member indicates which components were specified in the -ConfigureWindow +ConfigureWindow protocol request. The corresponding values are reported as given in the request. The remaining values are filled in from the current geometry of the window, except in the case of above (sibling) and detail (stack-mode), which are reported as -None +None and -Above, +Above, respectively, if they are not given in the request. @@ -4118,14 +4118,14 @@ respectively, if they are not given in the request. EventsMapRequest MapRequest The X server can report -MapRequest +MapRequest events to clients wanting information about a different client's desire to map windows. A window is considered mapped when a map window request completes. The X server generates this event whenever a different client initiates a map window request on an unmapped window whose override_redirect member is set to -False. +False. Clients initiate map window requests by calling XMapWindow, XMapRaised, @@ -4135,24 +4135,24 @@ or To receive -MapRequest +MapRequest events, set the -SubstructureRedirectMask +SubstructureRedirectMask bit in the event-mask attribute of the window. This means another client's attempts to map a child window by calling one of the map window request functions is intercepted, and you are sent a -MapRequest +MapRequest instead. For example, suppose a client application calls XMapWindow to map a window. If you (usually a window manager) had selected -SubstructureRedirectMask +SubstructureRedirectMask on the parent window and if the override-redirect attribute of the window is set to -False, +False, the X server reports a -MapRequest +MapRequest event to you and does not map the specified window. Thus, this event gives your window manager client the ability @@ -4196,7 +4196,7 @@ The window member is set to the window to be mapped. EventsResizeRequest ResizeRequest The X server can report -ResizeRequest +ResizeRequest events to clients wanting information about another client's attempts to change the size of a window. The X server generates this event whenever some other client attempts to change @@ -4209,9 +4209,9 @@ or To receive -ResizeRequest +ResizeRequest events, set the -ResizeRedirect +ResizeRedirect bit in the event-mask attribute of the window. Any attempts to change the size by other clients are then redirected. @@ -4256,7 +4256,7 @@ excluding the border. EventsColormapNotify ColormapNotify The X server can report -ColormapNotify +ColormapNotify events to clients wanting information about when the colormap changes and when a colormap is installed or uninstalled. The X server generates this event type whenever a client application: @@ -4265,13 +4265,13 @@ The X server generates this event type whenever a client application: Changes the colormap member of the -XSetWindowAttributes +XSetWindowAttributes structure by calling XChangeWindowAttributes, XFreeColormap, or -XSetWindowColormap +XSetWindowColormap @@ -4279,16 +4279,16 @@ or Installs or uninstalls the colormap by calling XInstallColormap or -XUninstallColormap +XUninstallColormap To receive -ColormapNotify +ColormapNotify events, set the -ColormapChangeMask +ColormapChangeMask bit in the event-mask attribute of the window. @@ -4324,24 +4324,24 @@ the colormap member is set to the colormap associated with the window. For a colormap that is changed by a call to XFreeColormap, the colormap member is set to -None. +None. The new member is set to indicate whether the colormap for the specified window was changed or installed or uninstalled and can be -True +True or -False. +False. If it is -True, +True, the colormap was changed. If it is -False, +False, the colormap was installed or uninstalled. The state member is always set to indicate whether the colormap is installed or uninstalled and can be -ColormapInstalled +ColormapInstalled or -ColormapUninstalled. +ColormapUninstalled. @@ -4356,31 +4356,31 @@ This section discusses: -ClientMessage +ClientMessage events -PropertyNotify +PropertyNotify events -SelectionClear +SelectionClear events -SelectionNotify +SelectionNotify events -SelectionRequest +SelectionRequest events @@ -4395,7 +4395,7 @@ events EventsClientMessage ClientMessage The X server generates -ClientMessage +ClientMessage events only when a client calls the function XSendEvent. @@ -4451,16 +4451,16 @@ message_type, or data members. EventsPropertyNotify PropertyNotify The X server can report -PropertyNotify +PropertyNotify events to clients wanting information about property changes for a specified window. To receive -PropertyNotify +PropertyNotify events, set the -PropertyChangeMask +PropertyChangeMask bit in the event-mask attribute of the window. @@ -4496,11 +4496,11 @@ property was changed or desired. The time member is set to the server time when the property was changed. The state member is set to indicate whether the property was changed to a new value or deleted and can be -PropertyNewValue +PropertyNewValue or -PropertyDelete. +PropertyDelete. The state member is set to -PropertyNewValue +PropertyNewValue when a property of the window is changed using XChangeProperty or @@ -4512,11 +4512,11 @@ and when replacing all or part of a property with identical data using or XRotateWindowProperties. The state member is set to -PropertyDelete +PropertyDelete when a property of the window is deleted using XDeleteProperty or, if the delete argument is -True, +True, XGetWindowProperty. @@ -4530,7 +4530,7 @@ or, if the delete argument is EventsSelectionClear SelectionClear The X server reports -SelectionClear +SelectionClear events to the client losing ownership of a selection. The X server generates this event type when another client asserts ownership of the selection by calling @@ -4580,11 +4580,11 @@ call. EventsSelectionRequest SelectionRequest The X server reports -SelectionRequest +SelectionRequest events to the owner of a selection. The X server generates this event whenever a client requests a selection conversion by calling -XConvertSelection +XConvertSelection for the owned selection. @@ -4625,18 +4625,18 @@ For example, PRIMARY is used to indicate the primary selection. The target member is set to the atom that indicates the type the selection is desired in. The property member can be a property name or -None. +None. The time member is set to the timestamp or -CurrentTime +CurrentTime value from the -ConvertSelection +ConvertSelection request. The owner should convert the selection based on the specified target type and send a -SelectionNotify +SelectionNotify event back to the requestor. A complete specification for using selections is given in the X Consortium standard Inter-Client Communication Conventions Manual. @@ -4652,7 +4652,7 @@ standard Inter-Client Communication Conventions ManualEventsSelectionNotify SelectionNotify This event is generated by the X server in response to a -ConvertSelection +ConvertSelection protocol request when there is no owner for the selection. When there is an owner, it should be generated by the owner of the selection by using @@ -4661,18 +4661,18 @@ The owner of a selection should send this event to a requestor when a selection has been converted and stored as a property or when a selection conversion could not be performed (which is indicated by setting the property member to -None). +None). If -None +None is specified as the property in the -ConvertSelection +ConvertSelection protocol request, the owner should choose a property name, store the result as that property on the requestor window, and then send a -SelectionNotify +SelectionNotify giving that actual property name. @@ -4712,10 +4712,10 @@ The property member is set to the atom that indicates which property the result was stored on. If the conversion failed, the property member is set to -None. +None. The time member is set to the time the conversion took place and can be a timestamp or -CurrentTime. +CurrentTime. diff --git a/libX11/specs/libX11/CH11.xml b/libX11/specs/libX11/CH11.xml index 1a9bfc139..2cfae3aad 100644 --- a/libX11/specs/libX11/CH11.xml +++ b/libX11/specs/libX11/CH11.xml @@ -33,7 +33,7 @@ event. There are two ways to select the events you want reported to your client application. One way is to set the event_mask member of the -XSetWindowAttributes +XSetWindowAttributes structure when you call XCreateWindow and @@ -44,7 +44,7 @@ Another way is to use - XSelectInput + XSelectInput Display *display Window w long event_mask @@ -118,32 +118,32 @@ to all interested clients. Only one client at a time can select -CirculateRequest, -ConfigureRequest, +CirculateRequest, +ConfigureRequest, or -MapRequest +MapRequest events, which are associated with the event mask -SubstructureRedirectMask. +SubstructureRedirectMask. Only one client at a time can select a -ResizeRequest +ResizeRequest event, which is associated with the event mask -ResizeRedirectMask. +ResizeRedirectMask. Only one client at a time can select a -ButtonPress +ButtonPress event, which is associated with the event mask -ButtonPressMask. +ButtonPressMask. @@ -155,7 +155,7 @@ The server reports the event to all interested clients. XSelectInput can generate a -BadWindow +BadWindow error. @@ -182,7 +182,7 @@ To flush the output buffer, use - XFlush + XFlush Display *display @@ -228,7 +228,7 @@ use - XSync + XSync Display *display Bool discard @@ -277,12 +277,12 @@ event queue. Finally, if you passed -False, +False, XSync does not discard the events in the queue. If you passed -True, -XSync +True, +XSync discards all events in the queue, including those events that were on the queue before XSync @@ -311,7 +311,7 @@ To check the number of events in the event queue, use - int XEventsQueued + int XEventsQueued Display *display int mode @@ -336,10 +336,10 @@ Specifies the connection to the X server. Specifies the mode. You can pass -QueuedAlready, -QueuedAfterFlush, +QueuedAlready, +QueuedAfterFlush, or -QueuedAfterReading. +QueuedAfterReading. @@ -349,12 +349,12 @@ or If mode is -QueuedAlready, -XEventsQueued +QueuedAlready, +XEventsQueued returns the number of events already in the event queue (and never performs a system call). If mode is -QueuedAfterFlush, +QueuedAfterFlush, XEventsQueued returns the number of events already in the queue if the number is nonzero. If there are no events in the queue, @@ -363,7 +363,7 @@ flushes the output buffer, attempts to read more events out of the application's connection, and returns the number read. If mode is -QueuedAfterReading, +QueuedAfterReading, XEventsQueued returns the number of events already in the queue if the number is nonzero. If there are no events in the queue, @@ -378,12 +378,12 @@ always returns immediately without I/O if there are events already in the queue. XEventsQueued with mode -QueuedAfterFlush +QueuedAfterFlush is identical in behavior to XPending. XEventsQueued with mode -QueuedAlready +QueuedAlready is identical to the XQLength function. @@ -397,7 +397,7 @@ To return the number of events that are pending, use - int XPending + int XPending Display *display @@ -426,7 +426,7 @@ X server but have not been removed from the event queue. is identical to XEventsQueued with the mode -QueuedAfterFlush +QueuedAfterFlush specified. @@ -471,7 +471,7 @@ To get the next event and remove it from the queue, use - XNextEvent + XNextEvent Display *display XEvent *event_return @@ -506,7 +506,7 @@ Returns the next event in the queue. The XNextEvent function copies the first event from the event queue into the specified -XEvent +XEvent structure and then removes it from the queue. If the event queue is empty, XNextEvent @@ -521,7 +521,7 @@ To peek at the event queue, use - XPeekEvent + XPeekEvent Display *display XEvent *event_return @@ -561,7 +561,7 @@ If the queue is empty, XPeekEvent flushes the output buffer and blocks until an event is received. It then copies the event into the client-supplied -XEvent +XEvent structure without removing it from the event queue. @@ -591,7 +591,7 @@ The predicate procedure and its associated arguments are: - Bool + Bool Display *display XEvent *event XPointer arg @@ -616,7 +616,7 @@ Specifies the connection to the X server. Specifies the -XEvent +XEvent structure. @@ -631,7 +631,7 @@ Specifies the argument passed in from the XIfEvent, XCheckIfEvent, or -XPeekIfEvent +XPeekIfEvent function. @@ -644,9 +644,9 @@ function. The predicate procedure is called once for each event in the queue until it finds a match. After finding a match, the predicate procedure must return -True. +True. If it did not find a match, it must return -False. +False. @@ -658,7 +658,7 @@ and, if found, remove the event from the queue, use - XIfEvent + XIfEvent Display *display XEvent *event_return Bool (*predicate)() @@ -717,7 +717,7 @@ The XIfEvent function completes only when the specified predicate procedure returns -True +True for an event, which indicates an event in the queue matches. XIfEvent @@ -725,7 +725,7 @@ flushes the output buffer if it blocks waiting for additional events. XIfEvent removes the matching event from the queue and copies the structure into the client-supplied -XEvent +XEvent structure. @@ -737,7 +737,7 @@ To check the event queue for a matching event without blocking, use - Bool XCheckIfEvent + Bool XCheckIfEvent Display *display XEvent *event_return Bool (*predicate)() @@ -795,14 +795,14 @@ Specifies the user-supplied argument that will be passed to the predicate proced When the predicate procedure finds a match, XCheckIfEvent copies the matched event into the client-supplied -XEvent +XEvent structure and returns -True. +True. (This event is removed from the queue.) If the predicate procedure finds no match, XCheckIfEvent returns -False, +False, and the output buffer will have been flushed. All earlier events stored in the queue are not discarded. @@ -816,7 +816,7 @@ without removing the event from the queue, use - XPeekIfEvent + XPeekIfEvent Display *display XEvent *event_return Bool (*predicate)() @@ -875,12 +875,12 @@ The XPeekIfEvent function returns only when the specified predicate procedure returns -True +True for an event. After the predicate procedure finds a match, XPeekIfEvent copies the matched event into the client-supplied -XEvent +XEvent structure without removing the event from the queue. XPeekIfEvent flushes the output buffer if it blocks waiting for additional events. @@ -905,7 +905,7 @@ To remove the next event that matches both a window and an event mask, use - XWindowEvent + XWindowEvent Display *display Window w long event_mask @@ -967,7 +967,7 @@ window and event mask. When it finds a match, XWindowEvent removes that event from the queue and copies it into the specified -XEvent +XEvent structure. The other events stored in the queue are not discarded. If a matching event is not in the queue, @@ -982,15 +982,15 @@ use XCheckWindowEvent. XCheckWindowEvent This function is similar to -XWindowEvent +XWindowEvent except that it never blocks and it returns a -Bool +Bool indicating if the event was returned. XCheckWindowEvent - Bool XCheckWindowEvent + Bool XCheckWindowEvent Display *display Window w long event_mask @@ -1053,14 +1053,14 @@ and event mask. If it finds a match, XCheckWindowEvent removes that event, copies it into the specified -XEvent +XEvent structure, and returns -True. +True. The other events stored in the queue are not discarded. If the event you requested is not available, XCheckWindowEvent returns -False, +False, and the output buffer will have been flushed. @@ -1072,7 +1072,7 @@ To remove the next event that matches an event mask, use - XMaskEvent + XMaskEvent Display *display long event_mask XEvent *event_return @@ -1122,7 +1122,7 @@ specified mask. When it finds a match, XMaskEvent removes that event and copies it into the specified -XEvent +XEvent structure. The other events stored in the queue are not discarded. If the event you requested is not in the queue, @@ -1135,15 +1135,15 @@ flushes the output buffer and blocks until one is received. To return and remove the next event that matches an event mask (if any), use XCheckMaskEvent. This function is similar to -XMaskEvent +XMaskEvent except that it never blocks and it returns a -Bool +Bool indicating if the event was returned. XCheckMaskEvent - Bool XCheckMaskEvent + Bool XCheckMaskEvent Display *display long event_mask XEvent *event_return @@ -1193,14 +1193,14 @@ server connection for the first event that matches the specified mask. If it finds a match, XCheckMaskEvent removes that event, copies it into the specified -XEvent +XEvent structure, and returns -True. +True. The other events stored in the queue are not discarded. If the event you requested is not available, XCheckMaskEvent returns -False, +False, and the output buffer will have been flushed. @@ -1212,7 +1212,7 @@ To return and remove the next event in the queue that matches an event type, use - Bool XCheckTypedEvent + Bool XCheckTypedEvent Display *display int event_type XEvent *event_return @@ -1263,14 +1263,14 @@ on the server connection for the first event that matches the specified type. If it finds a match, XCheckTypedEvent removes that event, copies it into the specified -XEvent +XEvent structure, and returns -True. +True. The other events in the queue are not discarded. If the event is not available, XCheckTypedEvent returns -False, +False, and the output buffer will have been flushed. @@ -1283,7 +1283,7 @@ and a window, use - Bool XCheckTypedWindowEvent + Bool XCheckTypedWindowEvent Display *display Window w int event_type @@ -1346,14 +1346,14 @@ type and window. If it finds a match, XCheckTypedWindowEvent removes the event from the queue, copies it into the specified -XEvent +XEvent structure, and returns -True. +True. The other events in the queue are not discarded. If the event is not available, XCheckTypedWindowEvent returns -False, +False, and the output buffer will have been flushed. @@ -1371,7 +1371,7 @@ To push an event back into the event queue, use - XPutBackEvent + XPutBackEvent Display *display XEvent *event @@ -1427,14 +1427,14 @@ This function is often used in selection processing. For example, the owner of a selection should use XSendEvent to send a -SelectionNotify +SelectionNotify event to a requestor when a selection has been converted and stored as a property. XSendEvent - Status XSendEvent + Status XSendEvent Display *display Window w Bool propagate @@ -1461,9 +1461,9 @@ Specifies the connection to the X server. Specifies the window the event is to be sent to, or -PointerWindow, +PointerWindow, or -InputFocus. +InputFocus. @@ -1516,14 +1516,14 @@ This function uses the w argument to identify the destination window as follows: If w is -PointerWindow, +PointerWindow, the destination window is the window that contains the pointer. If w is -InputFocus +InputFocus and if the focus window contains the pointer, the destination window is the window that contains the pointer; otherwise, the destination window is the focus window. @@ -1548,7 +1548,7 @@ no event is sent. If propagate is -False, +False, the event is sent to every client selecting on destination any of the event types in the event_mask argument. @@ -1556,7 +1556,7 @@ types in the event_mask argument. If propagate is -True +True and no clients have selected on destination any of the event types in event-mask, the destination is replaced with the closest ancestor of destination for which some client has selected a @@ -1564,7 +1564,7 @@ type in event-mask and for which no intervening window has that type in its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window and -InputFocus +InputFocus was originally specified as the destination, the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final @@ -1575,15 +1575,15 @@ destination any of the types specified in event_mask. The event in the -XEvent +XEvent structure must be one of the core events or one of the events defined by an extension (or a -BadValue +BadValue error results) so that the X server can correctly byte-swap the contents as necessary. The contents of the event are otherwise unaltered and unchecked by the X server except to force send_event to -True +True in the forwarded event and to set the serial number in the event correctly; therefore these fields and the display field are ignored by @@ -1599,9 +1599,9 @@ and returns nonzero otherwise. XSendEvent can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -1632,7 +1632,7 @@ use - unsigned long + unsigned long Display *display @@ -1655,7 +1655,7 @@ Specifies the connection to the X server. The server may retain the recent history of the pointer motion and do so to a finer granularity than is reported by -MotionNotify +MotionNotify events. The XGetMotionEvents @@ -1670,7 +1670,7 @@ To get the motion history for a specified window and time, use - XTimeCoord *XGetMotionEvents + XTimeCoord *XGetMotionEvents Display *display Window w Timestart, stop @@ -1719,7 +1719,7 @@ Specifies the window. Specify the time interval in which the events are returned from the motion history buffer. You can pass a timestamp or -CurrentTime. +CurrentTime. @@ -1751,7 +1751,7 @@ no events are returned; XGetMotionEvents returns NULL. If the stop time is in the future, it is equivalent to specifying -CurrentTime. +CurrentTime. The return type for this function is a structure defined as follows: @@ -1781,7 +1781,7 @@ To free the data returned from this call, use XGetMotionEvents can generate a -BadWindow +BadWindow error. @@ -1811,7 +1811,7 @@ synchronization is enabled. _Xdebug On POSIX-conformant systems, there is also a global variable -_Xdebug +_Xdebug that, if set to nonzero before starting a program under a debugger, will force synchronous library behavior. @@ -1826,7 +1826,7 @@ sets which function is to be called. - int + int Display *display int (*procedure)() @@ -1871,7 +1871,7 @@ To enable or disable synchronization, use - int + int Display *display Bool onoff @@ -1909,12 +1909,12 @@ The function returns the previous after function. If onoff is -True, +True, XSynchronize turns on synchronous behavior. If onoff is -False, -XSynchronize +False, +XSynchronize turns off synchronous behavior. @@ -1947,7 +1947,7 @@ To set the error handler, use - int *XSetErrorHandler + int *XSetErrorHandler int *handler @@ -1971,16 +1971,16 @@ Specifies the program's supplied error handler. Xlib generally calls the program's supplied error handler whenever an error is received. It is not called on -BadName +BadName errors from -OpenFont, -LookupColor, +OpenFont, +LookupColor, or -AllocNamedColor +AllocNamedColor protocol requests or on -BadFont +BadFont errors from a -QueryFont +QueryFont protocol request. These errors generally are reflected back to the program through the procedural interface. @@ -1995,7 +1995,7 @@ The previous error handler is returned. The -XErrorEvent +XErrorEvent structure contains: Debuggingerror event @@ -2022,7 +2022,7 @@ typedef struct { The serial member is the number of requests, starting from one, sent over the network connection since it was opened. It is the number that was the value of -NextRequest +NextRequest immediately before the failing call was made. The request_code member is a protocol request of the procedure that failed, as defined in @@ -2057,7 +2057,7 @@ chapter: - BadAccess + BadAccess A client attempts to grab a key/button combination already grabbed by another client. @@ -2081,57 +2081,57 @@ chapter: has already selected. - BadAlloc + BadAlloc The server fails to allocate the requested resource. Note that the explicit listing of - BadAlloc + BadAlloc errors in requests only covers allocation errors at a very coarse level and is not intended to (nor can it in practice hope to) cover all cases of a server running out of allocation space in the middle of service. The semantics when a server runs out of allocation space are left unspecified, but a server may generate a - BadAlloc + BadAlloc error on any request for this reason, and clients should be prepared to receive such errors and handle or discard them. - BadAtom + BadAtom A value for an atom argument does not name a defined atom. - BadColor + BadColor A value for a colormap argument does not name a defined colormap. - BadCursor + BadCursor A value for a cursor argument does not name a defined cursor. - BadDrawable + BadDrawable A value for a drawable argument does not name a defined window or pixmap. - BadFont + BadFont A value for a font argument does not name a defined font (or, in some cases, - GContext). + GContext). - BadGC + BadGC A value for a - GContext + GContext argument does not name a defined - GContext. + GContext. - BadIDChoice + BadIDChoice The value chosen for a resource identifier either is not included in the range assigned to the client or is already in use. Under normal circumstances, this cannot occur and should be considered a server or Xlib error. - BadImplementation + BadImplementation The server does not implement some aspect of the request. A server that generates this error for a core request is deficient. As such, this error is not listed for any of the requests, @@ -2139,7 +2139,7 @@ chapter: and handle or discard them. - BadLength + BadLength The length of a request is shorter or longer than that required to contain the arguments. This is an internal Xlib or server error. @@ -2150,13 +2150,13 @@ chapter: The length of a request exceeds the maximum length accepted by the server. - BadMatch + BadMatch In a graphics request, the root and depth of the graphics context do not match those of the drawable. - An InputOnly window is used as a drawable. + An InputOnly window is used as a drawable. @@ -2166,24 +2166,24 @@ chapter: - An InputOnly + An InputOnly window lacks this attribute. - BadName + BadName A font or color of the specified name does not exist. - BadPixmap + BadPixmap A value for a pixmap argument does not name a defined pixmap. - BadRequest + BadRequest The major or minor opcode does not specify a valid request. This usually is an Xlib or server error. - BadValue + BadValue Some numeric value falls outside of the range of values accepted by the request. Unless a specific range is specified for an argument, @@ -2192,7 +2192,7 @@ chapter: this error (due to the encoding). - BadWindow + BadWindow A value for a window argument does not name a defined window. @@ -2212,15 +2212,15 @@ chapter: The -BadAtom, -BadColor, -BadCursor, -BadDrawable, -BadFont, -BadGC, -BadPixmap, +BadAtom, +BadColor, +BadCursor, +BadDrawable, +BadFont, +BadGC, +BadPixmap, and -BadWindow +BadWindow errors are also used when the argument type is extended by a set of fixed alternatives. @@ -2237,7 +2237,7 @@ To obtain textual descriptions of the specified error code, use - XGetErrorText + XGetErrorText Display *display int code char *buffer_return @@ -2309,7 +2309,7 @@ To obtain error messages from the error database, use - XGetErrorDatabaseText + XGetErrorDatabaseText Display *display char*name, *message char *default_string @@ -2454,7 +2454,7 @@ To report an error to the user when the requested display does not exist, use - char *XDisplayName + char *XDisplayName char *string @@ -2497,7 +2497,7 @@ To handle fatal I/O errors, use - int + int int(*handler)(Display *) diff --git a/libX11/specs/libX11/CH12.xml b/libX11/specs/libX11/CH12.xml index 210a2be9f..dabf2b04b 100644 --- a/libX11/specs/libX11/CH12.xml +++ b/libX11/specs/libX11/CH12.xml @@ -87,7 +87,7 @@ The X server includes a timestamp in various events. One special time, called CurrentTime Time -CurrentTime, +CurrentTime, represents the current server time. The X server maintains the time when the input focus was last changed, when the keyboard was last grabbed, @@ -111,7 +111,7 @@ The server, given its current time is represented by timestamp T, always interprets timestamps from clients by treating half of the timestamp space as being later in time than T. One timestamp value, named -CurrentTime, +CurrentTime, is never generated by the server. This value is reserved for use in requests to represent the current server time. @@ -120,32 +120,32 @@ This value is reserved for use in requests to represent the current server time. For many functions in this section, you pass pointer event mask bits. The valid pointer event mask bits are: -ButtonPressMask, -ButtonReleaseMask, -EnterWindowMask, -LeaveWindowMask, -PointerMotionMask, -PointerMotionHintMask, -Button1MotionMask, -Button2MotionMask, -Button3MotionMask, -Button4MotionMask, -Button5MotionMask, -ButtonMotionMask, +ButtonPressMask, +ButtonReleaseMask, +EnterWindowMask, +LeaveWindowMask, +PointerMotionMask, +PointerMotionHintMask, +Button1MotionMask, +Button2MotionMask, +Button3MotionMask, +Button4MotionMask, +Button5MotionMask, +ButtonMotionMask, and -KeyMapStateMask. +KeymapStateMask. For other functions in this section, you pass keymask bits. The valid keymask bits are: -ShiftMask, -LockMask, -ControlMask, -Mod1Mask, -Mod2Mask, -Mod3Mask, -Mod4Mask, +ShiftMask, +LockMask, +ControlMask, +Mod1Mask, +Mod2Mask, +Mod3Mask, +Mod4Mask, and -Mod5Mask. +Mod5Mask. @@ -158,7 +158,7 @@ To grab the pointer, use - int XGrabPointer + int XGrabPointer Display *display Window grab_window Bool owner_events @@ -222,9 +222,9 @@ The mask is the bitwise inclusive OR of the valid pointer event mask bits. Specifies further processing of pointer events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -236,9 +236,9 @@ or Specifies further processing of keyboard events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -249,7 +249,7 @@ or Specifies the window to confine the pointer in or -None. +None. @@ -260,7 +260,7 @@ Specifies the window to confine the pointer in or Specifies the cursor that is to be displayed during the grab or -None. +None. @@ -272,7 +272,7 @@ Specifies the cursor that is to be displayed during the grab or Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -284,18 +284,18 @@ You can pass either a timestamp or The XGrabPointer function actively grabs control of the pointer and returns -GrabSuccess +GrabSuccess if the grab was successful. Further pointer events are reported only to the grabbing client. XGrabPointer overrides any active pointer grab by this client. If owner_events is -False, +False, all generated pointer events are reported with respect to grab_window and are reported only if selected by event_mask. If owner_events is -True +True and if a generated pointer event would normally be reported to this client, it is reported as usual. @@ -306,12 +306,12 @@ For either value of owner_events, unreported events are discarded. If the pointer_mode is -GrabModeAsync, +GrabModeAsync, pointer event processing continues as usual. If the pointer is currently frozen by this client, the processing of events for the pointer is resumed. If the pointer_mode is -GrabModeSync, +GrabModeSync, the state of the pointer, as seen by client applications, appears to freeze, and the X server generates no further pointer events @@ -324,10 +324,10 @@ they are simply queued in the server for later processing. If the keyboard_mode is -GrabModeAsync, +GrabModeAsync, keyboard event processing is unaffected by activation of the grab. If the keyboard_mode is -GrabModeSync, +GrabModeSync, the state of the keyboard, as seen by client applications, appears to freeze, and the X server generates no further keyboard events @@ -342,7 +342,7 @@ they are simply queued in the server for later processing. If a cursor is specified, it is displayed regardless of what window the pointer is in. If -None +None is specified, the normal cursor for that window is displayed when the pointer is in grab_window or one of its subwindows; @@ -375,11 +375,11 @@ grabbed the pointer before its request was processed. -XGrabPointer +XGrabPointer generates -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events. @@ -389,28 +389,28 @@ or if the confine_to window lies completely outside the boundaries of the root window, XGrabPointer fails and returns -GrabNotViewable. +GrabNotViewable. If the pointer is actively grabbed by some other client, it fails and returns -AlreadyGrabbed. +AlreadyGrabbed. If the pointer is frozen by an active grab of another client, it fails and returns -GrabFrozen. +GrabFrozen. If the specified time is earlier than the last-pointer-grab time or later than the current X server time, it fails and returns -GrabInvalidTime. +GrabInvalidTime. Otherwise, the last-pointer-grab time is set to the specified time -(CurrentTime +(CurrentTime is replaced by the current X server time). XGrabPointer can generate -BadCursor, -BadValue, +BadCursor, +BadValue, and -BadWindow +BadWindow errors. @@ -424,7 +424,7 @@ To ungrab the pointer, use - XUngrabPointer + XUngrabPointer Display *display Time time @@ -449,7 +449,7 @@ Specifies the connection to the X server. Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -470,12 +470,12 @@ does not release the pointer if the specified time is earlier than the last-pointer-grab time or is later than the current X server time. It also generates -EnterNotify +EnterNotify and -LeaveNotify +LeaveNotify events. The X server performs an -UngrabPointer +UngrabPointer request automatically if the event window or confine_to window for an active pointer grab becomes not viewable or if window reconfiguration causes the confine_to window to lie completely @@ -492,7 +492,7 @@ To change an active pointer grab, use - XChangeActivePointerGrab + XChangeActivePointerGrab Display *display unsignedint event_mask Cursor cursor @@ -529,7 +529,7 @@ The mask is the bitwise inclusive OR of the valid pointer event mask bits. Specifies the cursor that is to be displayed or -None. +None. @@ -541,7 +541,7 @@ Specifies the cursor that is to be displayed or Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -564,9 +564,9 @@ The interpretation of event_mask and cursor is the same as described in XChangeActivePointerGrab can generate -BadCursor +BadCursor and -BadValue +BadValue errors. @@ -580,7 +580,7 @@ To grab a pointer button, use - XGrabButton + XGrabButton Display *display unsignedint button unsignedint modifiers @@ -612,7 +612,7 @@ Specifies the connection to the X server. Specifies the pointer button that is to be (Bu or -AnyButton. +AnyButton. @@ -623,7 +623,7 @@ Specifies the pointer button that is to be (Bu or Specifies the set of keymasks or -AnyModifier. +AnyModifier. The mask is the bitwise inclusive OR of the valid keymask bits. @@ -669,9 +669,9 @@ The mask is the bitwise inclusive OR of the valid pointer event mask bits. Specifies further processing of pointer events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -683,9 +683,9 @@ or Specifies further processing of keyboard events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -696,7 +696,7 @@ or Specifies the window to confine the pointer in or -None. +None. @@ -707,7 +707,7 @@ Specifies the window to confine the pointer in or Specifies the cursor that is to be displayed or -None. +None. @@ -724,9 +724,9 @@ the pointer is actively grabbed (as for XGrabPointer), the last-pointer-grab time is set to the time at which the button was pressed (as transmitted in the -ButtonPress +ButtonPress event), and the -ButtonPress +ButtonPress event is reported if all of the following conditions are true: @@ -772,13 +772,13 @@ may lag the physical state if device event processing is frozen. This request overrides all previous grabs by the same client on the same button/key combinations on the same window. A modifiers of -AnyModifier +AnyModifier is equivalent to issuing the grab request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified have currently assigned KeyCodes. A button of -AnyButton +AnyButton is equivalent to issuing the request for all possible buttons. Otherwise, it is not required that the specified button currently be assigned @@ -789,15 +789,15 @@ to a physical button. If some other client has already issued an XGrabButton with the same button/key combination on the same window, a -BadAccess +BadAccess error results. When using -AnyModifier +AnyModifier or -AnyButton, +AnyButton, the request fails completely, and a -BadAccess +BadAccess error results (no grabs are established) if there is a conflicting grab for any combination. XGrabButton @@ -807,10 +807,10 @@ has no effect on an active grab. XGrabButton can generate -BadCursor, -BadValue, +BadCursor, +BadValue, and -BadWindow +BadWindow errors. @@ -824,7 +824,7 @@ To ungrab a pointer button, use - XUngrabButton + XUngrabButton Display *display unsignedint button unsignedint modifiers @@ -851,7 +851,7 @@ Specifies the connection to the X server. Specifies the pointer button that is to be (Bu or -AnyButton. +AnyButton. @@ -862,7 +862,7 @@ Specifies the pointer button that is to be (Bu or Specifies the set of keymasks or -AnyModifier. +AnyModifier. The mask is the bitwise inclusive OR of the valid keymask bits. @@ -887,13 +887,13 @@ The function releases the passive button/key combination on the specified window if it was grabbed by this client. A modifiers of -AnyModifier +AnyModifier is equivalent to issuing the ungrab request for all possible modifier combinations, including the combination of no modifiers. A button of -AnyButton +AnyButton is equivalent to issuing the request for all possible buttons. XUngrabButton @@ -903,9 +903,9 @@ has no effect on an active grab. XUngrabButton can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -924,15 +924,15 @@ as well as allow events. For many functions in this section, you pass keymask bits. The valid keymask bits are: -ShiftMask, -LockMask, -ControlMask, -Mod1Mask, -Mod2Mask, -Mod3Mask, -Mod4Mask, +ShiftMask, +LockMask, +ControlMask, +Mod1Mask, +Mod2Mask, +Mod3Mask, +Mod4Mask, and -Mod5Mask. +Mod5Mask. @@ -945,7 +945,7 @@ To grab the keyboard, use - int XGrabKeyboard + int XGrabKeyboard Display *display Window grab_window Bool owner_events @@ -994,9 +994,9 @@ are to be reported as usual. Specifies further processing of pointer events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -1008,9 +1008,9 @@ or Specifies further processing of keyboard events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -1022,7 +1022,7 @@ or Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -1034,45 +1034,45 @@ You can pass either a timestamp or The XGrabKeyboard function actively grabs control of the keyboard and generates -FocusIn +FocusIn and -FocusOut +FocusOut events. Further key events are reported only to the grabbing client. XGrabKeyboard overrides any active keyboard grab by this client. If owner_events is -False, +False, all generated key events are reported with respect to grab_window. If owner_events is -True +True and if a generated key event would normally be reported to this client, it is reported normally; otherwise, the event is reported with respect to the grab_window. Both -KeyPress +KeyPress and -KeyRelease +KeyRelease events are always reported, independent of any event selection made by the client. If the keyboard_mode argument is -GrabModeAsync, +GrabModeAsync, keyboard event processing continues as usual. If the keyboard is currently frozen by this client, then processing of keyboard events is resumed. If the keyboard_mode argument is -GrabModeSync, +GrabModeSync, the state of the keyboard (as seen by client applications) appears to freeze, and the X server generates no further keyboard events until the grabbing client issues a releasing -XAllowEvents +XAllowEvents call or until the keyboard grab is released. Actual keyboard changes are not lost while the keyboard is frozen; they are simply queued in the server for later processing. @@ -1080,15 +1080,15 @@ they are simply queued in the server for later processing. If pointer_mode is -GrabModeAsync, +GrabModeAsync, pointer event processing is unaffected by activation of the grab. If pointer_mode is -GrabModeSync, +GrabModeSync, the state of the pointer (as seen by client applications) appears to freeze, and the X server generates no further pointer events until the grabbing client issues a releasing -XAllowEvents +XAllowEvents call or until the keyboard grab is released. Actual pointer changes are not lost while the pointer is frozen; they are simply queued in the server for later processing. @@ -1098,28 +1098,28 @@ they are simply queued in the server for later processing. If the keyboard is actively grabbed by some other client, XGrabKeyboard fails and returns -AlreadyGrabbed. +AlreadyGrabbed. If grab_window is not viewable, it fails and returns -GrabNotViewable. +GrabNotViewable. If the keyboard is frozen by an active grab of another client, it fails and returns -GrabFrozen. +GrabFrozen. If the specified time is earlier than the last-keyboard-grab time or later than the current X server time, it fails and returns -GrabInvalidTime. +GrabInvalidTime. Otherwise, the last-keyboard-grab time is set to the specified time -(CurrentTime +(CurrentTime is replaced by the current X server time). XGrabKeyboard can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -1133,7 +1133,7 @@ To ungrab the keyboard, use - XUngrabKeyboard + XUngrabKeyboard Display *display Time time @@ -1158,7 +1158,7 @@ Specifies the connection to the X server. Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -1180,12 +1180,12 @@ does not release the keyboard and any queued events if the specified time is earlier than the last-keyboard-grab time or is later than the current X server time. It also generates -FocusIn +FocusIn and -FocusOut +FocusOut events. The X server automatically performs an -UngrabKeyboard +UngrabKeyboard request if the event window for an active keyboard grab becomes not viewable. @@ -1200,7 +1200,7 @@ To passively grab a single key of the keyboard, use - XGrabKey + XGrabKey Display *display int keycode unsignedint modifiers @@ -1228,7 +1228,7 @@ Specifies the connection to the X server. Specifies the KeyCode or -AnyKey. +AnyKey. @@ -1239,7 +1239,7 @@ Specifies the KeyCode or Specifies the set of keymasks or -AnyModifier. +AnyModifier. The mask is the bitwise inclusive OR of the valid keymask bits. @@ -1273,9 +1273,9 @@ are to be reported as usual. Specifies further processing of pointer events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -1287,9 +1287,9 @@ or Specifies further processing of keyboard events. You can pass -GrabModeSync +GrabModeSync or -GrabModeAsync. +GrabModeAsync. @@ -1306,9 +1306,9 @@ the keyboard is actively grabbed (as for XGrabKeyboard), the last-keyboard-grab time is set to the time at which the key was pressed (as transmitted in the -KeyPress +KeyPress event), and the -KeyPress +KeyPress event is reported if all of the following conditions are true: @@ -1349,21 +1349,21 @@ may lag the physical state if device event processing is frozen. A modifiers argument of -AnyModifier +AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified have currently assigned KeyCodes. A keycode argument of -AnyKey +AnyKey is equivalent to issuing the request for all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode and max_keycode in the connection setup, or a -BadValue +BadValue error results. @@ -1371,15 +1371,15 @@ error results. If some other client has issued a XGrabKey with the same key combination on the same window, a -BadAccess +BadAccess error results. When using -AnyModifier +AnyModifier or -AnyKey, +AnyKey, the request fails completely, and a -BadAccess +BadAccess error results (no grabs are established) if there is a conflicting grab for any combination. @@ -1387,10 +1387,10 @@ if there is a conflicting grab for any combination. XGrabKey can generate -BadAccess, -BadValue, +BadAccess, +BadValue, and -BadWindow +BadWindow errors. @@ -1404,7 +1404,7 @@ To ungrab a key, use - XUngrabKey + XUngrabKey Display *display int keycode unsignedint modifiers @@ -1430,7 +1430,7 @@ Specifies the connection to the X server. Specifies the KeyCode or -AnyKey. +AnyKey. @@ -1441,7 +1441,7 @@ Specifies the KeyCode or Specifies the set of keymasks or -AnyModifier. +AnyModifier. The mask is the bitwise inclusive OR of the valid keymask bits. @@ -1467,21 +1467,21 @@ function releases the key combination on the specified window if it was grabbed by this client. It has no effect on an active grab. A modifiers of -AnyModifier +AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). A keycode argument of -AnyKey +AnyKey is equivalent to issuing the request for all possible key codes. XUngrabKey can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -1505,7 +1505,7 @@ To allow further events to be processed when the device has been frozen, use - XAllowEvents + XAllowEvents Display *display int event_mode Time time @@ -1531,15 +1531,15 @@ Specifies the connection to the X server. Specifies the event mode. You can pass -AsyncPointer, -SyncPointer, -AsyncKeyboard, -SyncKeyboard, -ReplayPointer, -ReplayKeyboard, -AsyncBoth, +AsyncPointer, +SyncPointer, +AsyncKeyboard, +SyncKeyboard, +ReplayPointer, +ReplayKeyboard, +AsyncBoth, or -SyncBoth. +SyncBoth. @@ -1551,7 +1551,7 @@ or Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -1575,41 +1575,41 @@ Depending on the event_mode argument, the following occurs: - AsyncPointer + AsyncPointer If the pointer is frozen by the client, pointer event processing continues as usual. If the pointer is frozen twice by the client on behalf of two separate grabs, - AsyncPointer + AsyncPointer thaws for both. - AsyncPointer + AsyncPointer has no effect if the pointer is not frozen by the client, but the pointer need not be grabbed by the client. - SyncPointer + SyncPointer If the pointer is frozen and actively grabbed by the client, pointer event processing continues as usual until the next - ButtonPress + ButtonPress or - ButtonRelease + ButtonRelease event is reported to the client. At this time, the pointer again appears to freeze. However, if the reported event causes the pointer grab to be released, the pointer does not freeze. - SyncPointer + SyncPointer has no effect if the pointer is not frozen by the client or if the pointer is not grabbed by the client. - ReplayPointer + ReplayPointer If the pointer is actively grabbed by the client and is frozen as the result of an event having been sent to the client (either from the activation of an - XGrabButton + XGrabButton or from a previous - XAllowEvents + XAllowEvents with mode - SyncPointer + SyncPointer but not from an XGrabPointer), the pointer grab is released and that event is completely reprocessed. @@ -1619,42 +1619,42 @@ Depending on the event_mode argument, the following occurs: or if the pointer is not frozen as the result of an event. - AsyncKeyboard + AsyncKeyboard If the keyboard is frozen by the client, keyboard event processing continues as usual. If the keyboard is frozen twice by the client on behalf of two separate grabs, - AsyncKeyboard + AsyncKeyboard thaws for both. - AsyncKeyboard + AsyncKeyboard has no effect if the keyboard is not frozen by the client, but the keyboard need not be grabbed by the client. - SyncKeyboard + SyncKeyboard If the keyboard is frozen and actively grabbed by the client, keyboard event processing continues as usual until the next - KeyPress + KeyPress or - KeyRelease + KeyRelease event is reported to the client. At this time, the keyboard again appears to freeze. However, if the reported event causes the keyboard grab to be released, the keyboard does not freeze. - SyncKeyboard + SyncKeyboard has no effect if the keyboard is not frozen by the client or if the keyboard is not grabbed by the client. - ReplayKeyboard + ReplayKeyboard If the keyboard is actively grabbed by the client and is frozen as the result of an event having been sent to the client (either from the activation of an - XGrabKey + XGrabKey or from a previous - XAllowEvents + XAllowEvents with mode - SyncKeyboard + SyncKeyboard but not from an XGrabKeyboard), the keyboard grab is released and that event is completely reprocessed. @@ -1665,14 +1665,14 @@ Depending on the event_mode argument, the following occurs: or if the keyboard is not frozen as the result of an event. - SyncBoth + SyncBoth If both pointer and keyboard are frozen by the client, event processing for both devices continues as usual until the next - ButtonPress, - ButtonRelease, - KeyPress, + ButtonPress, + ButtonRelease, + KeyPress, or - KeyRelease + KeyRelease event is reported to the client for a grabbed device (button event for the pointer, key event for the keyboard), at which time the devices again appear to freeze. @@ -1680,24 +1680,24 @@ Depending on the event_mode argument, the following occurs: then the devices do not freeze (but if the other device is still grabbed, then a subsequent event for it will still cause both devices to freeze). - SyncBoth + SyncBoth has no effect unless both pointer and keyboard are frozen by the client. If the pointer or keyboard is frozen twice by the client on behalf of two separate grabs, - SyncBoth + SyncBoth thaws for both (but a subsequent freeze for - SyncBoth + SyncBoth will only freeze each device once). - AsyncBoth + AsyncBoth If the pointer and the keyboard are frozen by the client, event processing for both devices continues as usual. If a device is frozen twice by the client on behalf of two separate grabs, - AsyncBoth + AsyncBoth thaws for both. - AsyncBoth + AsyncBoth has no effect unless both pointer and keyboard are frozen by the client. @@ -1707,16 +1707,16 @@ Depending on the event_mode argument, the following occurs: -AsyncPointer, -SyncPointer, +AsyncPointer, +SyncPointer, and -ReplayPointer +ReplayPointer have no effect on the processing of keyboard events. -AsyncKeyboard, -SyncKeyboard, +AsyncKeyboard, +SyncKeyboard, and -ReplayKeyboard +ReplayKeyboard have no effect on the processing of pointer events. It is possible for both a pointer grab and a keyboard grab (by the same @@ -1729,14 +1729,14 @@ the freeze must be released on behalf of both grabs before events can again be processed. If a device is frozen twice by a single client, then a single -AllowEvents +XAllowEvents releases both. XAllowEvents can generate a -BadValue +BadValue error. @@ -1760,7 +1760,7 @@ To move the pointer to an arbitrary point in a window, use - XWarpPointer + XWarpPointer Display *display Windowsrc_w, dest_w intsrc_x, src_y @@ -1787,7 +1787,7 @@ Specifies the connection to the X server. Specifies the source window or -None. +None. @@ -1798,7 +1798,7 @@ Specifies the source window or Specifies the destination window or -None. +None. @@ -1872,7 +1872,7 @@ Specify the x and y coordinates within the destination window. If dest_w is -None, +None, XWarpPointer moves the pointer by the offsets (dest_x, dest_y) relative to the current position of the pointer. @@ -1908,7 +1908,7 @@ confine_to window. XWarpPointer can generate a -BadWindow +BadWindow error. @@ -1934,7 +1934,7 @@ To set the input focus, use - XSetInputFocus + XSetInputFocus Display *display Window focus int revert_to @@ -1960,9 +1960,9 @@ Specifies the connection to the X server. Specifies the window, -PointerRoot, +PointerRoot, or -None. +None. @@ -1975,10 +1975,10 @@ or Specifies where the input focus reverts to if the window becomes not viewable. You can pass -RevertToParent, -RevertToPointerRoot, +RevertToParent, +RevertToPointerRoot, or -RevertToNone. +RevertToNone. @@ -1990,7 +1990,7 @@ or Specifies the time. You can pass either a timestamp or -CurrentTime. +CurrentTime. @@ -2005,13 +2005,13 @@ function changes the input focus and the last-focus-change time. It has no effect if the specified time is earlier than the current last-focus-change time or is later than the current X server time. Otherwise, the last-focus-change time is set to the specified time -(CurrentTime +(CurrentTime is replaced by the current X server time). XSetInputFocus causes the X server to generate -FocusIn +FocusIn and -FocusOut +FocusOut events. @@ -2023,7 +2023,7 @@ the following occurs: If focus is -None, +None, all keyboard events are discarded until a new focus window is set, and the revert_to argument is ignored. @@ -2040,7 +2040,7 @@ Otherwise, the event is reported relative to the focus window. If focus is -PointerRoot, +PointerRoot, the focus window is dynamically taken to be the root window of whatever screen the pointer is on at each keyboard event. In this case, the revert_to argument is ignored. @@ -2053,7 +2053,7 @@ The specified focus window must be viewable at the time XSetInputFocus is called, or a -BadMatch +BadMatch error results. If the focus window later becomes not viewable, the X server @@ -2063,28 +2063,28 @@ evaluates the revert_to argument to determine the new focus window as follows: If revert_to is -RevertToParent, +RevertToParent, the focus reverts to the parent (or the closest viewable ancestor), and the new revert_to value is taken to be -RevertToNone. +RevertToNone. If revert_to is -RevertToPointerRoot +RevertToPointerRoot or -RevertToNone, +RevertToNone, the focus reverts to -PointerRoot +PointerRoot or -None, +None, respectively. When the focus reverts, the X server generates -FocusIn +FocusIn and -FocusOut +FocusOut events, but the last-focus-change time is not affected. @@ -2093,10 +2093,10 @@ events, but the last-focus-change time is not affected. XSetInputFocus can generate -BadMatch, -BadValue, +BadMatch, +BadValue, and -BadWindow +BadWindow errors. @@ -2108,7 +2108,7 @@ To obtain the current input focus, use - XGetInputFocus + XGetInputFocus Display *display Window *focus_return int *revert_to_return @@ -2133,9 +2133,9 @@ Specifies the connection to the X server. Returns the focus window, -PointerRoot, +PointerRoot, or -None. +None. @@ -2146,10 +2146,10 @@ or Returns the current focus state -(RevertToParent, -RevertToPointerRoot, +(RevertToParent, +RevertToPointerRoot, or -RevertToNone). +RevertToNone). @@ -2194,7 +2194,7 @@ parameters. The XChangeKeyboardControl function changes control of a keyboard and operates on a -XKeyboardControl +XKeyboardControl structure: @@ -2235,7 +2235,7 @@ The key_click_percent member sets the volume for key clicks between 0 (off) and 100 (loud) inclusive, if possible. A setting of -1 restores the default. Other negative values generate a -BadValue +BadValue error. @@ -2244,18 +2244,18 @@ The bell_percent sets the base volume for the bell between 0 (off) and 100 (loud) inclusive, if possible. A setting of -1 restores the default. Other negative values generate a -BadValue +BadValue error. The bell_pitch member sets the pitch (specified in Hz) of the bell, if possible. A setting of -1 restores the default. Other negative values generate a -BadValue +BadValue error. The bell_duration member sets the duration of the bell specified in milliseconds, if possible. A setting of -1 restores the default. Other negative values generate a -BadValue +BadValue error. @@ -2263,31 +2263,31 @@ error. If both the led_mode and led members are specified, the state of that LED is changed, if possible. The led_mode member can be set to -LedModeOn +LedModeOn or -LedModeOff. +LedModeOff. If only led_mode is specified, the state of all LEDs are changed, if possible. At most 32 LEDs numbered from one are supported. No standard interpretation of LEDs is defined. If led is specified without led_mode, a -BadMatch +BadMatch error results. If both the auto_repeat_mode and key members are specified, the auto_repeat_mode of that key is changed (according to -AutoRepeatModeOn, -AutoRepeatModeOff, +AutoRepeatModeOn, +AutoRepeatModeOff, or -AutoRepeatModeDefault), +AutoRepeatModeDefault), if possible. If only auto_repeat_mode is specified, the global auto_repeat_mode for the entire keyboard is changed, if possible, and does not affect the per-key settings. If a key is specified without an auto_repeat_mode, a -BadMatch +BadMatch error results. Each key has an individual mode of whether or not it should auto-repeat and a default setting for the mode. @@ -2295,15 +2295,15 @@ In addition, there is a global mode of whether auto-repeat should be enabled or not and a default setting for that mode. When global mode is -AutoRepeatModeOn, +AutoRepeatModeOn, keys should obey their individual auto-repeat modes. When global mode is -AutoRepeatModeOff, +AutoRepeatModeOff, no keys should auto-repeat. An auto-repeating key generates alternating -KeyPress +KeyPress and -KeyRelease +KeyRelease events. When a key is used as a modifier, it is desirable for the key not to auto-repeat, @@ -2323,7 +2323,7 @@ If an error is generated, a subset of the controls may have been altered. - XChangeKeyboardControl + XChangeKeyboardControl Display *display unsignedlong value_mask XKeyboardControl *values @@ -2370,7 +2370,7 @@ Specifies one value for each bit set to 1 in the mask. The XChangeKeyboardControl function controls the keyboard characteristics defined by the -XKeyboardControl +XKeyboardControl structure. The value_mask argument specifies which values are to be changed. @@ -2378,9 +2378,9 @@ The value_mask argument specifies which values are to be changed. XChangeKeyboardControl can generate -BadMatch +BadMatch and -BadValue +BadValue errors. @@ -2392,7 +2392,7 @@ To obtain the current control values for the keyboard, use - XGetKeyboardControl + XGetKeyboardControl Display *display XKeyboardState *values_return @@ -2416,7 +2416,7 @@ Specifies the connection to the X server. Returns the current keyboard controls in the specified -XKeyboardState +XKeyboardState structure. @@ -2429,7 +2429,7 @@ structure. The XGetKeyboardControl function returns the current control values for the keyboard to the -XKeyboardState +XKeyboardState structure. @@ -2457,9 +2457,9 @@ For the LEDs, the least significant bit of led_mask corresponds to LED one, and each bit set to 1 in led_mask indicates an LED that is lit. The global_auto_repeat member can be set to -AutoRepeatModeOn +AutoRepeatModeOn or -AutoRepeatModeOff. +AutoRepeatModeOff. The auto_repeats member is a bit vector. Each bit set to 1 indicates that auto-repeat is enabled for the corresponding key. @@ -2476,7 +2476,7 @@ To turn on keyboard auto-repeat, use - XAutoRepeatOn + XAutoRepeatOn Display *display @@ -2510,7 +2510,7 @@ To turn off keyboard auto-repeat, use - XAutoRepeatOff + XAutoRepeatOff Display *display @@ -2544,7 +2544,7 @@ To ring the bell, use - XBell + XBell Display *display int percent @@ -2583,7 +2583,7 @@ function rings the bell on the keyboard on the specified display, if possible. The specified volume is relative to the base volume for the keyboard. If the value for the percent argument is not in the range -100 to 100 inclusive, a -BadValue +BadValue error results. The volume at which the bell rings when the percent argument is nonnegative is: @@ -2616,7 +2616,7 @@ To change the base volume of the bell, use XBell can generate a -BadValue +BadValue error. @@ -2628,7 +2628,7 @@ To obtain a bit vector that describes the state of the keyboard, use - XQueryKeymap + XQueryKeymap Display *display char keys_return[32] @@ -2684,7 +2684,7 @@ To set the mapping of the pointer buttons, use - int XSetPointerMapping + int XSetPointerMapping Display *display unsignedchar map[] int nmap @@ -2731,36 +2731,36 @@ The XSetPointerMapping function sets the mapping of the pointer. If it succeeds, the X server generates a -MappingNotify +MappingNotify event, and XSetPointerMapping returns -MappingSuccess. +MappingSuccess. Element map[i] defines the logical button number for the physical button i+1. The length of the list must be the same as XGetPointerMapping would return, or a -BadValue +BadValue error results. A zero element disables a button, and elements are not restricted in value by the number of physical buttons. However, no two elements can have the same nonzero value, or a -BadValue +BadValue error results. If any of the buttons to be altered are logically in the down state, XSetPointerMapping returns -MappingBusy, +MappingBusy, and the mapping is not changed. XSetPointerMapping can generate a -BadValue +BadValue error. @@ -2772,7 +2772,7 @@ To get the pointer mapping, use - int XGetPointerMapping + int XGetPointerMapping Display *display unsignedchar map_return[] int nmap @@ -2835,7 +2835,7 @@ To control the pointer's interactive feel, use - XChangePointerControl + XChangePointerControl Display *display Booldo_accel, do_threshold intaccel_numerator, accel_denominator @@ -2924,11 +2924,11 @@ only takes effect if the pointer moves more than threshold pixels at once and only applies to the amount beyond the value in the threshold argument. Setting a value to -1 restores the default. The values of the do_accel and do_threshold arguments must be -True +True for the pointer values to be set, or the parameters are unchanged. Negative values (other than -1) generate a -BadValue +BadValue error, as does a zero value for the accel_denominator argument. @@ -2936,7 +2936,7 @@ for the accel_denominator argument. XChangePointerControl can generate a -BadValue +BadValue error. @@ -2948,7 +2948,7 @@ To get the current pointer parameters, use - XGetPointerControl + XGetPointerControl Display *display int*accel_numerator_return, *accel_denominator_return int *threshold_return @@ -3035,14 +3035,14 @@ standards. In areas where no standards exist, some of these sets are derived from Digital Equipment Corporation standards. The list of defined symbols can be found in - +<X11/keysymdef.h>. Unfortunately, some C preprocessors have limits on the number of defined symbols. If you must use KeySyms not in the Latin 1-4, Greek, and miscellaneous classes, you may have to define a symbol for those sets. Most applications usually only include - +<X11/keysym.h>, which defines symbols for ISO Latin 1-4, Greek, and miscellaneous. @@ -3050,22 +3050,22 @@ which defines symbols for ISO Latin 1-4, Greek, and miscellaneous. A list of KeySyms is associated with each KeyCode. The list is intended to convey the set of symbols on the corresponding key. If the list (ignoring trailing -NoSymbol +NoSymbol entries) is a single KeySym ``K'', then the list is treated as if it were the list ``K NoSymbol K NoSymbol''. If the list (ignoring trailing -NoSymbol +NoSymbol entries) is a pair of KeySyms ``K1 K2'', then the list is treated as if it were the list ``K1 K2 K1 K2''. If the list (ignoring trailing -NoSymbol +NoSymbol entries) is a triple of KeySyms ``K1 K2 K3'', then the list is treated as if it were the list ``K1 K2 K3 NoSymbol''. When an explicit ``void'' element is desired in the list, the value -VoidSymbol +VoidSymbol can be used. @@ -3075,7 +3075,7 @@ Group 1 contains the first and second KeySyms; Group 2 contains the third and fourth KeySyms. Within each group, if the second element of the group is -NoSymbol, +NoSymbol, then the group should be treated as if the second element were the same as the first element, except when the first element is an alphabetic KeySym ``K'' @@ -3088,16 +3088,16 @@ the uppercase form of ``K''. The standard rules for obtaining a KeySym from a -KeyPress +KeyPress event make use of only the Group 1 and Group 2 KeySyms; no interpretation of other KeySyms in the list is given. Which group to use is determined by the modifier state. Switching between groups is controlled by the KeySym named MODE SWITCH, by attaching that KeySym to some KeyCode and attaching that KeyCode to any one of the modifiers -Mod1 +Mod1 through -Mod5. +Mod5. This modifier is called the group modifier. For any KeyCode, Group 1 is used when the group modifier is off, @@ -3106,17 +3106,17 @@ and Group 2 is used when the group modifier is on. The -Lock +Lock modifier is interpreted as CapsLock when the KeySym named XK_Caps_Lock is attached to some KeyCode and that KeyCode is attached to the -Lock +Lock modifier. The -Lock +Lock modifier is interpreted as ShiftLock when the KeySym named XK_Shift_Lock is attached to some KeyCode and that KeyCode is attached to the -Lock +Lock modifier. If the -Lock +Lock modifier could be interpreted as both CapsLock and ShiftLock, the CapsLock interpretation is used. @@ -3125,9 +3125,9 @@ CapsLock and ShiftLock, the CapsLock interpretation is used. The operation of keypad keys is controlled by the KeySym named XK_Num_Lock, by attaching that KeySym to some KeyCode and attaching that KeyCode to any one of the modifiers -Mod1 +Mod1 through -Mod5. +Mod5. This modifier is called the numlock modifier. The standard KeySyms with the prefix ``XK_KP_'' in their @@ -3146,9 +3146,9 @@ rule that is satisfied from the following list: The numlock modifier is on and the second KeySym is a keypad KeySym. In this case, if the -Shift +Shift modifier is on, or if the -Lock +Lock modifier is on and is interpreted as ShiftLock, then the first KeySym is used, otherwise the second KeySym is used. @@ -3157,9 +3157,9 @@ second KeySym is used. The -Shift +Shift and -Lock +Lock modifiers are both off. In this case, the first KeySym is used. @@ -3167,9 +3167,9 @@ KeySym is used. The -Shift +Shift modifier is off, and the -Lock +Lock modifier is on and is interpreted as CapsLock. In this case, the first KeySym is used, but if that KeySym is lowercase alphabetic, then the corresponding uppercase @@ -3179,9 +3179,9 @@ KeySym is used instead. The -Shift +Shift modifier is on, and the -Lock +Lock modifier is on and is interpreted as CapsLock. In this case, the second KeySym is used, but if that KeySym is lowercase alphabetic, then the corresponding uppercase KeySym is used @@ -3191,9 +3191,9 @@ instead. The -Shift +Shift modifier is on, or the -Lock +Lock modifier is on and is interpreted as ShiftLock, or both. In this case, the second KeySym is used. @@ -3217,7 +3217,7 @@ To obtain the legal KeyCodes for a display, use - XDisplayKeycodes + XDisplayKeycodes Display *display int*min_keycodes_return, *max_keycodes_return @@ -3276,7 +3276,7 @@ To obtain the symbols for the specified KeyCodes, use - KeySym *XGetKeyboardMapping + KeySym *XGetKeyboardMapping Display *display KeyCode first_keycode int keycode_count @@ -3339,11 +3339,11 @@ The value specified in first_keycode must be greater than or equal to min_keycode as returned by XDisplayKeycodes, or a -BadValue +BadValue error results. In addition, the following expression must be less than or equal to max_keycode as returned by -XDisplayKeycodes : +XDisplayKeycodes: @@ -3354,7 +3354,7 @@ first_keycode + keycode_count - 1 If this is not the case, a -BadValue +BadValue error results. The number of elements in the KeySyms list is: @@ -3377,7 +3377,7 @@ in the list, counting from zero: The X server arbitrarily chooses the keysyms_per_keycode_return value to be large enough to report all requested symbols. A special KeySym value of -NoSymbol +NoSymbol is used to fill in unused elements for individual KeyCodes. To free the storage returned by @@ -3389,7 +3389,7 @@ use XGetKeyboardMapping can generate a -BadValue +BadValue error. @@ -3401,7 +3401,7 @@ To change the keyboard mapping, use - XChangeKeyboardMapping + XChangeKeyboardMapping Display *display int first_keycode int keysyms_per_keycode @@ -3486,13 +3486,13 @@ The specified first_keycode must be greater than or equal to min_keycode returned by XDisplayKeycodes, or a -BadValue +BadValue error results. In addition, the following expression must be less than or equal to max_keycode as returned by XDisplayKeycodes, or a -BadValue +BadValue error results: @@ -3517,16 +3517,16 @@ in keysyms, counting from zero: The specified keysyms_per_keycode can be chosen arbitrarily by the client to be large enough to hold all desired symbols. A special KeySym value of -NoSymbol +NoSymbol should be used to fill in unused elements for individual KeyCodes. It is legal for -NoSymbol +NoSymbol to appear in nontrailing positions of the effective list for a KeyCode. XChangeKeyboardMapping generates a -MappingNotify +MappingNotify event. @@ -3538,15 +3538,15 @@ It is merely stored for reading and writing by clients. XChangeKeyboardMapping can generate -BadAlloc +BadAlloc and -BadValue +BadValue errors. The next six functions make use of the -XModifierKeymap +XModifierKeymap data structure, which contains: @@ -3566,14 +3566,14 @@ typedef struct { To create an -XModifierKeymap +XModifierKeymap structure, use XNewModifiermap. XNewModifiermap - XModifierKeymap *XNewModifiermap + XModifierKeymap *XNewModifiermap int max_keys_per_mod @@ -3598,21 +3598,21 @@ in the map. The XNewModifiermap function returns a pointer to -XModifierKeymap +XModifierKeymap structure for later use. To add a new entry to an -XModifierKeymap +XModifierKeymap structure, use XInsertModifiermapEntry. XInsertModifiermapEntry - XModifierKeymap *XInsertModifiermapEntry + XModifierKeymap *XInsertModifiermapEntry XModifierKeymap *modmap KeyCode keycode_entry int modifier @@ -3627,7 +3627,7 @@ structure, use Specifies the -XModifierKeymap +XModifierKeymap structure. @@ -3661,21 +3661,21 @@ The XInsertModifiermapEntry function adds the specified KeyCode to the set that controls the specified modifier and returns the resulting -XModifierKeymap +XModifierKeymap structure (expanded as needed). To delete an entry from an -XModifierKeymap +XModifierKeymap structure, use XDeleteModifiermapEntry. XDeleteModifiermapEntry - XModifierKeymap *XDeleteModifiermapEntry + XModifierKeymap *XDeleteModifiermapEntry XModifierKeymap *modmap KeyCode keycode_entry int modifier @@ -3690,7 +3690,7 @@ structure, use Specifies the -XModifierKeymap +XModifierKeymap structure. @@ -3724,21 +3724,21 @@ The XDeleteModifiermapEntry function deletes the specified KeyCode from the set that controls the specified modifier and returns a pointer to the resulting -XModifierKeymap +XModifierKeymap structure. To destroy an -XModifierKeymap +XModifierKeymap structure, use XFreeModifiermap. XFreeModifiermap - XFreeModifiermap + XFreeModifiermap XModifierKeymap *modmap @@ -3751,7 +3751,7 @@ structure, use Specifies the -XModifierKeymap +XModifierKeymap structure. @@ -3764,7 +3764,7 @@ structure. The XFreeModifiermap function frees the specified -XModifierKeymap +XModifierKeymap structure. @@ -3776,7 +3776,7 @@ To set the KeyCodes to be used as modifiers, use - int XSetModifierMapping + int XSetModifierMapping Display *display XModifierKeymap *modmap @@ -3800,7 +3800,7 @@ Specifies the connection to the X server. Specifies the -XModifierKeymap +XModifierKeymap structure. @@ -3816,41 +3816,41 @@ function specifies the KeyCodes of the keys (if any) that are to be used as modifiers. If it succeeds, the X server generates a -MappingNotify +MappingNotify event, and XSetModifierMapping returns -MappingSuccess. +MappingSuccess. X permits at most 8 modifier keys. If more than 8 are specified in the -XModifierKeymap +XModifierKeymap structure, a -BadLength +BadLength error results. The modifiermap member of the -XModifierKeymap +XModifierKeymap structure contains 8 sets of max_keypermod KeyCodes, one for each modifier in the order -Shift, -Lock, -Control, -Mod1, -Mod2, -Mod3, -Mod4, +Shift, +Lock, +Control, +Mod1, +Mod2, +Mod3, +Mod4, and -Mod5. +Mod5. Only nonzero KeyCodes have meaning in each set, and zero KeyCodes are ignored. In addition, all of the nonzero KeyCodes must be in the range specified by min_keycode and max_keycode in the -Display +Display structure, or a -BadValue +BadValue error results. @@ -3862,23 +3862,23 @@ if auto-repeat cannot be disabled on certain keys, or if multiple modifier keys are not supported. If some such restriction is violated, the status reply is -MappingFailed, +MappingFailed, and none of the modifiers are changed. If the new KeyCodes specified for a modifier differ from those currently defined and any (current or new) keys for that modifier are in the logically down state, XSetModifierMapping returns -MappingBusy, +MappingBusy, and none of the modifiers is changed. XSetModifierMapping can generate -BadAlloc +BadAlloc and -BadValue +BadValue errors. @@ -3890,7 +3890,7 @@ To obtain the KeyCodes used as modifiers, use - XModifierKeymap *XGetModifierMapping + XModifierKeymap *XGetModifierMapping Display *display @@ -3914,7 +3914,7 @@ Specifies the connection to the X server. The XGetModifierMapping function returns a pointer to a newly created -XModifierKeymap +XModifierKeymap structure that contains the keys being used as modifiers. The structure should be freed after use by calling XFreeModifiermap. diff --git a/libX11/specs/libX11/CH13.xml b/libX11/specs/libX11/CH13.xml index 06564c3da..f7809f665 100644 --- a/libX11/specs/libX11/CH13.xml +++ b/libX11/specs/libX11/CH13.xml @@ -105,14 +105,14 @@ To determine if the current locale is supported by X, use The XSupportsLocale function returns -True +True if Xlib functions are capable of operating under the current locale. If it returns -False, +False, Xlib locale-dependent functions for which the -XLocaleNotSupported +XLocaleNotSupported return status is defined will return -XLocaleNotSupported. +XLocaleNotSupported. Other Xlib locale-dependent routines will operate in the ``C'' locale. @@ -145,7 +145,7 @@ To configure Xlib locale modifiers for the current locale, use - char *XSetLocaleModifiers + char *XSetLocaleModifiers char *modifier_list @@ -321,16 +321,16 @@ the following table describes the locale (and modifiers) dependency: setlocale XrmGetFileDatabase - Locale of XrmDatabase + Locale of XrmDatabase XrmGetStringDatabase - XrmDatabase + XrmDatabase XrmPutFileDatabase - Locale of XrmDatabase + Locale of XrmDatabase @@ -390,7 +390,7 @@ the following table describes the locale (and modifiers) dependency: XIM selection - XIM + XIM XCreateIC XIC input method configuration @@ -400,7 +400,7 @@ the following table describes the locale (and modifiers) dependency: Queried locale - XIC + XIC XmbLookupString Keyboard layout @@ -427,7 +427,7 @@ the following table describes the locale (and modifiers) dependency: Charsets of fonts in XFontSet - XOM + XOM XCreateOC XOC output method configuration @@ -437,7 +437,7 @@ the following table describes the locale (and modifiers) dependency: Queried locale - XFontSet + XFontSet XmbDrawText, Locale of supplied text @@ -520,17 +520,17 @@ to the ANSI C variable argument list calling convention. Each function denoted with an argument of the form ``...'' takes a variable-length list of name and value pairs, where each name is a string and each value is of type -XPointer. +XPointer. A name argument that is NULL identifies the end of the list. A variable-length argument list may contain a nested list. If the name -XNVaNestedList +XNVaNestedList is specified in place of an argument name, then the following value is interpreted as an -XVaNestedList +XVaNestedList value that specifies a list of values logically inserted into the original list at the point of declaration. A NULL identifies the end of a nested list. @@ -544,7 +544,7 @@ To allocate a nested variable argument list dynamically, use - XVaNestedList XVaCreateNestedList + XVaNestedList XVaCreateNestedList int dummy @@ -706,14 +706,14 @@ the output method for clients. The abstraction used to communicate with an output method is an opaque data structure represented by the -XOM +XOM data type. The abstraction for representing the state of a particular output thread is called an output context. The Xlib representation of an output context is an -XOC, +XOC, which is compatible with -XFontSet +XFontSet in terms of its functional interface, but is a broader, more generalized abstraction. @@ -731,7 +731,7 @@ To open an output method, use - XOM XOpenOM + XOM XOpenOM Display *display XrmDatabase db char *res_name @@ -849,7 +849,7 @@ To close an output method, use - Status XCloseOM + Status XCloseOM XOM om @@ -883,7 +883,7 @@ To set output method attributes, use - char * + char *XSetOMValues XOM om @@ -936,7 +936,7 @@ To query an output method, use - char * + char *XGetOMValues XOM om @@ -984,7 +984,7 @@ To obtain the display associated with an output method, use - Display * + Display *XDisplayOfOM XOM om @@ -1018,7 +1018,7 @@ To get the locale associated with an output method, use - char * + char *XLocaleOfOM XOM om @@ -1095,19 +1095,19 @@ The following key applies to this table. - XNRequiredCharSet + XNRequiredCharSet G - XNQueryOrientation + XNQueryOrientation G - XNDirectionalDependentDrawing + XNDirectionalDependentDrawing G - XNContextualDrawing + XNContextualDrawing G @@ -1125,16 +1125,16 @@ The following key applies to this table. The -XNRequiredCharSet +XNRequiredCharSet argument returns the list of charsets that are required for loading the fonts needed for the locale. The value of the argument is a pointer to a structure of type -XOMCharSetList. +XOMCharSetList. The -XOMCharSetList +XOMCharSetList structure is defined as follows: XOMCharSetList @@ -1163,7 +1163,7 @@ freed by the client. It will be freed by a call to XCloseOM with the associated -XOM. +XOM. Until freed, its contents will not be modified by Xlib. @@ -1178,15 +1178,15 @@ Until freed, its contents will not be modified by Xlib. The -XNQueryOrientation +XNQueryOrientation argument returns the global orientation of text when drawn. Other than -XOMOrientation_LTR_TTB, +XOMOrientation_LTR_TTB, the set of orientations supported is locale-dependent. The value of the argument is a pointer to a structure of type -XOMOrientation. +XOMOrientation. Clients are responsible for freeing the -XOMOrientation +XOMOrientation structure by using XFree; this also frees the contents of the structure. @@ -1219,31 +1219,31 @@ The possible value for XOrientation may be: -XOMOrientation_LTR_TTB +XOMOrientation_LTR_TTB left-to-right, top-to-bottom global orientation -XOMOrientation_RTL_TTB +XOMOrientation_RTL_TTB right-to-left, top-to-bottom global orientation -XOMOrientation_TTB_LTR +XOMOrientation_TTB_LTR top-to-bottom, left-to-right global orientation -XOMOrientation_TTB_RTL +XOMOrientation_TTB_RTL top-to-bottom, right-to-left global orientation -XOMOrientation_Context +XOMOrientation_Context contextual global orientation @@ -1260,15 +1260,15 @@ contextual global orientation The -XNDirectionalDependentDrawing +XNDirectionalDependentDrawing argument indicates whether the text rendering functions implement implicit handling of directional text. If this value is -True, +True, the output method has knowledge of directional dependencies and reorders text as necessary when rendering text. If this value is -False, +False, the output method does not implement any directional text handling, and all character directions are assumed to be left-to-right. @@ -1293,10 +1293,10 @@ function. The -XNContextualDrawing +XNContextualDrawing argument indicates whether the text rendering functions implement implicit context-dependent drawing. If this value is -True, +True, the output method has knowledge of context dependencies and performs character shape editing, combining glyphs to present a single character as necessary. The actual shape editing is @@ -1328,22 +1328,22 @@ It is intended that output methods be controlled by these XOC As new XOC values are created, they should be registered with the X Consortium. An -XOC +XOC can be used anywhere an -XFontSet +XFontSet can be used, and vice versa; -XFontSet +XFontSet is retained for compatibility with previous releases. The concepts of output methods and output contexts include broader, more generalized abstraction than font set, supporting complex and more intelligent text display, and dealing not only with multiple fonts but also with context dependencies. However, -XFontSet +XFontSet is widely used in several interfaces, so -XOC +XOC is defined as an upward compatible type of -XFontSet. +XFontSet. @@ -1354,7 +1354,7 @@ To create an output context, use - XOC XCreateOC + XOC XCreateOC XOM om @@ -1387,7 +1387,7 @@ Specifies the variable-length argument list(Al. The -XCreateOC +XCreateOC function creates an output context within the specified output method. @@ -1428,7 +1428,7 @@ The output method encountered an output method implementation-dependent error. XCreateOC can generate a -BadAtom +BadAtom error. @@ -1440,7 +1440,7 @@ To destroy an output context, use - void XDestroyOC + void XDestroyOC XOC oc @@ -1474,7 +1474,7 @@ To get the output method associated with an output context, use - XOM XOMOfOC + XOM XOMOfOC XOC oc @@ -1521,7 +1521,7 @@ To set XOC values, use - char * + char *XSetOCValues XOC oc @@ -1586,7 +1586,7 @@ matching the data type imposed by the semantics of the argument. XSetOCValues can generate a -BadAtom +BadAtom error. @@ -1598,7 +1598,7 @@ To obtain XOC values, use - char * + char *XGetOCValues XOC oc @@ -1774,7 +1774,7 @@ The following keys apply to this table. The -XNBaseFontName +XNBaseFontName argument is a list of base font names that Xlib uses to load the fonts needed for the locale. The base font names are a comma-separated list. The string is null-terminated @@ -1817,7 +1817,7 @@ returns NULL. When querying for the -XNBaseFontName +XNBaseFontName XOC value, XGetOCValues returns a null-terminated string identifying the base font names that @@ -1827,7 +1827,7 @@ the client. The string will be freed by a call to XDestroyOC with the associated -XOC. +XOC. Until freed, the string contents will not be modified by Xlib. @@ -1839,11 +1839,11 @@ Until freed, the string contents will not be modified by Xlib. The -XNMissingCharSet +XNMissingCharSet argument returns the list of required charsets that are missing from the font set. The value of the argument is a pointer to a structure of type -XOMCharSetList. +XOMCharSetList. @@ -1864,7 +1864,7 @@ freed by the client. It will be freed by a call to XDestroyOC with the associated -XOC. +XOC. Until freed, its contents will not be modified by Xlib. @@ -1876,14 +1876,14 @@ Until freed, its contents will not be modified by Xlib. When a drawing or measuring function is called with an -XOC +XOC that has missing charsets, some characters in the locale will not be drawable. The -XNDefaultString +XNDefaultString argument returns a pointer to a string that represents the glyphs that are drawn with this -XOC +XOC when the charsets of the available fonts do not include all glyphs required to draw a character. The string does not necessarily consist of valid characters @@ -1891,12 +1891,12 @@ in the current locale and is not necessarily drawn with the fonts loaded for the font set, but the client can draw or measure the default glyphs by including this string in a string being drawn or measured with the -XOC. +XOC. If the -XNDefaultString +XNDefaultString argument returned the empty string (""), no glyphs are drawn and the escapement is zero. The returned string is null-terminated. @@ -1904,7 +1904,7 @@ It is owned by Xlib and should not be modified or freed by the client. It will be freed by a call to XDestroyOC with the associated -XOC. +XOC. Until freed, its contents will not be modified by Xlib. @@ -1916,39 +1916,39 @@ Until freed, its contents will not be modified by Xlib. The -XNOrientation +XNOrientation argument specifies the current orientation of text when drawn. The value of this argument is one of the values returned by the XGetOMValues function with the -XNQueryOrientation +XNQueryOrientation argument specified in the -XOrientation +XOrientation list. The value of the argument is of type -XOrientation. +XOrientation. When -XNOrientation +XNOrientation is queried, the value specifies the current orientation. When -XNOrientation +XNOrientation is set, a value is used to set the current orientation. When -XOMOrientation_Context +XOMOrientation_Context is set, the text orientation of the text is determined according to an implementation-defined method (for example, ISO 6429 control sequences), and the initial text orientation for locale-dependent Xlib functions is assumed to be -XOMOrientation_LTR_TTB. +XOMOrientation_LTR_TTB. The -XNOrientation +XNOrientation value does not change the prime drawing direction for Xlib drawing functions. @@ -1961,9 +1961,9 @@ for Xlib drawing functions. The -XNResourceName +XNResourceName and -XNResourceClass +XNResourceClass arguments are strings that specify the full name and class used by the client to obtain resources for the display of the output context. These values should be used as prefixes for name and class @@ -1979,9 +1979,9 @@ set as resources. When querying for the -XNResourceName +XNResourceName or -XNResourceClass +XNResourceClass XOC value, XGetOCValues returns a null-terminated string. @@ -1990,7 +1990,7 @@ the client. The string will be freed by a call to XDestroyOC with the associated -XOC +XOC or when the associated value is changed via XSetOCValues. Until freed, the string contents will not be modified by Xlib. @@ -2004,13 +2004,13 @@ Until freed, the string contents will not be modified by Xlib. The -XNFontInfo +XNFontInfo argument specifies a list of one or more -XFontStruct +XFontStruct structures and font names for the fonts used for drawing by the given output context. The value of the argument is a pointer to a structure of type -XOMFontInfo. +XOMFontInfo. @@ -2029,13 +2029,13 @@ typedef struct { A list of pointers to the -XFontStruct +XFontStruct structures is returned to font_struct_list. A list of pointers to null-terminated, fully-specified font name strings in the locale of the output context is returned to font_name_list. The font_name_list order corresponds to the font_struct_list order. The number of -XFontStruct +XFontStruct structures and font names is returned to num_font. @@ -2046,31 +2046,31 @@ there is no provision for mapping a character or default string to the font properties, font ID, or direction hint for the font for the character. The client may access the -XFontStruct +XFontStruct list to obtain these values for all the fonts currently in use. Xlib does not guarantee that fonts are loaded from the server at the creation of an -XOC. +XOC. Xlib may choose to cache font data, loading it only as needed to draw text or compute text dimensions. Therefore, existence of the per_char metrics in the -XFontStruct +XFontStruct structures in the -XFontStructSet +XFontStructSet is undefined. Also, note that all properties in the -XFontStruct +XFontStruct structures are in the STRING encoding. The client must not free the -XOMFontInfo +XOMFontInfo struct itself; it will be freed when the -XOC +XOC is closed. @@ -2082,7 +2082,7 @@ is closed. The -XNOMAutomatic +XNOMAutomatic argument returns whether the associated output context was created by XCreateFontSet or not. Because the @@ -2096,9 +2096,9 @@ However, it is possible that a client does not know how the output context was created. Before a client destroys the output context, it can query whether -XNOMAutomatic +XNOMAutomatic is set to determine whether -XFreeFontSet +XFreeFontSet or XDestroyOC should be used to destroy the output context. @@ -2117,10 +2117,10 @@ as needed for the locale of the text. Fonts are loaded according to a list of base font names supplied by the client and the charsets required by the locale. The -XFontSet +XFontSet is an opaque type representing the state of a particular output thread and is equivalent to the type -XOC. +XOC. @@ -2129,15 +2129,15 @@ The XCreateFontSet function is a convenience function for creating an output context using only default values. The returned -XFontSet +XFontSet has an implicitly created -XOM. +XOM. This -XOM +XOM has an OM value -XNOMAutomatic +XNOMAutomatic automatically set to -True +True so that the output context self indicates whether it was created by XCreateOC or @@ -2146,7 +2146,7 @@ or - XFontSet XCreateFontSet + XFontSet XCreateFontSet Display *display char *base_font_name_list char ***missing_charset_list_return @@ -2256,7 +2256,7 @@ function will return this XLFD name instead of the client-sup Xlib uses the following algorithm to select the fonts that will be used to display text with the -XFontSet. +XFontSet. @@ -2269,9 +2269,9 @@ of the following cases that names a set of fonts that exist at the server: The first XLFD-conforming base font name that specifies the required charset or a superset of the required charset in its -CharSetRegistry +CharSetRegistry and -CharSetEncoding +CharSetEncoding fields. The implementation may use a base font name whose specified charset is a superset of the required charset, for example, @@ -2297,9 +2297,9 @@ if a JIS Roman font is not available. The first XLFD-conforming font name or the first non-XLFD font name for which an XLFD font name can be obtained, combined with the required charset (replacing the -CharSetRegistry +CharSetRegistry and -CharSetEncoding +CharSetEncoding fields in the XLFD font name). As in case 1, the implementation may use a charset that is a superset @@ -2384,7 +2384,7 @@ is set to zero. If fonts exist for all of the charsets required by the current locale, XCreateFontSet returns a valid -XFontSet, +XFontSet, missing_charset_list_return is set to NULL, and missing_charset_count_return is set to zero. @@ -2409,20 +2409,20 @@ returns NULL. Otherwise, XCreateFontSet returns a valid -XFontSet +XFontSet to font_set. When an Xmb/wc drawing or measuring function is called with an -XFontSet +XFontSet that has missing charsets, some characters in the locale will not be drawable. If def_string_return is non-NULL, XCreateFontSet returns a pointer to a string that represents the glyphs that are drawn with this -XFontSet +XFontSet when the charsets of the available fonts do not include all font glyphs required to draw a codepoint. The string does not necessarily consist of valid characters @@ -2430,7 +2430,7 @@ in the current locale and is not necessarily drawn with the fonts loaded for the font set, but the client can draw and measure the default glyphs by including this string in a string being drawn or measured with the -XFontSet. +XFontSet. @@ -2441,7 +2441,7 @@ It is owned by Xlib and should not be modified or freed by the client. It will be freed by a call to XFreeFontSet with the associated -XFontSet. +XFontSet. Until freed, its contents will not be modified by Xlib. @@ -2453,7 +2453,7 @@ operation in the case that some fonts did not exist. The returned -XFontSet +XFontSet and missing charset list should be freed with XFreeFontSet and @@ -2467,16 +2467,16 @@ by the client after calling To obtain a list of -XFontStruct +XFontStruct structures and full font names given an -XFontSet, +XFontSet, use XFontsOfFontSet. XFontsOfFontSet - int XFontsOfFontSet + int XFontsOfFontSet XFontSet font_set XFontStruct ***font_struct_list_return char ***font_name_list_return @@ -2522,17 +2522,17 @@ Returns the list of font names. The XFontsOfFontSet function returns a list of one or more -XFontStructs +XFontStructs and font names for the fonts used by the Xmb and Xwc layers for the given font set. A list of pointers to the -XFontStruct +XFontStruct structures is returned to font_struct_list_return. A list of pointers to null-terminated, fully specified font name strings in the locale of the font set is returned to font_name_list_return. The font_name_list order corresponds to the font_struct_list order. The number of -XFontStruct +XFontStruct structures and font names is returned as the value of the function. @@ -2543,49 +2543,49 @@ there is no provision for mapping a character or default string to the font properties, font ID, or direction hint for the font for the character. The client may access the -XFontStruct +XFontStruct list to obtain these values for all the fonts currently in use. Xlib does not guarantee that fonts are loaded from the server at the creation of an -XFontSet. +XFontSet. Xlib may choose to cache font data, loading it only as needed to draw text or compute text dimensions. Therefore, existence of the per_char metrics in the -XFontStruct +XFontStruct structures in the -XFontStructSet +XFontStructSet is undefined. Also, note that all properties in the -XFontStruct +XFontStruct structures are in the STRING encoding. The -XFontStruct +XFontStruct and font name lists are owned by Xlib and should not be modified or freed by the client. They will be freed by a call to XFreeFontSet with the associated -XFontSet. +XFontSet. Until freed, their contents will not be modified by Xlib. To obtain the base font name list and the selected font name list given an -XFontSet, +XFontSet, use XBaseFontNameListOfFontSet. XBaseFontNameListOfFontSet - char *XBaseFontNameListOfFontSet + char *XBaseFontNameListOfFontSet XFontSet font_set @@ -2610,7 +2610,7 @@ The XBaseFontNameListOfFontSet function returns the original base font name list supplied by the client when the -XFontSet +XFontSet was created. A null-terminated string containing a list of comma-separated font names is returned @@ -2633,21 +2633,21 @@ freed by the client. It will be freed by a call to XFreeFontSet with the associated -XFontSet. +XFontSet. Until freed, its contents will not be modified by Xlib. To obtain the locale name given an -XFontSet, +XFontSet, use XLocaleOfFontSet. XLocaleOfFontSet - char *XLocaleOfFontSet + char *XLocaleOfFontSet XFontSet font_set @@ -2672,7 +2672,7 @@ The XLocaleOfFontSet function returns the name of the locale bound to the specified -XFontSet, +XFontSet, as a null-terminated string. @@ -2682,7 +2682,7 @@ and should not be modified or freed by the client. It may be freed by a call to XFreeFontSet with the associated -XFontSet. +XFontSet. Until freed, it will not be modified by Xlib. @@ -2691,16 +2691,16 @@ Until freed, it will not be modified by Xlib. The XFreeFontSet function is a convenience function for freeing an output context. -XFreeFontSet +XFreeFontSet also frees its associated -XOM +XOM if the output context was created by XCreateFontSet. XFreeFontSet - void XFreeFontSet + void XFreeFontSet Display *display XFontSet font_set @@ -2736,9 +2736,9 @@ The XFreeFontSet function frees the specified font set. The associated base font name list, font name list, -XFontStruct +XFontStruct list, and -XFontSetExtents, +XFontSetExtents, if any, are freed. @@ -2804,7 +2804,7 @@ To find out about direction-dependent rendering, use - Bool XDirectionalDependentDrawing + Bool XDirectionalDependentDrawing XFontSet font_set @@ -2828,10 +2828,10 @@ Specifies the font set. The XDirectionalDependentDrawing function returns -True +True if the drawing functions implement implicit text directionality; otherwise, it returns -False. +False. @@ -2842,7 +2842,7 @@ To find out about context-dependent rendering, use - Bool XContextualDrawing + Bool XContextualDrawing XFontSet font_set @@ -2866,10 +2866,10 @@ Specifies the font set. The XContextualDrawing function returns -True +True if text drawn with the font set might include context-dependent drawing; otherwise, it returns -False. +False. @@ -2880,7 +2880,7 @@ To find out about context-dependent or direction-dependent rendering, use - Bool XContextDependentDrawing + Bool XContextDependentDrawing XFontSet font_set @@ -2904,11 +2904,11 @@ Specifies the font set. The XContextDependentDrawing function returns -True +True if the drawing functions implement implicit text directionality or if text drawn with the font_set might include context-dependent drawing; otherwise, it returns -False. +False. @@ -2923,7 +2923,7 @@ in a text stream. The maximum character extents for the fonts that are used by the text drawing layers can be accessed by the -XFontSetExtents +XFontSetExtents structure: XFontSetExtents @@ -2941,7 +2941,7 @@ typedef struct { The -XRectangle +XRectangle structures used to return font set metrics are the usual Xlib screen-oriented rectangles with x, y giving the upper left corner, and width and height always positive. @@ -2979,22 +2979,22 @@ individual extent. The rectangles for a given character in a string can be obtained from -XmbPerCharExtents +XmbTextPerCharExtents or -XwcPerCharExtents. +XwcTextPerCharExtents. To obtain the maximum extents structure given an -XFontSet, +XFontSet, use XExtentsOfFontSet. XExtentsOfFontSet - XFontSetExtents *XExtentsOfFontSet + XFontSetExtents *XExtentsOfFontSet XFontSet font_set @@ -3018,20 +3018,20 @@ Specifies the font set. The XExtentsOfFontSet function returns an -XFontSetExtents +XFontSetExtents structure for the fonts used by the Xmb and Xwc layers for the given font set. The -XFontSetExtents +XFontSetExtents structure is owned by Xlib and should not be modified or freed by the client. It will be freed by a call to XFreeFontSet with the associated -XFontSet. +XFontSet. Until freed, its contents will not be modified by Xlib. @@ -3047,7 +3047,7 @@ or - int XmbTextEscapement + int XmbTextEscapement XFontSet font_set char *string int num_bytes @@ -3056,7 +3056,7 @@ or - int XwcTextEscapement + int XwcTextEscapement XFontSet font_set wchar_t *string int num_wchars @@ -3139,7 +3139,7 @@ use - int XmbTextExtents + int XmbTextExtents XFontSet font_set char *string int num_bytes @@ -3150,7 +3150,7 @@ use - int XwcTextExtents + int XwcTextExtents XFontSet font_set wchar_t *string int num_wchars @@ -3265,11 +3265,11 @@ should not intersect this rectangle. When the -XFontSet +XFontSet has missing charsets, metrics for each unavailable character are taken from the default string returned by -XCreateFontSet +XCreateFontSet so that the metrics represent the text as it will actually be drawn. The behavior for an invalid codepoint is undefined. @@ -3299,7 +3299,7 @@ or - Status XmbTextPerCharExtents + Status XmbTextPerCharExtents XFontSet font_set char *string int num_bytes @@ -3314,7 +3314,7 @@ or - Status XwcTextPerCharExtents + Status XwcTextPerCharExtents XFontSet font_set wchar_t *string int num_wchars @@ -3462,19 +3462,19 @@ logical_array_return rectangles. Note that an -XRectangle +XRectangle represents the effective drawing dimensions of the character, regardless of the number of font glyphs that are used to draw the character or the direction in which the character is drawn. If multiple characters map to a single character glyph, the dimensions of all the -XRectangles +XRectangles of those characters are the same. When the -XFontSet +XFontSet has missing charsets, metrics for each unavailable character are taken from the default string returned by XCreateFontSet @@ -3521,7 +3521,7 @@ instead of treating the bytes of the string as direct font indexes. See section 8.6 for details of the use of Graphics Contexts (GCs) and possible protocol errors. If a -BadFont +BadFont error is generated, characters prior to the offending character may have been drawn. @@ -3581,7 +3581,7 @@ or - void XmbDrawText + void XmbDrawText Display *display Drawable d GC gc @@ -3593,7 +3593,7 @@ or - void XwcDrawText + void XwcDrawText Display *display Drawable d GC gc @@ -3684,7 +3684,7 @@ Specifies the number of text items in the array. The XmbDrawText and -XwcDrawText +XwcDrawText functions allow complex spacing and font set shifts between text strings. Each text item is processed in turn, with the origin of a text element advanced in the primary draw direction by the escapement of the @@ -3692,11 +3692,11 @@ previous text item. A text item delta specifies an additional escapement of the text item drawing origin in the primary draw direction. A font_set member other than -None +None in an item causes the font set to be used for this and subsequent text items in the text_items list. Leading text items with a font_set member set to -None +None will not be drawn. @@ -3714,7 +3714,7 @@ or and XwcTextPerCharExtents. When the -XFontSet +XFontSet has missing charsets, each unavailable character is drawn with the default string returned by XCreateFontSet. @@ -3732,7 +3732,7 @@ or - void XmbDrawString + void XmbDrawString Display *display Drawable d XFontSet font_set @@ -3745,7 +3745,7 @@ or - void XwcDrawString + void XwcDrawString Display *display Drawable d XFontSet font_set @@ -3860,7 +3860,7 @@ and XwcDrawString functions draw the specified text with the foreground pixel. When the -XFontSet +XFontSet has missing charsets, each unavailable character is drawn with the default string returned by XCreateFontSet. @@ -3878,7 +3878,7 @@ or - void XmbDrawImageString + void XmbDrawImageString Display *display Drawable d XFontSet font_set @@ -3891,7 +3891,7 @@ or - void XwcDrawImageString + void XwcDrawImageString Display *display Drawable d XFontSet font_set @@ -4011,12 +4011,12 @@ The filled rectangle is the rectangle returned to overall_logical_return by or XwcTextExtents for the same text and -XFontSet. +XFontSet. When the -XFontSet +XFontSet has missing charsets, each unavailable character is drawn with the default string returned by XCreateFontSet. @@ -4387,7 +4387,7 @@ but there is only one in a front-end architecture. The abstraction used by a client to communicate with an input method is an opaque data structure represented by the -XIM +XIM data type. This data structure is returned by the XOpenIM @@ -4403,7 +4403,7 @@ A single input server may be used for one or more languages, supporting one or more encoding schemes. But the strings returned from an input method will always be encoded in the (single) locale associated with the -XIM +XIM object. @@ -4421,7 +4421,7 @@ and the user possibly switching among them at any time. The abstraction for representing the state of a particular input thread is called an input context. The Xlib representation of an input context is an -XIC. +XIC. @@ -4440,11 +4440,11 @@ One input context belongs to exactly one input method. Different input contexts may be associated with the same input method, possibly with the same client window. An -XIC +XIC is created with the XCreateIC function, providing an -XIM +XIM argument and affiliating the input context to the input method for its lifetime. When an input method is closed with @@ -4606,19 +4606,19 @@ Before a client provides geometry management for an input method, it must determine if geometry management is needed. The input method indicates the need for geometry management by setting -XIMPreeditArea +XIMPreeditArea or -XIMStatusArea +XIMStatusArea in its -XIMStyles +XIMStyles value returned by XGetIMValues. When a client has decided that it will provide geometry management for an input method, it indicates that decision by setting the -XNInputStyle +XNInputStyle value in the -XIC. +XIC. @@ -4631,7 +4631,7 @@ The geometry is negotiated by the following steps: The client suggests an area to the input method by setting the -XNAreaNeeded +XNAreaNeeded value for that area. If the client has no constraints for the input method, it either will not suggest an area or will set the width and height to zero. @@ -4641,7 +4641,7 @@ Otherwise, it will set one of the values. The client will get the XIC value -XNAreaNeeded. +XNAreaNeeded. The input method will return its suggested size in this value. The input method should pay attention to any constraints suggested by the client. @@ -4650,7 +4650,7 @@ by the client. The client sets the XIC value -XNArea +XNArea to inform the input method of the geometry of its window. The client should try to honor the geometry requested by the input method. The input method must accept this geometry. @@ -4662,9 +4662,9 @@ The input method must accept this geometry. Clients doing geometry management must be aware that setting other XIC values may affect the geometry desired by an input method. For example, -XNFontSet +XNFontSet and -XNLineSpacing +XNLineSpace may change the geometry desired by the input method. @@ -4694,7 +4694,7 @@ to capture X events transparently to clients. It is expected that toolkits (or clients) using XmbLookupString or -XwcLookupString +XwcLookupString will call this filter at some point in the event processing mechanism to make sure that events needed by an input method can be filtered by that input method. @@ -4729,7 +4729,7 @@ to translations such as those the X Toolkit Intrinsics library provides. Clients are expected to get the XIC value -XNFilterEvents +XNFilterEvents and augment the event mask for the client window with that event mask. This mask may be zero. @@ -4793,7 +4793,7 @@ attempting to draw preedit strings that are longer than the available space. Once the display area is exceeded, it is not clear how best to display the preedit string. The visible position feedback masks of -XIMText +XIMText help resolve this problem by allowing the input method to specify hints that indicate the essential portions of the preedit string. For example, such hints can help developers implement @@ -4919,16 +4919,16 @@ functions. String conversion support is dependent on the availability of the -XNStringConversion +XNStringConversion or -XNStringConversionCallback +XNStringConversionCallback XIC values. Because the input method may not support string conversions, clients have to query the availability of string conversion operations by checking the supported XIC values list by calling XGetIMValues with the -XNQueryICValuesList +XNQueryICValuesList IM value. @@ -4936,7 +4936,7 @@ IM value. The difference between these two values is whether the conversion is invoked by the client or the input method. The -XNStringConversion +XNStringConversion XIC value is used by clients to request a string conversion from the input method. The client is responsible for determining which events are used @@ -4945,14 +4945,14 @@ converted should be copied or deleted. The type of conversion is determined by the input method; the client can only pass the string to be converted. The client is guaranteed that no -XNStringConversionCallback +XNStringConversionCallback will be issued when this value is set; thus, the client need only set one of these values. The -XNStringConversionCallback +XNStringConversionCallback XIC value is used by the client to notify the input method that it will accept requests from the input method for string conversion. If this value is set, @@ -4963,13 +4963,13 @@ client-supplied procedure to retrieve the string to be converted. The client's callback procedure is notified whether to copy or delete the string and is provided with hints as to the amount of text needed. The -XIMStringConversionCallbackStruct +XIMStringConversionCallbackStruct specifies which text should be passed back to the input method. Finally, the input method may call the client's -XNStringConversionCallback +XNStringConversionCallback procedure multiple times if the string returned from the callback is not sufficient to perform a successful conversion. The arguments to the client's procedure allow the input method to define a @@ -5048,9 +5048,9 @@ functions are provided: being called. - XSetIMValue, XSetICValue + XSetIMValues, XSetICValues These functions use the XIM and XIC values, - XNDestroyCallback, + XNDestroyCallback, to allow a client to register a callback procedure to be called when Xlib detects that an IM server that was associated with an opened @@ -5115,7 +5115,7 @@ Therefore, clients have to query support of hot keys by checking the supported XIC values list by calling XGetIMValues with the -XNQueryICValuesList +XNQueryICValuesList IM value. When the hot keys specified conflict with the key bindings of the input method, hot keys take precedence over the key bindings of the input @@ -5142,20 +5142,20 @@ retrieving the preedit state of an input context. One method is to query the state by calling XGetICValues with the -XNPreeditState +XNPreeditState XIC value. Another method is to receive notification whenever the preedit state is changed. To receive such notification, an application needs to register a callback by calling XSetICValues with the -XNPreeditStateNotifyCallback +XNPreeditStateNotifyCallback XIC value. In order to change the preedit state programmatically, an application needs to call XSetICValues with -XNPreeditState. +XNPreeditState. @@ -5166,7 +5166,7 @@ query availability of preedit state operations by checking the supported XIC values list by calling XGetIMValues with the -XNQueryICValuesList +XNQueryICValuesList IM value. @@ -5184,7 +5184,7 @@ To open a connection, use - XIM XOpenIM + XIM XOpenIM Display *display XrmDatabase db char *res_name @@ -5305,7 +5305,7 @@ To close a connection, use - Status XCloseIM + Status XCloseIM XIM im @@ -5339,7 +5339,7 @@ To set input method attributes, use - char * + char *XSetIMValues XIM im @@ -5392,7 +5392,7 @@ To query an input method, use - char * + char *XGetIMValues XIM im @@ -5455,7 +5455,7 @@ To obtain the display associated with an input method, use - Display * + Display *XDisplayOfIM XIM im @@ -5489,7 +5489,7 @@ To get the locale associated with an input method, use - char * + char *XLocaleOfIM XIM im @@ -5523,7 +5523,7 @@ To register an input method instantiate callback, use - Bool XRegisterIMInstantiateCallback + Bool XRegisterIMInstantiateCallback Display *display XrmDatabase db char *res_name @@ -5608,9 +5608,9 @@ locale and modifiers. The function returns -True +True if it succeeds; otherwise, it returns -False. +False. @@ -5619,7 +5619,7 @@ The generic prototype is as follows: - void IMInstantiateCallback + void IMInstantiateCallback Display *display XPointer client_data XPointer call_data @@ -5668,7 +5668,7 @@ To unregister an input method instantiation callback, use - Bool XUnregisterIMInstantiateCallback + Bool XUnregisterIMInstantiateCallback Display *display XrmDatabase db char *res_name @@ -5749,9 +5749,9 @@ The function removes an input method instantiation callback previously registered. The function returns -True +True if it succeeds; otherwise, it returns -False. +False. @@ -5817,35 +5817,35 @@ The following keys apply to this table. - XNQueryInputStyle + XNQueryInputStyle G - XNResourceName + XNResourceName D-S-G - XNResourceClass + XNResourceClass D-S-G - XNDestroyCallback + XNDestroyCallback D-S-G - XNQueryIMValuesList + XNQueryIMValuesList G - XNQueryICValuesList + XNQueryICValuesList G - XNVisiblePosition + XNVisiblePosition G - XNR6PreeditCallbackBehavior + XNR6PreeditCallback D-S-G @@ -5854,7 +5854,7 @@ The following keys apply to this table. -XNR6PreeditCallbackBehavior +XNR6PreeditCallback is obsolete and its use is not recommended (see section 13.5.4.6). @@ -5880,9 +5880,9 @@ it should negotiate with the user the continuation of the program The argument value must be a pointer to a location where the returned value will be stored. The returned value is a pointer to a structure of type -XIMStyles. +XIMStyles. Clients are responsible for freeing the -XIMStyles +XIMStyles structure. To do so, use XFree. @@ -5890,7 +5890,7 @@ To do so, use The -XIMStyles +XIMStyles structure is defined as follows: @@ -5934,7 +5934,7 @@ typedef struct { An -XIMStyles +XIMStyles structure contains the number of input styles supported in its count_styles field. This is also the size of the supported_styles array. @@ -5965,41 +5965,41 @@ by the input method for preedit information. - XIMPreeditArea + XIMPreeditArea If chosen, the input method would require the client to provide some area values for it to do its preediting. Refer to XIC values - XNArea + XNArea and - XNAreaNeeded. + XNAreaNeeded. - XIMPreeditPosition + XIMPreeditPosition If chosen, the input method would require the client to provide positional values. Refer to XIC values - XNSpotLocation + XNSpotLocation and - XNFocusWindow. + XNFocusWindow. - XIMPreeditCallbacks + XIMPreeditCallbacks If chosen, the input method would require the client to define the set of preedit callbacks. Refer to XIC values - XNPreeditStartCallback, - XNPreeditDoneCallback, - XNPreeditDrawCallback, + XNPreeditStartCallback, + XNPreeditDoneCallback, + XNPreeditDrawCallback, and - XNPreeditCaretCallback. + XNPreeditCaretCallback. - XIMPreeditNothing + XIMPreeditNothing If chosen, the input method can function without any preedit values. - XIMPreeditNone + XIMPreeditNone The input method does not provide any preedit feedback. Any preedit value is ignored. This style is mutually exclusive with the other preedit styles. @@ -6023,28 +6023,28 @@ by the input method for status information. - XIMStatusArea + XIMStatusArea The input method requires the client to provide some area values for it to do its status feedback. See - XNArea + XNArea and - XNAreaNeeded. + XNAreaNeeded. - XIMStatusCallbacks + XIMStatusCallbacks The input method requires the client to define the set of status callbacks, - XNStatusStartCallback, - XNStatusDoneCallback, + XNStatusStartCallback, + XNStatusDoneCallback, and - XNStatusDrawCallback. + XNStatusDrawCallback. - XIMStatusNothing + XIMStatusNothing The input method can function without any status values. - XIMStatusNone + XIMStatusNone The input method does not provide any status feedback. If chosen, any status value is ignored. This style is mutually exclusive with the other status styles. @@ -6062,9 +6062,9 @@ by the input method for status information. The -XNResourceName +XNResourceName and -XNResourceClass +XNResourceClass arguments are strings that specify the full name and class used by the input method. These values should be used as prefixes for the name and class @@ -6089,10 +6089,10 @@ set as resources. The -XNDestroyCallback +XNDestroyCallback argument is a pointer to a structure of type -XIMCallback. -XNDestroyCallback +XIMCallback. +XNDestroyCallback is triggered when an input method stops its service for any reason. After the callback is invoked, the input method is closed and the associated input context(s) are destroyed by Xlib. @@ -6108,7 +6108,7 @@ The generic prototype of this callback function is as follows: - void DestroyCallback + void DestroyCallback XIM im XPointer client_data XPointer call_data @@ -6164,9 +6164,9 @@ A DestroyCallback is always called with a NULL call_data argument. -XNQueryIMValuesList +XNQueryIMValuesList and -XNQueryICValuesList +XNQueryICValuesList are used to query about XIM and XIC values supported by the input method. @@ -6174,9 +6174,9 @@ are used to query about XIM and XIC values The argument value must be a pointer to a location where the returned value will be stored. The returned value is a pointer to a structure of type -XIMValuesList. +XIMValuesList. Clients are responsible for freeing the -XIMValuesList +XIMValuesList structure. To do so, use XFree. @@ -6184,7 +6184,7 @@ To do so, use The -XIMValuesList +XIMValuesList structure is defined as follows: @@ -6209,24 +6209,24 @@ typedef struct { The -XNVisiblePosition +XNVisiblePosition argument indicates whether the visible position masks of -XIMFeedback +XIMFeedback in -XIMText +XIMText are available. The argument value must be a pointer to a location where the returned value will be stored. The returned value is of type -Bool. +Bool. If the returned value is -True, +True, the input method uses the visible position masks of -XIMFeedback +XIMFeedback in -XIMText; +XIMText; otherwise, the input method does not use the masks. @@ -6234,16 +6234,16 @@ otherwise, the input method does not use the masks. Because this XIM value is optional, a client should call XGetIMValues with argument -XNQueryIMValues +XNQueryIMValuesList before using this argument. If the -XNVisiblePosition +XNVisiblePosition does not exist in the IM values list returned from -XNQueryIMValues, +XNQueryIMValuesList, the visible position masks of -XIMFeedback +XIMFeedback in -XIMText +XIMText are not used to indicate the visible position. @@ -6258,7 +6258,7 @@ are not used to indicate the visible position. The -XNR6PreeditCallbackBehavior +XNR6PreeditCallback argument originally included in the X11R6 specification has been deprecated.\(dg @@ -6269,7 +6269,7 @@ the R6 PreeditDrawCallbacks was going to differ significantly from that of the R5 callbacks. Late changes to the specification converged the R5 and R6 behaviors, eliminating the need for -XNR6PreeditCallbackBehavior. +XNR6PreeditCallback. Unfortunately, this argument was not removed from the R6 specification before it was published. @@ -6277,39 +6277,39 @@ before it was published. The -XNR6PreeditCallbackBehavior +XNR6PreeditCallback argument indicates whether the behavior of preedit callbacks regarding -XIMPreeditDrawCallbackStruct +XIMPreeditDrawCallbackStruct values follows Release 5 or Release 6 semantics. The value is of type -Bool. +Bool. When querying for -XNR6PreeditCallbackBehavior, +XNR6PreeditCallback, if the returned value is -True, +True, the input method uses the Release 6 behavior; otherwise, it uses the Release 5 behavior. The default value is -False. +False. In order to use Release 6 semantics, the value of -XNR6PreeditCallbackBehavior +XNR6PreeditCallback must be set to -True. +True. Because this XIM value is optional, a client should call XGetIMValues with argument -XNQueryIMValues +XNQueryIMValuesList before using this argument. If the -XNR6PreeditCallbackBehavior +XNR6PreeditCallback does not exist in the IM values list returned from -XNQueryIMValues, +XNQueryIMValuesList, the PreeditCallback behavior is Release 5 semantics. @@ -6344,7 +6344,7 @@ To create an input context, use - XIC XCreateIC + XIC XCreateIC XIM im @@ -6377,7 +6377,7 @@ Specifies the variable length argument list(Al. The -XCreateIC +XCreateIC function creates a context within the specified input method. @@ -6403,7 +6403,7 @@ A required argument was not set. A read-only argument was set (for example, -XNFilterEvents). +XNFilterEvents). @@ -6421,11 +6421,11 @@ The input method encountered an input method implementation-dependent error. XCreateIC can generate -BadAtom, -BadColor, -BadPixmap, +BadAtom, +BadColor, +BadPixmap, and -BadWindow +BadWindow errors. @@ -6437,7 +6437,7 @@ To destroy an input context, use - void XDestroyIC + void XDestroyIC XIC ic @@ -6474,7 +6474,7 @@ and - void XSetICFocus + void XSetICFocus XIC ic @@ -6515,7 +6515,7 @@ does not affect the focus window value. - void XUnsetICFocus + void XUnsetICFocus XIC ic @@ -6564,14 +6564,14 @@ or - char * + char *XmbResetIC XIC ic - wchar_t * + wchar_t *XwcResetIC XIC ic @@ -6593,17 +6593,17 @@ Specifies the input context. When -XNResetState +XNResetState is set to -XIMInitialState, +XIMInitialState, XmbResetIC and XwcResetIC reset an input context to its initial state; when -XNResetState +XNResetState is set to -XIMPreserveState, +XIMPreserveState, the current input context state is preserved. In both cases, any input pending on that context is deleted. The input method is required to clear the preedit area, if any, @@ -6639,7 +6639,7 @@ To get the input method associated with an input context, use - XIM XIMOfIC + XIM XIMOfIC XIC ic @@ -6684,7 +6684,7 @@ To set XIC values, use - char * + char *XSetICValues XIC ic @@ -6727,7 +6727,7 @@ An argument might not be set for any of the following reasons: The argument is read-only (for example, -XNFilterEvents). +XNFilterEvents). @@ -6750,12 +6750,12 @@ matching the data type imposed by the semantics of the argument. XSetICValues can generate -BadAtom, -BadColor, -BadCursor, -BadPixmap, +BadAtom, +BadColor, +BadCursor, +BadPixmap, and -BadWindow +BadWindow errors. @@ -6767,7 +6767,7 @@ To obtain XIC values, use - char * + char *XGetICValues XIC ic @@ -6831,10 +6831,10 @@ and the client is responsible for freeing this data by calling XFree with the returned pointer. The exception to this rule is for an IC value of type -XVaNestedList +XVaNestedList (for preedit and status attributes). In this case, the argument must also be of type -XVaNestedList. +XVaNestedList. Then, the rule of changing type T to T* and freeing the allocated data applies to each element of the nested list. @@ -7263,7 +7263,7 @@ The following keys apply to these tables. G - Status + Status Area @@ -7356,12 +7356,12 @@ The following keys apply to these tables. The -XNInputStyle +XNInputStyle argument specifies the input style to be used. The value of this argument must be one of the values returned by the XGetIMValues function with the -XNQueryInputStyle +XNQueryInputStyle argument specified in the supported_styles list. @@ -7379,7 +7379,7 @@ and cannot be changed. XNClientWindow The -XNClientWindow +XNClientWindow argument specifies to the input method the client window in which the input method can display data or create subwindows. @@ -7396,7 +7396,7 @@ the input method may not operate correctly. If an attempt is made to set this value a second time with XSetICValues, the string -XNClientWindow +XNClientWindow will be returned by XSetICValues, and the client window will not be changed. @@ -7406,7 +7406,7 @@ and the client window will not be changed. If the client window is not a valid window ID on the display attached to the input method, a -BadWindow +BadWindow error can be generated when this value is used by the input method. @@ -7419,10 +7419,10 @@ error can be generated when this value is used by the input method. XNFocusWindow The -XNFocusWindow +XNFocusWindow argument specifies the focus window. The primary purpose of the -XNFocusWindow +XNFocusWindow is to identify the window that will receive the key event when input is composed. In addition, the input method may possibly affect the focus window @@ -7453,11 +7453,11 @@ Grab the keyboard within that window The associated value must be of type -Window. +Window. If the focus window is not a valid window ID on the display attached to the input method, a -BadWindow +BadWindow error can be generated when this value is used by the input method. @@ -7476,9 +7476,9 @@ the input method will use the client window as the default focus window. XNResourceName XNResourceClass The -XNResourceName +XNResourceName and -XNResourceClass +XNResourceClass arguments are strings that specify the full name and class used by the client to obtain resources for the client window. These values should be used as prefixes for name and class @@ -7501,15 +7501,15 @@ set as resources. XNGeometryCallback The -XNGeometryCallback +XNGeometryCallback argument is a structure of type -XIMCallback +XIMCallback (see section 13.5.6.13.12). The -XNGeometryCallback +XNGeometryCallback argument specifies the geometry callback that a client can set. This callback is not required for correct operation of either an input method or a client. @@ -7529,7 +7529,7 @@ events that it uses to initiate the change. XNFilterEvents The -XNFilterEvents +XNFilterEvents argument returns the event mask that an input method needs to have selected for. The client is expected to augment its own event mask @@ -7543,8 +7543,8 @@ and is never changed. The type of this argument is -unsigned -long. +unsigned +long. Setting this value will cause an error. @@ -7556,9 +7556,9 @@ Setting this value will cause an error. The -XNDestroyCallback +XNDestroyCallback argument is a pointer to a structure of type -XIMCallback +XIMCallback (see section 13.5.6.13.12). This callback is triggered when the input method stops its service for any reason; for example, when a connection to an IM server is broken. After the destroy callback is called, @@ -7580,15 +7580,15 @@ and The -XNStringConversionCallback +XNStringConversionCallback argument is a structure of type -XIMCallback +XIMCallback (see section 13.5.6.13.12). The -XNStringConversionCallback +XNStringConversionCallback argument specifies a string conversion callback. This callback is not required for correct operation of either the input method or the client. It can be set by a client @@ -7601,7 +7601,7 @@ will filter any events that it uses to initiate the conversion. Because this XIC value is optional, a client should call XGetIMValues with argument -XNQueryICValuesList +XNQueryICValuesList before using this argument. @@ -7616,14 +7616,14 @@ before using this argument. The -XNStringConversion +XNStringConversion argument is a structure of type -XIMStringConversionText. +XIMStringConversionText. The -XNStringConversion +XNStringConversion argument specifies the string to be converted by an input method. This argument is not required for correct operation of either the input method or the client. @@ -7641,13 +7641,13 @@ reconversion, or transliteration conversion on it. Because this XIC value is optional, a client should call XGetIMValues with argument -XNQueryICValuesList +XNQueryICValuesList before using this argument. The -XIMStringConversionText +XIMStringConversionText structure is defined as follows: @@ -7689,7 +7689,7 @@ element to NULL. The -XNResetState +XNResetState argument specifies the state the input context will return to after calling XmbResetIC or @@ -7698,7 +7698,7 @@ or The XIC state may be set to its initial state, as specified by the -XNPreeditState +XNPreeditState value when XCreateIC was called, or it may be set to preserve the current state. @@ -7706,7 +7706,7 @@ was called, or it may be set to preserve the current state. The valid masks for -XIMResetState +XIMResetState are as follows: @@ -7727,19 +7727,19 @@ typedef unsigned long XIMResetState; If -XIMInitialState +XIMInitialState is set, then XmbResetIC and XwcResetIC will return to the initial -XNPreeditState +XNPreeditState state of the XIC. If -XIMPreserveState +XIMPreserveState is set, then XmbResetIC and @@ -7749,22 +7749,22 @@ will preserve the current state of the XIC. If -XNResetState +XNResetState is left unspecified, the default is -XIMInitialState. +XIMInitialState. -XIMResetState +XIMResetState values other than those specified above will default to -XIMInitialState. +XIMInitialState. Because this XIC value is optional, a client should call XGetIMValues with argument -XNQueryICValuesList +XNQueryICValuesList before using this argument. @@ -7779,30 +7779,30 @@ before using this argument. The -XNHotKey +XNHotKey argument specifies the hot key list to the XIC. The hot key list is a pointer to the structure of type -XIMHotKeyTriggers, +XIMHotKeyTriggers, which specifies the key events that must be received without any interruption of the input method. For the hot key list set with this argument to be utilized, the client must also set -XNHotKeyState +XNHotKeyState to -XIMHotKeyStateON. +XIMHotKeyStateON. Because this XIC value is optional, a client should call XGetIMValues with argument -XNQueryICValuesList +XNQueryICValuesList before using this functionality. The value of the argument is a pointer to a structure of type -XIMHotKeyTriggers. +XIMHotKeyTriggers. @@ -7882,7 +7882,7 @@ is ignored when evaluating whether the key is hot or not. The -XNHotKeyState +XNHotKeyState argument specifies the hot key state of the input method. This is usually used to switch the input method between hot key operation and normal input processing. @@ -7907,7 +7907,7 @@ typedef unsigned long XIMHotKeyState; If not specified, the default is -XIMHotKeyStateOFF. +XIMHotKeyStateOFF. @@ -7923,9 +7923,9 @@ If not specified, the default is XNPreeditAttributes XNStatusAttributes The -XNPreeditAttributes +XNPreeditAttributes and -XNStatusAttributes +XNStatusAttributes arguments specify to an input method the attributes to be used for the preedit and status areas, if any. @@ -7945,18 +7945,18 @@ The names to be used in these lists are described in the following sections. XNArea The value of the -XNArea +XNArea argument must be a pointer to a structure of type -XRectangle. +XRectangle. The interpretation of the -XNArea +XNArea argument is dependent on the input method style that has been set. If the input method style is -XIMPreeditPosition, -XNArea +XIMPreeditPosition, +XNArea specifies the clipping region within which preediting will take place. If the focus window has been set, the coordinates are assumed to be relative to the focus window. @@ -7967,33 +7967,33 @@ the results are undefined. If -XNArea +XNArea is not specified, is set to NULL, or is invalid, the input method will default the clipping region to the geometry of the -XNFocusWindow. +XNFocusWindow. If the area specified is NULL or invalid, the results are undefined. If the input style is -XIMPreeditArea +XIMPreeditArea or -XIMStatusArea, -XNArea +XIMStatusArea, +XNArea specifies the geometry provided by the client to the input method. The input method may use this area to display its data, either preedit or status depending on the area designated. The input method may create a window as a child of the client window with dimensions that fit the -XNArea. +XNArea. The coordinates are relative to the client window. If the client window has not been set yet, the input method should save these values and apply them when the client window is set. If -XNArea +XNArea is not specified, is set to NULL, or is invalid, the results are undefined. @@ -8007,12 +8007,12 @@ the results are undefined. XNAreaNeeded When set, the -XNAreaNeeded +XNAreaNeeded argument specifies the geometry suggested by the client for this area (preedit or status). The value associated with the argument must be a pointer to a structure of type -XRectangle. +XRectangle. Note that the x, y values are not used and that nonzero values for width or height are the constraints that the client wishes the input method to respect. @@ -8020,16 +8020,16 @@ that the client wishes the input method to respect. When read, the -XNAreaNeeded +XNAreaNeeded argument specifies the preferred geometry desired by the input method for the area. This argument is only valid if the input style is -XIMPreeditArea +XIMPreeditArea or -XIMStatusArea. +XIMStatusArea. It is used for geometry negotiation between the client and the input method and has no other effect on the input method (see section 13.5.1.5). @@ -8044,14 +8044,14 @@ and has no other effect on the input method XNSpotLocation The -XNSpotLocation +XNSpotLocation argument specifies to the input method the coordinates of the spot to be used by an input method executing with -XNInputStyle +XNInputStyle set to -XIMPreeditPosition. +XIMPreeditPosition. When specified to any input method other than -XIMPreeditPosition, +XIMPreeditPosition, this XIC value is ignored. @@ -8068,7 +8068,7 @@ the results are undefined. The value of the argument is a pointer to a structure of type -XPoint. +XPoint. @@ -8085,27 +8085,27 @@ should use to allocate colors, a colormap ID, or a standard colormap name. XNColormap The -XNColormap +XNColormap argument is used to specify a colormap ID. The argument value is of type -Colormap. +Colormap. An invalid argument may generate a -BadColor +BadColor error when it is used by the input method. XNStdColormap The -XNStdColormap +XNStdColormap argument is used to indicate the name of the standard colormap in which the input method should allocate colors. The argument value is an -Atom +Atom that should be a valid atom for calling XGetRGBColormaps. An invalid argument may generate a -BadAtom +BadAtom error when it is used by the input method. @@ -8124,13 +8124,13 @@ the client window colormap becomes the default. XNForeground XNBackground The -XNForeground +XNForeground and -XNBackground +XNBackground arguments specify the foreground and background pixel, respectively. The argument value is of type -unsigned -long. +unsigned +long. It must be a valid pixel in the input method colormap. @@ -8147,13 +8147,13 @@ the default is determined by the input method. The -XNBackgroundPixmap +XNBackgroundPixmap argument specifies a background pixmap to be used as the background of the window. The value must be of type -Pixmap. +Pixmap. An invalid argument may generate a -BadPixmap +BadPixmap error when it is used by the input method. @@ -8171,10 +8171,10 @@ the default is determined by the input method. XNFontSet The -XNFontSet +XNFontSet argument specifies to the input method what font set is to be used. The argument value is of type -XFontSet. +XFontSet. @@ -8190,11 +8190,11 @@ the default is determined by the input method. The -XNLineSpace +XNLineSpace argument specifies to the input method what line spacing is to be used in the preedit window if more than one line is to be used. This argument is of type -int. +int. @@ -8211,16 +8211,16 @@ the default is determined by the input method. XNCursor The -XNCursor +XNCursor argument specifies to the input method what cursor is to be used in the specified window. This argument is of type -Cursor. +Cursor. An invalid argument may generate a -BadCursor +BadCursor error when it is used by the input method. If this value is left unspecified, the default is determined by the input method. @@ -8234,14 +8234,14 @@ the default is determined by the input method. The -XNPreeditState +XNPreeditState argument specifies the state of input preediting for the input method. Input preediting can be on or off. The valid mask names for -XNPreeditState +XNPreeditState are as follows: @@ -8265,29 +8265,29 @@ typedef unsigned long XIMPreeditState; If a value of -XIMPreeditEnable +XIMPreeditEnable is set, then input preediting is turned on by the input method. If a value of -XIMPreeditDisable +XIMPreeditDisable is set, then input preediting is turned off by the input method. If -XNPreeditState +XNPreeditState is left unspecified, then the state will be implementation-dependent. When -XNResetState +XNResetState is set to -XIMInitialState, +XIMInitialState, the -XNPreeditState +XNPreeditState value specified at the creation time will be reflected as the initial state for XmbResetIC and @@ -8298,7 +8298,7 @@ and Because this XIC value is optional, a client should call XGetIMValues with argument -XNQueryICValuesList +XNQueryICValuesList before using this argument. @@ -8312,15 +8312,15 @@ before using this argument. The preedit state notify callback is triggered by the input method when the preediting state has changed. The value of the -XNPreeditStateNotifyCallback +XNPreeditStateNotifyCallback argument is a pointer to a structure of type -XIMCallback. +XIMCallback. The generic prototype is as follows: PreeditStateNotifyCallback - void PreeditStateNotifyCallback + void PreeditStateNotifyCallback XIC ic XPointer client_data XIMPreeditStateNotifyCallbackStruct *call_data @@ -8364,7 +8364,7 @@ Specifies the current preedit state. The -XIMPreeditStateNotifyCallbackStruct +XIMPreeditStateNotifyCallbackStruct structure is defined as follows: @@ -8388,7 +8388,7 @@ typedef struct _XIMPreeditStateNotifyCallbackStruct { Because this XIC value is optional, a client should call XGetIMValues with argument -XNQueryICValuesList +XNQueryICValuesList before using this argument. @@ -8400,7 +8400,7 @@ before using this argument. A client that wants to support the input style -XIMPreeditCallbacks +XIMPreeditCallbacks must provide a set of preedit callbacks to the input method. The set of preedit callbacks is as follows: @@ -8414,19 +8414,19 @@ The set of preedit callbacks is as follows: - XNPreeditStartCallback + XNPreeditStartCallback This is called when the input method starts preedit. - XNPreeditDoneCallback + XNPreeditDoneCallback This is called when the input method stops preedit. - XNPreeditDrawCallback + XNPreeditDrawCallback This is called when a number of preedit keystrokes should be echoed. - XNPreeditCaretCallback + XNPreeditCaretCallback This is called to move the text insertion point within the preedit string. @@ -8436,7 +8436,7 @@ The set of preedit callbacks is as follows: A client that wants to support the input style -XIMStatusCallbacks +XIMStatusCallbacks must provide a set of status callbacks to the input method. The set of status callbacks is as follows: @@ -8450,15 +8450,15 @@ The set of status callbacks is as follows: - XNStatusStartCallback + XNStatusStartCallback This is called when the input method initializes the status area. - XNStatusDoneCallback + XNStatusDoneCallback This is called when the input method no longer needs the status area. - XNStatusDrawCallback + XNStatusDrawCallback This is called when updating of the status area is required. @@ -8468,7 +8468,7 @@ The set of status callbacks is as follows: The value of any status or preedit argument is a pointer to a structure of type -XIMCallback. +XIMCallback. XIMProc XIMCallback @@ -8538,7 +8538,7 @@ All callback procedures follow the generic prototype: - void CallbackPrototype + void CallbackPrototype XIC ic XPointer client_data SomeType call_data @@ -8610,7 +8610,7 @@ The generic prototype is as follows: - void GeometryCallback + void GeometryCallback XIC ic XPointer client_data XPointer call_data @@ -8671,7 +8671,7 @@ The generic prototype is as follows: - void DestroyCallback + void DestroyCallback XIC ic XPointer client_data XPointer call_data @@ -8733,7 +8733,7 @@ The callback prototype is as follows: - void StringConversionCallback + void StringConversionCallback XIC ic XPointer client_data XIMStringConversionCallbackStruct *call_data @@ -8777,15 +8777,15 @@ Specifies the amount of the string to be converted. The callback is passed an -XIMStringConversionCallbackStruct +XIMStringConversionCallbackStruct structure in the call_data argument. The text member is an -XIMStringConversionText +XIMStringConversionText structure (see section 13.5.6.9) to be filled in by the client and describes the text to be sent to the input method. The data pointed to by the string and feedback elements of the -XIMStringConversionText +XIMStringConversionText structure will be freed using XFree by the input method @@ -8798,7 +8798,7 @@ freeing memory at some random location due to an uninitialized pointer. The -XIMStringConversionCallbackStruct +XIMStringConversionCallbackStruct structure is defined as follows: @@ -8828,10 +8828,10 @@ typedef unsigned short XIMStringConversionOperation; -XIMStringConversionPosition +XIMStringConversionPosition specifies the starting position of the string to be returned in the -XIMStringConversionText +XIMStringConversionText structure. The value identifies a position, in units of characters, relative to the client's cursor position in the client's buffer. @@ -8840,36 +8840,36 @@ relative to the client's cursor position in the client's buffer. The ending position of the text buffer is determined by the direction and factor members. Specifically, it is the character position relative to the starting point as defined by the -XIMCaretDirection. +XIMCaretDirection. The factor member of -XIMStringConversionCallbackStruct +XIMStringConversionCallbackStruct specifies the number of -XIMCaretDirection +XIMCaretDirection positions to be applied. For example, if the direction specifies -XIMLineEnd +XIMLineEnd and factor is 1, then all characters from the starting position to the end of the current display line are returned. If the direction specifies -XIMForwardChar +XIMForwardChar or -XIMBackwardChar, +XIMBackwardChar, then the factor specifies a relative position, indicated in characters, from the starting position. -XIMStringConversionOperation +XIMStringConversionOperation specifies whether the string to be converted should be deleted (substitution) or copied (retrieval) from the client's buffer. When the -XIMStringConversionOperation +XIMStringConversionOperation is -XIMStringConversionSubstitution, +XIMStringConversionSubstitution, the client must delete the string to be converted from its own buffer. When the -XIMStringConversionOperation +XIMStringConversionOperation is -XIMStringConversionRetrieval, +XIMStringConversionRetrieval, the client must not delete the string to be converted from its buffer. The substitute operation is typically used for reconversion and transliteration conversion, @@ -8885,16 +8885,16 @@ conversion. When the input method turns preediting on or off, a -PreeditStartCallback +PreeditStartCallback or -PreeditDoneCallback +PreeditDoneCallback callback is triggered to let the toolkit do the setup or the cleanup for the preedit region. PreeditStartCallback - int PreeditStartCallback + int PreeditStartCallback XIC ic XPointer client_data XPointer call_data @@ -8939,7 +8939,7 @@ Not used for this callback and always passed as NULL. When preedit starts on the specified input context, the callback is called with a NULL call_data argument. -PreeditStartCallback +PreeditStartCallback will return the maximum size of the preedit string. A positive number indicates the maximum number of bytes allowed in the preedit string, @@ -8948,7 +8948,7 @@ and a value of -1 indicates there is no limit. - void PreeditDoneCallback + void PreeditDoneCallback XIC ic XPointer client_data XPointer call_data @@ -8994,19 +8994,19 @@ Not used for this callback and always passed as NULL. When preedit stops on the specified input context, the callback is called with a NULL call_data argument. The client can release the data allocated by -PreeditStartCallback. +PreeditStartCallback. -PreeditStartCallback +PreeditStartCallback should initialize appropriate data needed for displaying preedit information and for handling further -PreeditDrawCallback +PreeditDrawCallback calls. Once -PreeditStartCallback +PreeditStartCallback is called, it will not be called again before -PreeditDoneCallback +PreeditDoneCallback has been called. @@ -9029,7 +9029,7 @@ is as follows: - void PreeditDrawCallback + void PreeditDrawCallback XIC ic XPointer client_data XIMPreeditDrawCallbackStruct *call_data @@ -9073,7 +9073,7 @@ Specifies the preedit drawing information. The callback is passed an -XIMPreeditDrawCallbackStruct +XIMPreeditDrawCallbackStruct structure in the call_data argument. The text member of this structure contains the text to be drawn. After the string has been drawn, @@ -9082,7 +9082,7 @@ the caret should be moved to the specified location. The -XIMPreeditDrawCallbackStruct +XIMPreeditDrawCallbackStruct structure is defined as follows: @@ -9132,7 +9132,7 @@ that are affected by this call. A positive chg_length indicates that chg_length number of characters, starting at chg_first, must be deleted or must be replaced by text, whose length is specified in the -XIMText +XIMText structure. @@ -9148,7 +9148,7 @@ A value of zero for chg_first specifies the first character in the buffer. chg_length and chg_first combine to identify the modification required to the preedit buffer; beginning at chg_first, replace chg_length number of characters with the text in the supplied -XIMText +XIMText structure. For example, suppose the preedit buffer contains the string "ABCDE". @@ -9171,7 +9171,7 @@ relative to the character. If the value of chg_first is 1 and the value of chg_length is 3, this says to replace 3 characters beginning at character position 1 with the string in the -XIMText +XIMText structure. Hence, BCD would be replaced by the value in the structure. @@ -9264,25 +9264,25 @@ If an input method wants to control display of the preedit string, an input method can indicate the visibility hints using feedbacks in a specific way. The -XIMVisibleToForward, -XIMVisibleToBackward, +XIMVisibleToForward, +XIMVisibleToBackword, and -XIMVisibleCenter +XIMVisibleToCenter masks are exclusively used for these visibility hints. The -XIMVisibleToForward +XIMVisibleToForward mask indicates that the preedit text is preferably displayed in the primary draw direction from the caret position in the preedit area forward. The -XIMVisibleToBackward +XIMVisibleToBackword mask indicates that the preedit text is preferably displayed from the caret position in the preedit area backward, relative to the primary draw direction. The -XIMVisibleCenter +XIMVisibleToCenter mask indicates that the preedit text is preferably displayed with the caret position in the preedit area centered. @@ -9296,7 +9296,7 @@ masks is valid for the entire preedit string, and only one character can hold one of these feedbacks for a given input context at one time. This feedback may be OR'ed together with another highlight (such as -XIMReverse). +XIMReverse). Only the most recently set feedback is valid, and any previous feedback is automatically canceled. This is a hint to the client, and the client is free to choose how to display the preedit string. @@ -9318,17 +9318,17 @@ character of the string, and the length of the array is thus length. If an input method wants to indicate that it is only updating the feedback of the preedit text without changing the content of it, the -XIMText +XIMText structure will contain a NULL value for the string field, the number of characters affected (relative to chg_first) will be in the length field, and the feedback field will point to an array of -XIMFeedback. +XIMFeedback. Each element in the feedback array is a bitmask represented by a value of type -XIMFeedback. +XIMFeedback. The valid mask names are as follows: @@ -9341,7 +9341,7 @@ The valid mask names are as follows: XIMTertiary XIMVisibleToForward XIMVisibleToBackward -XIMVisibleCenter +XIMVisibleToCenter @@ -9355,7 +9355,7 @@ typedef unsigned long XIMFeedback; #define XIMTertiary (1L<<7)* #define XIMVisibleToForward (1L<<8) #define XIMVisibleToBackward (1L<<9) -#define XIMVisibleCenter (1L<<10) +#define XIMVisibleToCenter (1L<<10) *† The values for XIMPrimary, XIMSecondary, and XIMTertiary were incorrectly defined in the R5 specification. The X Consortium’s X11R5 implementation correctly implemented the val- @@ -9367,29 +9367,29 @@ agree with the values in the Consortium’s X11R5 and X11R6 implementations. Characters drawn with the -XIMReverse +XIMReverse highlight should be drawn by swapping the foreground and background colors used to draw normal, unhighlighted characters. Characters drawn with the -XIMUnderline +XIMUnderline highlight should be underlined. Characters drawn with the -XIMHighlight, -XIMPrimary, -XIMSecondary, +XIMHighlight, +XIMPrimary, +XIMSecondary, and -XIMTertiary +XIMTertiary highlights should be drawn in some unique manner that must be different from -XIMReverse +XIMReverse and -XIMUnderline. +XIMUnderline. The values for -XIMPrimary, -XIMSecondary, +XIMPrimary, +XIMSecondary, and -XIMTertiary +XIMTertiary were incorrectly defined in the R5 specification. The X Consortium's X11R5 implementation correctly implemented the values for these highlights. @@ -9415,7 +9415,7 @@ It then calls the PreeditCaretCallback. - void PreeditCaretCallback + void PreeditCaretCallback XIC ic XPointer client_data XIMPreeditCaretCallbackStruct *call_data @@ -9461,7 +9461,7 @@ Specifies the preedit caret information. The input method will trigger PreeditCaretCallback to move the text insertion point during preedit. The call_data argument contains a pointer to an -XIMPreeditCaretCallbackStruct +XIMPreeditCaretCallbackStruct structure, which indicates where the caret should be moved. The callback must move the insertion point to its new location @@ -9470,7 +9470,7 @@ and return, in field position, the new offset value from the initial position. The -XIMPreeditCaretCallbackStruct +XIMPreeditCaretCallbackStruct structure is defined as follows: XIMPreeditCaretCallbackStruct @@ -9491,7 +9491,7 @@ typedef struct _XIMPreeditCaretCallbackStruct { The -XIMCaretStyle +XIMCaretStyle structure is defined as follows: @@ -9512,7 +9512,7 @@ typedef enum { The -XIMCaretDirection +XIMCaretDirection structure is defined as follows: XIMCaretDirection @@ -9550,54 +9550,54 @@ These values are defined as follows: - XIMForwardChar + XIMForwardChar Move the caret forward one character position. - XIMBackwardChar + XIMBackwardChar Move the caret backward one character position. - XIMForwardWord + XIMForwardWord Move the caret forward one word. - XIMBackwardWord + XIMBackwardWord Move the caret backward one word. - XIMCaretUp + XIMCaretUp Move the caret up one line keeping the current horizontal offset. - XIMCaretDown + XIMCaretDown Move the caret down one line keeping the current horizontal offset. - XIMPreviousLine + XIMPreviousLine Move the caret to the beginning of the previous line. - XIMNextLine + XIMNextLine Move the caret to the beginning of the next line. - XIMLineStart + XIMLineStart Move the caret to the beginning of the current display line that contains the caret. - XIMLineEnd + XIMLineEnd Move the caret to the end of the current display line that contains the caret. - XIMAbsolutePosition + XIMAbsolutePosition The callback must move to the location specified by the position field of the callback data, indicated in characters, starting from the beginning of the preedit text. Hence, a value of zero means move back to the beginning of the preedit text. - XIMDontChange + XIMDontChange The caret position does not change. @@ -9631,7 +9631,7 @@ the input method calls the StatusStartCallback callback. - void StatusStartCallback + void StatusStartCallback XIC ic XPointer client_data XPointer call_data @@ -9688,7 +9688,7 @@ is destroyed or when it loses focus, the input method calls StatusDoneCallback. - void StatusDoneCallback + void StatusDoneCallback XIC ic XPointer client_data XPointer call_data @@ -9743,7 +9743,7 @@ StatusDrawCallback. - void StatusDrawCallback + void StatusDrawCallback XIC ic XPointer client_data XIMStatusDrawCallbackStruct *call_data @@ -9792,9 +9792,9 @@ or imaging a bitmap in the status area. The -XIMStatusDataType +XIMStatusDataType and -XIMStatusDrawCallbackStruct +XIMStatusDrawCallbackStruct structures are defined as follows: XIMStatusDataType XIMStatusDrawCallbackStruct @@ -9826,14 +9826,14 @@ typedef struct _XIMStatusDrawCallbackStruct { The feedback styles -XIMVisibleToForward, -XIMVisibleToBackward, +XIMVisibleToForward, +XIMVisibleToBackword, and -XIMVisibleToCenter +XIMVisibleToCenter are not relevant and will not appear in the -XIMFeedback +XIMFeedback element of the -XIMText +XIMText structure. @@ -9855,7 +9855,7 @@ This filter is called by a client (or toolkit) by calling after calling XNextEvent. Any client that uses the -XIM +XIM interface should call XFilterEvent to allow input methods to process their events without knowledge @@ -9881,7 +9881,7 @@ To filter an event, use - Bool XFilterEvent + Bool XFilterEvent XEvent *event Window w @@ -9916,10 +9916,10 @@ Specifies the window (Wi. If the window argument is -None, -XFilterEvent +None, +XFilterEvent applies the filter to the window specified in the -XEvent +XEvent structure. The window argument is provided so that layers above Xlib that do event redirection can indicate to which window an event @@ -9930,13 +9930,13 @@ has been redirected. If XFilterEvent returns -True, +True, then some input method has filtered the event, and the client should discard the event. If XFilterEvent returns -False, +False, then the client should continue processing the event. @@ -9944,7 +9944,7 @@ then the client should continue processing the event. If a grab has occurred in the client and XFilterEvent returns -True, +True, the client should ungrab the keyboard. @@ -9965,7 +9965,7 @@ or - int XmbLookupString + int XmbLookupString XIC ic XKeyPressedEvent *event char *buffer_return @@ -9977,7 +9977,7 @@ or - int XwcLookupString + int XwcLookupString XIC ic XKeyPressedEvent *event wchar_t *buffer_return @@ -10108,13 +10108,13 @@ begins in the initial state of the encoding of the locale To insure proper input processing, it is essential that the client pass only -KeyPress +KeyPress events to XmbLookupString and XwcLookupString. Their behavior when a client passes a -KeyRelease +KeyRelease event is undefined. @@ -10134,7 +10134,7 @@ The possible values returned are: - XBufferOverflow + XBufferOverflow The input string to be returned is too large for the supplied buffer_return. The required size (XmbLookupString @@ -10146,13 +10146,13 @@ The possible values returned are: and a buffer of adequate size to obtain the string. - XLookupNone + XLookupNone No consistent input has been composed so far. The contents of buffer_return and keysym_return are not modified, and the function returns zero. - XLookupChars + XLookupChars Some input characters have been composed. They are placed in the buffer_return argument, and the string length is returned as the value of the function. @@ -10160,18 +10160,18 @@ The possible values returned are: The content of the keysym_return argument is not modified. - XLookupKeySym + XLookupKeySym A KeySym has been returned instead of a string and is returned in keysym_return. The content of the buffer_return argument is not modified, and the function returns zero. - XLookupBoth + XLookupBoth Both a KeySym and a string are returned; - XLookupChars + XLookupChars and - XLookupKeySym + XLookupKeySym occur simultaneously. @@ -10228,14 +10228,14 @@ or raise an exception or error of some sort. A -KeyPress +KeyPress event with a KeyCode of zero is used exclusively as a signal that an input method has composed input that can be returned by XmbLookupString or XwcLookupString. No other use is made of a -KeyPress +KeyPress event with KeyCode of zero. @@ -10259,7 +10259,7 @@ onto a client's event queue A -KeyPress +KeyPress event whose KeyCode value is modified by an input method filter diff --git a/libX11/specs/libX11/CH14.xml b/libX11/specs/libX11/CH14.xml index dd301bf9f..4221e9b01 100644 --- a/libX11/specs/libX11/CH14.xml +++ b/libX11/specs/libX11/CH14.xml @@ -258,7 +258,7 @@ To request that a top-level window be iconified, use - Status XIconifyWindow + Status XIconifyWindow Display *display Window w int screen_number @@ -302,18 +302,18 @@ Specifies the appropriate screen number on the host server. The -XIconifyWindow +XIconifyWindow function sends a WM_CHANGE_STATE -ClientMessage +ClientMessage event with a format of 32 and a first data element of -IconicState +IconicState (as described in section 4.1.4 of the Inter-Client Communication Conventions Manual) and a window of w to the root window of the specified screen with an event mask set to -SubstructureNotifyMask | -SubstructureRedirectMask. +SubstructureNotifyMask | +SubstructureRedirectMask. Window managers may elect to receive this message and if the window is in its normal state, may treat it as a request to change the window's state from normal to iconic. @@ -332,7 +332,7 @@ To request that a top-level window be withdrawn, use - Status XWithdrawWindow + Status XWithdrawWindow Display *display Window w int screen_number @@ -376,17 +376,17 @@ Specifies the appropriate screen number on the host server. The -XWithdrawWindow +XWithdrawWindow function unmaps the specified window and sends a synthetic -UnmapNotify +UnmapNotify event to the root window of the specified screen. Window managers may elect to receive this message and may treat it as a request to change the window's state to withdrawn. When a window is in the withdrawn state, neither its normal nor its iconic representations is visible. It returns a nonzero status if the -UnmapNotify +UnmapNotify event is successfully sent; otherwise, it returns a zero status. @@ -394,7 +394,7 @@ otherwise, it returns a zero status. XWithdrawWindow can generate a -BadWindow +BadWindow error. @@ -406,7 +406,7 @@ To request that a top-level window be reconfigured, use - Status XReconfigureWMWindow + Status XReconfigureWMWindow Display *display Window w int screen_number @@ -465,7 +465,7 @@ This mask is the bitwise inclusive OR of the valid configure window values bits. Specifies the -XWindowChanges +XWindowChanges structure. @@ -476,15 +476,15 @@ structure. The -XReconfigureWMWindow +XReconfigureWMWindow function issues a -ConfigureWindow +ConfigureWindow request on the specified top-level window. If the stacking mode is changed and the request fails with a -BadMatch +BadMatch error, the error is trapped by Xlib and a synthetic -ConfigureRequestEvent +ConfigureRequestEvent containing the same configuration parameters is sent to the root of the specified window. Window managers may elect to receive this event @@ -494,11 +494,11 @@ otherwise, it returns a zero status. -XReconfigureWMWindow +XReconfigureWMWindow can generate -BadValue +BadValue and -BadWindow +BadWindow errors. @@ -512,11 +512,11 @@ errors. Many of the text properties allow a variety of types and formats. Because the data stored in these properties are not simple null-terminated strings, an -XTextProperty +XTextProperty structure is used to describe the encoding, type, and length of the text as well as its value. The -XTextProperty +XTextProperty structure contains: XTextProperty @@ -543,7 +543,7 @@ to character strings and text properties in the STRING encoding. The functions for localized text return a signed integer error status that encodes -Success +Success as zero, specific error conditions as negative numbers, and partial conversion as a count of unconvertible characters. @@ -570,7 +570,7 @@ typedef enum { To convert a list of text strings to an -XTextProperty +XTextProperty structure, use XmbTextListToTextProperty or @@ -580,7 +580,7 @@ or - int XmbTextListToTextProperty + int XmbTextListToTextProperty Display *display char **list int count @@ -591,7 +591,7 @@ or - int XwcTextListToTextProperty + int XwcTextListToTextProperty Display *display wchar_t **list int count @@ -648,7 +648,7 @@ Specifies the manner in which the property is encoded. Returns the -XTextProperty +XTextProperty structure. @@ -663,7 +663,7 @@ The and XwcTextListToTextProperty functions set the specified -XTextProperty +XTextProperty value to a set of null-separated elements representing the concatenation of the specified list of null-terminated text strings. A final terminating null is stored at the end of the value field @@ -672,23 +672,23 @@ of text_prop_return but is not included in the nitems member. The functions set the encoding field of text_prop_return to an -Atom +Atom for the specified display naming the encoding determined by the specified style and convert the specified text list to this encoding for storage in the text_prop_return value field. If the style -XStringStyle +XStringStyle or -XCompoundTextStyle +XCompoundTextStyle is specified, this encoding is ``STRING'' or ``COMPOUND_TEXT'', respectively. If the style -XTextStyle +XTextStyle is specified, this encoding is the encoding of the current locale. If the style -XStdICCTextStyle +XStdICCTextStyle is specified, this encoding is ``STRING'' if the text is fully convertible to STRING, else ``COMPOUND_TEXT''. @@ -697,17 +697,17 @@ else ``COMPOUND_TEXT''. If insufficient memory is available for the new value string, the functions return -XNoMemory. +XNoMemory. If the current locale is not supported, the functions return -XLocaleNotSupported. +XLocaleNotSupported. In both of these error cases, the functions do not set text_prop_return. To determine if the functions are guaranteed not to return -XLocaleNotSupported, +XLocaleNotSupported, use XSupportsLocale. @@ -718,9 +718,9 @@ the functions return the number of unconvertible characters. Each unconvertible character is converted to an implementation-defined and encoding-specific default string. Otherwise, the functions return -Success. +Success. Note that full convertibility to all styles except -XStringStyle +XStringStyle is guaranteed. @@ -732,7 +732,7 @@ To free the storage for the value field, use To obtain a list of text strings from an -XTextProperty +XTextProperty structure, use XmbTextPropertyToTextList or @@ -742,7 +742,7 @@ or - int XmbTextPropertyToTextList + int XmbTextPropertyToTextList Display *display XTextProperty *text_prop char ***list_return @@ -752,7 +752,7 @@ or - int XwcTextPropertyToTextList + int XwcTextPropertyToTextList Display *display XTextProperty *text_prop wchar_t ***list_return @@ -778,7 +778,7 @@ Specifies the connection to the X server. Specifies the -XTextProperty +XTextProperty structure to be used. @@ -815,7 +815,7 @@ and XwcTextPropertyToTextList functions return a list of text strings in the current locale representing the null-separated elements of the specified -XTextProperty +XTextProperty structure. The data in text_prop must be format 8. @@ -833,20 +833,20 @@ If insufficient memory is available for the list and its elements, and XwcTextPropertyToTextList return -XNoMemory. +XNoMemory. If the current locale is not supported, the functions return -XLocaleNotSupported. +XLocaleNotSupported. Otherwise, if the encoding field of text_prop is not convertible to the encoding of the current locale, the functions return -XConverterNotFound. +XConverterNotFound. For supported locales, existence of a converter from COMPOUND_TEXT, STRING or the encoding of the current locale is guaranteed if -XSupportsLocale +XSupportsLocale returns -True +True for the current locale (but the actual text may contain unconvertible characters). Conversion of other encodings is implementation-dependent. @@ -877,7 +877,7 @@ Otherwise, and XwcTextPropertyToTextList return -Success. +Success. @@ -900,7 +900,7 @@ wide character string list, use - void XwcFreeStringList + void XwcFreeStringList wchar_t **list @@ -959,7 +959,7 @@ is independent of the default string for text drawing; see XCreateFontSet to obtain the default string for an -XFontSet. +XFontSet. @@ -977,14 +977,14 @@ Until freed, it will not be modified by Xlib. To set the specified list of strings in the STRING encoding to a -XTextProperty +XTextProperty structure, use XStringListToTextProperty. XStringListToTextProperty - Status XStringListToTextProperty + Status XStringListToTextProperty char **list int count XTextProperty *text_prop_return @@ -1020,7 +1020,7 @@ Specifies the number of (Cn. Returns the -XTextProperty +XTextProperty structure. @@ -1031,9 +1031,9 @@ structure. The -XStringListToTextProperty +XStringListToTextProperty function sets the specified -XTextProperty +XTextProperty to be of type STRING (format 8) with a value representing the concatenation of the specified list of null-separated character strings. An extra null byte (which is not included in the nitems member) @@ -1042,7 +1042,7 @@ The strings are assumed (without verification) to be in the STRING encoding. If insufficient memory is available for the new value string, XStringListToTextProperty does not set any fields in the -XTextProperty +XTextProperty structure and returns a zero status. Otherwise, it returns a nonzero status. To free the storage for the value field, use @@ -1052,14 +1052,14 @@ To free the storage for the value field, use To obtain a list of strings from a specified -XTextProperty +XTextProperty structure in the STRING encoding, use XTextPropertyToStringList. XTextPropertyToStringList - Status XTextPropertyToStringList + Status XTextPropertyToStringList XTextProperty *text_prop char ***list_return int *count_return @@ -1074,7 +1074,7 @@ structure in the STRING encoding, use Specifies the -XTextProperty +XTextProperty structure to be used. @@ -1106,10 +1106,10 @@ Returns the number of (Cn. The -XTextPropertyToStringList +XTextPropertyToStringList function returns a list of strings representing the null-separated elements of the specified -XTextProperty +XTextProperty structure. The data in text_prop must be of type STRING and format 8. Multiple elements of the property @@ -1132,7 +1132,7 @@ To free the in-memory data associated with the specified string list, use - void XFreeStringList + void XFreeStringList char **list @@ -1154,7 +1154,7 @@ Specifies the list of strings to be freed. The -XFreeStringList +XFreeStringList function releases memory allocated by XmbTextPropertyToTextList and @@ -1189,7 +1189,7 @@ To set one of a window's text properties, use - void XSetTextProperty + void XSetTextProperty Display *display Window w XTextProperty *text_prop @@ -1225,7 +1225,7 @@ Specifies the window. Specifies the -XTextProperty +XTextProperty structure to be used. @@ -1251,7 +1251,7 @@ function replaces the existing specified property for the named window with the data, type, format, and number of items determined by the value field, the encoding field, the format field, and the nitems field, respectively, of the specified -XTextProperty +XTextProperty structure. If the property does not already exist, XSetTextProperty @@ -1261,11 +1261,11 @@ sets it for the specified window. XSetTextProperty can generate -BadAlloc, -BadAtom, -BadValue, +BadAlloc, +BadAtom, +BadValue, and -BadWindow +BadWindow errors. @@ -1277,7 +1277,7 @@ To read one of a window's text properties, use - Status XGetTextProperty + Status XGetTextProperty Display *display Window w XTextProperty *text_prop_return @@ -1313,7 +1313,7 @@ Specifies the window. Returns the -XTextProperty +XTextProperty structure. @@ -1334,10 +1334,10 @@ Specifies the property name. The -XGetTextProperty +XGetTextProperty function reads the specified property from the window and stores the data in the returned -XTextProperty +XTextProperty structure. It stores the data in the value field, the type of the data in the encoding field, @@ -1351,14 +1351,14 @@ If the specified property does not exist on the window, XGetTextProperty sets the value field to NULL, the encoding field to -None, +None, the format field to zero, and the nitems field to zero. If it was able to read and store the data in the -XTextProperty +XTextProperty structure, XGetTextProperty returns a nonzero status; @@ -1368,9 +1368,9 @@ otherwise, it returns a zero status. XGetTextProperty can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. @@ -1393,7 +1393,7 @@ To set a window's WM_NAME property with the supplied convenience function, use - void XSetWMName + void XSetWMName Display *display Window w XTextProperty *text_prop @@ -1428,7 +1428,7 @@ Specifies the window. Specifies the -XTextProperty +XTextProperty structure to be used. @@ -1441,7 +1441,7 @@ structure to be used. The XSetWMName convenience function calls -XSetTextProperty +XSetTextProperty to set the WM_NAME property. @@ -1453,7 +1453,7 @@ To read a window's WM_NAME property with the supplied convenience function, use - Status XGetWMName + Status XGetWMName Display *display Window w XTextProperty *text_prop_return @@ -1488,7 +1488,7 @@ Specifies the window. Returns the -XTextProperty +XTextProperty structure. @@ -1499,9 +1499,9 @@ structure. The -XGetWMName +XGetWMName convenience function calls -XGetTextProperty +XGetTextProperty to obtain the WM_NAME property. It returns a nonzero status on success; otherwise, it returns a zero status. @@ -1526,7 +1526,7 @@ To assign a name to a window, use - XStoreName + XStoreName Display *display Window w char *window_name @@ -1585,9 +1585,9 @@ the result is implementation-dependent. XStoreName can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -1599,7 +1599,7 @@ To get the name of a window, use - Status XFetchName + Status XFetchName Display *display Window w char **window_name_return @@ -1663,7 +1663,7 @@ the window name string using XFetchName can generate a -BadWindow +BadWindow error. @@ -1687,7 +1687,7 @@ use - void XSetWMIconName + void XSetWMIconName Display *display Window w XTextProperty *text_prop @@ -1722,7 +1722,7 @@ Specifies the window. Specifies the -XTextProperty +XTextProperty structure to be used. @@ -1748,7 +1748,7 @@ use - Status XGetWMIconName + Status XGetWMIconName Display *display Window w XTextProperty *text_prop_return @@ -1783,7 +1783,7 @@ Specifies the window. Returns the -XTextProperty +XTextProperty structure. @@ -1794,9 +1794,9 @@ structure. The -XGetWMIconName +XGetWMIconName convenience function calls -XGetTextProperty +XGetTextProperty to obtain the WM_ICON_NAME property. It returns a nonzero status on success; otherwise, it returns a zero status. @@ -1822,7 +1822,7 @@ To set the name to be displayed in a window's icon, use - XSetIconName + XSetIconName Display *display Window w char *icon_name @@ -1870,9 +1870,9 @@ If the string is not in the Host Portable Character Encoding, the result is implementation-dependent. XSetIconName can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -1884,7 +1884,7 @@ To get the name a window wants displayed in its icon, use - Status XGetIconName + Status XGetIconName Display *display Window w char **icon_name_return @@ -1948,7 +1948,7 @@ the icon name string using XGetIconName can generate a -BadWindow +BadWindow error. @@ -1962,16 +1962,16 @@ error. Xlib provides functions that you can use to set and read the WM_HINTS property for a given window. These functions use the flags and the -XWMHints +XWMHints structure, as defined in the - +<X11/Xutil.h> header file. To allocate an -XWMHints +XWMHints structure, use XAllocWMHints. @@ -1986,10 +1986,10 @@ structure, use The XAllocWMHints function allocates and returns a pointer to an -XWMHints +XWMHints structure. Note that all fields in the -XWMHints +XWMHints structure are initially set to zero. If insufficient memory is available, XAllocWMHints @@ -2001,7 +2001,7 @@ use The -XWMHints +XWMHints structure contains: @@ -2045,32 +2045,32 @@ Applications that expect input but never explicitly set focus to any of their subwindows (that is, use the push model of focus management), such as X Version 10 style applications that use real-estate driven focus, should set this member to -True. +True. Similarly, applications that set input focus to their subwindows only when it is given to their top-level window by a window manager should also set this member to -True. +True. Applications that manage their own input focus by explicitly setting focus to one of their subwindows whenever they want keyboard input (that is, use the pull model of focus management) should set this member to -False. +False. Applications that never expect any keyboard input also should set this member to -False. +False. Pull model window managers should make it possible for push model applications to get input by setting input focus to the top-level windows of applications whose input member is -True. +True. Push model window managers should make sure that pull model applications do not break them by resetting input focus to -PointerRoot +PointerRoot when it is appropriate (for example, whenever an application whose input member is -False +False sets input focus to one of its subwindows). @@ -2101,7 +2101,7 @@ rather than just the one window. The -UrgencyHint +UrgencyHint flag, if set in the flags field, indicates that the client deems the window contents to be urgent, requiring the timely response of the user. The window manager will make some effort to draw the user's attention to this @@ -2119,7 +2119,7 @@ To set a window's WM_HINTS property, use - XSetWMHints + XSetWMHints Display *display Window w XWMHints *wmhints @@ -2154,7 +2154,7 @@ Specifies the window. Specifies the -XWMHints +XWMHints structure to be used. @@ -2174,9 +2174,9 @@ window manager to get keyboard input. XSetWMHints can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -2188,7 +2188,7 @@ To read a window's WM_HINTS property, use - XWMHints *XGetWMHints + XWMHints *XGetWMHints Display *display Window w @@ -2225,7 +2225,7 @@ The function reads the window manager hints and returns NULL if no WM_HINTS property was set on the window or returns a pointer to an -XWMHints +XWMHints structure if it succeeds. When finished with the data, free the space used for it by calling @@ -2235,7 +2235,7 @@ free the space used for it by calling XGetWMHints can generate a -BadWindow +BadWindow error. @@ -2249,15 +2249,15 @@ error. Xlib provides functions that you can use to set or read the WM_NORMAL_HINTS property for a given window. The functions use the flags and the -XSizeHints +XSizeHints structure, as defined in the - +<X11/Xutil.h> header file. The size of the -XSizeHints +XSizeHints structure may grow in future releases, as new components are added to support new ICCCM features. Passing statically allocated instances of this structure into @@ -2270,7 +2270,7 @@ instances of the structure be used. To allocate an -XSizeHints +XSizeHints structure, use XAllocSizeHints. @@ -2284,10 +2284,10 @@ XSizeHints *XAllocSizeHints() The XAllocSizeHints function allocates and returns a pointer to an -XSizeHints +XSizeHints structure. Note that all fields in the -XSizeHints +XSizeHints structure are initially set to zero. If insufficient memory is available, XAllocSizeHints @@ -2299,7 +2299,7 @@ use The -XSizeHints +XSizeHints structure contains: @@ -2370,7 +2370,7 @@ in the absence of a window manager. Note that use of the -PAllHints +PAllHints macro is highly discouraged. @@ -2382,7 +2382,7 @@ To set a window's WM_NORMAL_HINTS property, use - void XSetWMNormalHints + void XSetWMNormalHints Display *display Window w XSizeHints *hints @@ -2426,7 +2426,7 @@ Specifies the size hints for the window in its normal state. The -XSetWMNormalHints +XSetWMNormalHints function replaces the size hints for the WM_NORMAL_HINTS property on the specified window. If the property does not already exist, @@ -2438,9 +2438,9 @@ The property is stored with a type of WM_SIZE_HINTS and a format of 32. XSetWMNormalHints can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -2452,7 +2452,7 @@ To read a window's WM_NORMAL_HINTS property, use - Status XGetWMNormalHints + Status XGetWMNormalHints Display *display Window w XSizeHints *hints_return @@ -2507,7 +2507,7 @@ Returns the hints that were supplied by the user. The -XGetWMNormalHints +XGetWMNormalHints function returns the size hints stored in the WM_NORMAL_HINTS property on the specified window. If the property is of type WM_SIZE_HINTS, is of format 32, @@ -2515,7 +2515,7 @@ and is long enough to contain either an old (pre-ICCCM) or new size hints structure, XGetWMNormalHints sets the various fields of the -XSizeHints +XSizeHints structure, sets the supplied_return argument to the list of fields that were supplied by the user (whether or not they contained defined values), and returns a nonzero status. @@ -2551,7 +2551,7 @@ PBaseSize|PWinGravity XGetWMNormalHints can generate a -BadWindow +BadWindow error. @@ -2563,7 +2563,7 @@ To set a window's WM_SIZE_HINTS property, use - void XSetWMSizeHints + void XSetWMSizeHints Display *display Window w XSizeHints *hints @@ -2599,7 +2599,7 @@ Specifies the window. Specifies the -XSizeHints +XSizeHints structure to be used. @@ -2620,7 +2620,7 @@ Specifies the property name. The -XSetWMSizeHints +XSetWMSizeHints function replaces the size hints for the specified property on the named window. If the specified property does not already exist, @@ -2637,10 +2637,10 @@ function. XSetWMSizeHints can generate -BadAlloc, -BadAtom, +BadAlloc, +BadAtom, and -BadWindow +BadWindow errors. @@ -2652,7 +2652,7 @@ To read a window's WM_SIZE_HINTS property, use - Status XGetWMSizeHints + Status XGetWMSizeHints Display *display Window w XSizeHints *hints_return @@ -2689,7 +2689,7 @@ Specifies the window. Returns the -XSizeHints +XSizeHints structure. @@ -2728,7 +2728,7 @@ and is long enough to contain either an old (pre-ICCCM) or new size hints structure, XGetWMSizeHints sets the various fields of the -XSizeHints +XSizeHints structure, sets the supplied_return argument to the list of fields that were supplied by the user (whether or not they contained defined values), @@ -2736,7 +2736,7 @@ and returns a nonzero status. Otherwise, it returns a zero status. To get a window's normal size hints, you can use the -XGetWMNormalHints +XGetWMNormalHints function. @@ -2769,9 +2769,9 @@ PBaseSize|PWinGravity XGetWMSizeHints can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. @@ -2785,16 +2785,16 @@ errors. Xlib provides functions that you can use to set and get the WM_CLASS property for a given window. These functions use the -XClassHint +XClassHint structure, which is defined in the - +<X11/Xutil.h> header file. To allocate an -XClassHint +XClassHint structure, use XAllocClassHint. XAllocClassHint @@ -2811,10 +2811,10 @@ structure, use The XAllocClassHint function allocates and returns a pointer to an -XClassHint +XClassHint structure. Note that the pointer fields in the -XClassHint +XClassHint structure are initially set to NULL. If insufficient memory is available, XAllocClassHint @@ -2826,7 +2826,7 @@ use The -XClassHint +XClassHint contains: @@ -2865,7 +2865,7 @@ To set a window's WM_CLASS property, use - XSetClassHint + XSetClassHint Display *display Window w XClassHint *class_hints @@ -2900,7 +2900,7 @@ Specifies the window. Specifies the -XClassHint +XClassHint structure that is to be used. @@ -2920,9 +2920,9 @@ the result is implementation-dependent. XSetClassHint can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -2934,7 +2934,7 @@ To read a window's WM_CLASS property, use - Status XGetClassHint + Status XGetClassHint Display *display Window w XClassHint *class_hints_return @@ -2969,7 +2969,7 @@ Specifies the window. Returns the -XClassHint +XClassHint structure. @@ -2997,7 +2997,7 @@ on each individually. XGetClassHint can generate a -BadWindow +BadWindow error. @@ -3020,7 +3020,7 @@ To set a window's WM_TRANSIENT_FOR property, use - XSetTransientForHint + XSetTransientForHint Display *display Window w Window prop_window @@ -3072,9 +3072,9 @@ specified prop_window. XSetTransientForHint can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -3086,7 +3086,7 @@ To read a window's WM_TRANSIENT_FOR property, use - Status XGetTransientForHint + Status XGetTransientForHint Display *display Window w Window *prop_window_return @@ -3139,7 +3139,7 @@ otherwise, it returns a zero status. XGetTransientForHint can generate a -BadWindow +BadWindow error. @@ -3162,7 +3162,7 @@ To set a window's WM_PROTOCOLS property, use - Status XSetWMProtocols + Status XSetWMProtocols Display *display Window w Atom *protocols @@ -3218,7 +3218,7 @@ Specifies the number of (Cn. The -XSetWMProtocols +XSetWMProtocols function replaces the WM_PROTOCOLS property on the specified window with the list of atoms specified by the protocols argument. If the property does not already exist, @@ -3235,9 +3235,9 @@ Otherwise, it returns a nonzero status. XSetWMProtocols can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -3249,7 +3249,7 @@ To read a window's WM_PROTOCOLS property, use - Status XGetWMProtocols + Status XGetWMProtocols Display *display Window w Atom **protocols_return @@ -3305,7 +3305,7 @@ Returns the number of (Cn. The -XGetWMProtocols +XGetWMProtocols function returns the list of atoms stored in the WM_PROTOCOLS property on the specified window. These atoms describe window manager protocols in which the owner @@ -3325,7 +3325,7 @@ To release the list of atoms, use XGetWMProtocols can generate a -BadWindow +BadWindow error. @@ -3348,7 +3348,7 @@ To set a window's WM_COLORMAP_WINDOWS property, use - Status XSetWMColormapWindows + Status XSetWMColormapWindows Display *display Window w Window *colormap_windows @@ -3404,7 +3404,7 @@ Specifies the number of (Cn. The -XSetWMColormapWindows +XSetWMColormapWindows function replaces the WM_COLORMAP_WINDOWS property on the specified window with the list of windows specified by the colormap_windows argument. If the property does not already exist, @@ -3421,9 +3421,9 @@ Otherwise, it returns a nonzero status. XSetWMColormapWindows can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -3435,7 +3435,7 @@ To read a window's WM_COLORMAP_WINDOWS property, use - Status XGetWMColormapWindows + Status XGetWMColormapWindows Display *display Window w Window **colormap_windows_return @@ -3491,7 +3491,7 @@ Returns the number of (Cn. The -XGetWMColormapWindows +XGetWMColormapWindows function returns the list of window identifiers stored in the WM_COLORMAP_WINDOWS property on the specified window. These identifiers indicate the colormaps that the window manager @@ -3511,7 +3511,7 @@ To release the list of window identifiers, use XGetWMColormapWindows can generate a -BadWindow +BadWindow error. @@ -3525,17 +3525,17 @@ error. Xlib provides functions that you can use to set and read the WM_ICON_SIZE property for a given window. These functions use the -XIconSize +XIconSize XIconSize structure, which is defined in the - +<X11/Xutil.h> header file. To allocate an -XIconSize +XIconSize structure, use XAllocIconSize. @@ -3548,12 +3548,12 @@ structure, use The -XAllocIconSize +XAllocIconSize function allocates and returns a pointer to an -XIconSize +XIconSize structure. Note that all fields in the -XIconSize +XIconSize structure are initially set to zero. If insufficient memory is available, XAllocIconSize @@ -3565,7 +3565,7 @@ use The -XIconSize +XIconSize structure contains: @@ -3597,7 +3597,7 @@ To set a window's WM_ICON_SIZE property, use - XSetIconSizes + XSetIconSizes Display *display Window w XIconSize *size_list @@ -3659,9 +3659,9 @@ function is used only by window managers to set the supported icon sizes. XSetIconSizes can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -3673,7 +3673,7 @@ To read a window's WM_ICON_SIZE property, use - Status XGetIconSizes + Status XGetIconSizes Display *display Window w XIconSize **size_list_return @@ -3747,7 +3747,7 @@ To free the data allocated in size_list_return, use XGetIconSizes can generate a -BadWindow +BadWindow error. @@ -3770,7 +3770,7 @@ WM_COMMAND, WM_CLIENT_MACHINE, and WM_LOCALE_NAME. - void XmbSetWMProperties + void XmbSetWMProperties Display *display Window w char *window_name @@ -3863,7 +3863,7 @@ Specifies the size hints for the window in its normal state. Specifies the -XWMHints +XWMHints structure to be used. @@ -3875,7 +3875,7 @@ structure to be used. Specifies the -XClassHint +XClassHint structure to be used. @@ -3930,7 +3930,7 @@ An argc of zero indicates a zero-length command. The hostname of the machine is stored using -XSetWMClientMachine +XSetWMClientMachine (see section 14.2.2). @@ -3939,7 +3939,7 @@ If the class_hints argument is non-NULL, XmbSetWMProperties sets the WM_CLASS property. If the res_name member in the -XClassHint +XClassHint structure is set to the NULL pointer and the RESOURCE_NAME environment variable is set, the value of the environment variable is substituted for res_name. @@ -3970,9 +3970,9 @@ and is converted to STRING for storage in the property. XmbSetWMProperties can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -3988,7 +3988,7 @@ WM_COMMAND, and WM_CLIENT_MACHINE. - void XSetWMProperties + void XSetWMProperties Display *display Window w XTextProperty *window_name @@ -4081,7 +4081,7 @@ Specifies the size hints for the window in its normal state. Specifies the -XWMHints +XWMHints structure to be used. @@ -4093,7 +4093,7 @@ structure to be used. Specifies the -XClassHint +XClassHint structure to be used. @@ -4104,7 +4104,7 @@ structure to be used. The -XSetWMProperties +XSetWMProperties convenience function provides a single programming interface for setting those essential window properties that are used for communicating with other clients (particularly window and session @@ -4129,7 +4129,7 @@ calls which sets the WM_COMMAND property (see section 14.2.1). Note that an argc of zero is allowed to indicate a zero-length command. Note also that the hostname of this machine is stored using -XSetWMClientMachine +XSetWMClientMachine (see section 14.2.2). @@ -4153,7 +4153,7 @@ calls XSetClassHint, which sets the WM_CLASS property (see section 14.1.8). If the res_name member in the -XClassHint +XClassHint structure is set to the NULL pointer and the RESOURCE_NAME environment variable is set, then the value of the environment variable is substituted for res_name. @@ -4167,9 +4167,9 @@ any directory prefixes, is substituted for res_name. XSetWMProperties can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -4214,7 +4214,7 @@ To set a window's WM_COMMAND property, use - XSetCommand + XSetCommand Display *display Window w char **argv @@ -4280,9 +4280,9 @@ the result is implementation-dependent. XSetCommand can generate -BadAlloc +BadAlloc and -BadWindow +BadWindow errors. @@ -4294,7 +4294,7 @@ To read a window's WM_COMMAND property, use - Status XGetCommand + Status XGetCommand Display *display Window w char ***argv_return @@ -4349,7 +4349,7 @@ Returns the number of arguments returned. The -XGetCommand +XGetCommand function reads the WM_COMMAND property from the specified window and returns a string list. If the WM_COMMAND property exists, @@ -4385,7 +4385,7 @@ To set a window's WM_CLIENT_MACHINE property, use - void XSetWMClientMachine + void XSetWMClientMachine Display *display Window w XTextProperty *text_prop @@ -4420,7 +4420,7 @@ Specifies the window. Specifies the -XTextProperty +XTextProperty structure to be used. @@ -4445,7 +4445,7 @@ To read a window's WM_CLIENT_MACHINE property, use - Status XGetWMClientMachine + Status XGetWMClientMachine Display *display Window w XTextProperty *text_prop_return @@ -4480,7 +4480,7 @@ Specifies the window. Returns the -XTextProperty +XTextProperty structure. @@ -4493,7 +4493,7 @@ structure. The XGetWMClientMachine convenience function performs an -XGetTextProperty +XGetTextProperty on the WM_CLIENT_MACHINE property. It returns a nonzero status on success; otherwise, it returns a zero status. @@ -4605,7 +4605,7 @@ Applications should use the standard colormaps if they already exist. To allocate an -XStandardColormap +XStandardColormap structure, use XAllocStandardColormap. @@ -4619,10 +4619,10 @@ XStandardColormap *XAllocStandardColormap() The XAllocStandardColormap function allocates and returns a pointer to an -XStandardColormap +XStandardColormap structure. Note that all fields in the -XStandardColormap +XStandardColormap structure are initially set to zero. If insufficient memory is available, XAllocStandardColormap @@ -4634,7 +4634,7 @@ use The -XStandardColormap +XStandardColormap structure contains: @@ -4707,13 +4707,13 @@ using the following expression: For -GrayScale +GrayScale colormaps, only the colormap, red_max, red_mult, and base_pixel members are defined. The other members are ignored. To compute a -GrayScale +GrayScale pixel value, use the following expression: @@ -4748,7 +4748,7 @@ function on the indicated resource. The properties containing the -XStandardColormap +XStandardColormap information have the type RGB_COLOR_MAP. @@ -4772,7 +4772,7 @@ and each such property is identified by an atom. The following list names the atoms and describes the colormap associated with each one. The - +<X11/Xatom.h> header file contains the definitions for each of the following atoms, which are prefixed with XA_. @@ -4786,7 +4786,7 @@ which are prefixed with XA_. This atom names a property. The value of the property is an array of -XStandardColormap +XStandardColormap structures. Each entry in the array describes an RGB subset of the default color map for the Visual specified by visual_id. @@ -4813,7 +4813,7 @@ for text, borders, and so on. This atom names a property. The value of the property is an -XStandardColormap. +XStandardColormap. The property defines the best RGB colormap available on @@ -4827,11 +4827,11 @@ red, as well as more green or red than blue. For an 8-plane -PseudoColor +PseudoColor visual, RGB_BEST_MAP is likely to be a 3/3/2 allocation. For a 24-plane -DirectColor +DirectColor visual, RGB_BEST_MAP is normally an 8/8/8 allocation. @@ -4843,7 +4843,7 @@ RGB_BEST_MAP is normally an 8/8/8 allocation. These atoms name properties. The value of each property is an -XStandardColormap. +XStandardColormap. The properties define all-red, all-green, and all-blue @@ -4863,17 +4863,17 @@ and once with blue) and by multiply exposing a single frame in a camera. This atom names a property. The value of the property is an -XStandardColormap. +XStandardColormap. The property describes the best -GrayScale +GrayScale colormap available on the screen. As previously mentioned, only the colormap, red_max, red_mult, and base_pixel members of the -XStandardColormap +XStandardColormap structure are used for -GrayScale +GrayScale colormaps. @@ -4890,21 +4890,21 @@ colormaps. Xlib provides functions that you can use to set and obtain an -XStandardColormap +XStandardColormap structure. To set an -XStandardColormap +XStandardColormap structure, use XSetRGBColormaps. XSetRGBColormaps - void XSetRGBColormaps + void XSetRGBColormaps Display *display Window w XStandardColormap *std_colormap @@ -4941,7 +4941,7 @@ Specifies the window. Specifies the -XStandardColormap +XStandardColormap structure to be used. @@ -4973,7 +4973,7 @@ Specifies the property name. The -XSetRGBColormaps +XSetRGBColormaps function replaces the RGB colormap definition in the specified property on the named window. If the property does not already exist, @@ -5027,7 +5027,7 @@ Determine the color characteristics of the visual. Allocate cells in the colormap (or create it with -AllocAll). +AllocAll). @@ -5040,7 +5040,7 @@ to store appropriate color values in the colormap. Fill in the descriptive members in the -XStandardColormap +XStandardColormap structure. @@ -5067,24 +5067,24 @@ Ungrab the server. XSetRGBColormaps can generate -BadAlloc, -BadAtom, +BadAlloc, +BadAtom, and -BadWindow +BadWindow errors. To obtain the -XStandardColormap +XStandardColormap structure associated with the specified property, use XGetRGBColormaps. XGetRGBColormaps - Status XGetRGBColormaps + Status XGetRGBColormaps Display *display Window w XStandardColormap **std_colormap_return @@ -5121,7 +5121,7 @@ Specifies the window. Returns the -XStandardColormap +XStandardColormap structure. @@ -5162,10 +5162,10 @@ and is long enough to contain a colormap definition, allocates and fills in space for the returned colormaps and returns a nonzero status. If the visualid is not present, -XGetRGBColormaps +XGetRGBColormaps assumes the default visual for the screen on which the window is located; if the killid is not present, -None +None is assumed, which indicates that the resources cannot be released. Otherwise, none of the fields are set, and @@ -5178,9 +5178,9 @@ restriction that only RGB_DEFAULT_MAP contain more than one definition. XGetRGBColormaps can generate -BadAtom +BadAtom and -BadWindow +BadWindow errors. diff --git a/libX11/specs/libX11/CH15.xml b/libX11/specs/libX11/CH15.xml index 299a1196f..844f1d204 100644 --- a/libX11/specs/libX11/CH15.xml +++ b/libX11/specs/libX11/CH15.xml @@ -123,7 +123,7 @@ value for that entry. The definitions for the resource manager are contained in - +<X11/Xresource.h>. Resource File Syntax @@ -337,7 +337,7 @@ in many of the resource manager functions. Simple comparisons can be performed rather than string comparisons. The shorthand name for a string is called a quark and is the type -XrmQuark. +XrmQuark. On some occasions, you may want to allocate a quark that has no string equivalent. @@ -368,7 +368,7 @@ is known to the resource manager. Each name, class, and representation type is typedef'd as an -XrmQuark. +XrmQuark. @@ -473,7 +473,7 @@ To convert a quark to a string, use - char *XrmQuarkToString + char *XrmQuarkToString XrmQuark quark @@ -520,7 +520,7 @@ To convert a string with one or more components to a quark list, use - void XrmStringToQuarkList + void XrmStringToQuarkList char *string XrmQuarkList quarks_return @@ -567,7 +567,7 @@ the conversion is implementation-dependent. A binding list is a list of type -XrmBindingList +XrmBindingList and indicates if components of name or class lists are bound tightly or loosely (that is, if wildcarding of intermediate components is specified). @@ -579,9 +579,9 @@ typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding, *XrmBindingList; -XrmBindTightly +XrmBindTightly indicates that a period separates the components, and -XrmBindLoosely +XrmBindLoosely indicates that an asterisk separates the components. @@ -594,7 +594,7 @@ and a quark list, use - XrmStringToBindingQuarkList + XrmStringToBindingQuarkList char *string XrmBindingList bindings_return XrmQuarkList quarks_return @@ -668,9 +668,9 @@ bindings: loose tight loose XrmDatabase A resource database is an opaque type, -XrmDatabase. +XrmDatabase. Each database value is stored in an -XrmValue +XrmValue structure. This structure consists of a size, an address, and a representation type. The size is specified in bytes. @@ -678,7 +678,7 @@ The representation type is a way for you to store data tagged by some application-defined type (for example, the strings ``font'' or ``color''). It has nothing to do with the C data type or with its class. The -XrmValue +XrmValue structure is defined as: @@ -704,7 +704,7 @@ To initialize the resource manager, use - void XrmInitialize + void XrmInitialize void XrmInitialize(\|) @@ -719,7 +719,7 @@ To retrieve a database from disk, use - XrmDatabase XrmGetFileDatabase + XrmDatabase XrmGetFileDatabase char *filename @@ -763,7 +763,7 @@ To store a copy of a database to disk, use - void XrmPutFileDatabase + void XrmPutFileDatabase XrmDatabase database char *stored_db @@ -816,7 +816,7 @@ To obtain a pointer to the screen-independent resources of a display, use - char * XResourceManagerString + char *XResourceManagerString Display *display @@ -860,7 +860,7 @@ To obtain a pointer to the screen-specific resources of a screen, use - char * XScreenResourceString + char *XScreenResourceString Screen *screen @@ -904,7 +904,7 @@ To create a database from a string, use - XrmDatabase XrmGetStringDatabase + XrmDatabase XrmGetStringDatabase char *data @@ -949,7 +949,7 @@ To obtain the locale name of a database, use - char * XrmLocaleOfDatabase + char *XrmLocaleOfDatabase XrmDatabase database @@ -989,7 +989,7 @@ To destroy a resource database and free its allocated memory, use - void XrmDestroyDatabase + void XrmDestroyDatabase XrmDatabase database @@ -1023,7 +1023,7 @@ To associate a resource database with a display, use - void XrmSetDatabase + void XrmSetDatabase Display *display XrmDatabase database @@ -1072,7 +1072,7 @@ To get the resource database associated with a display, use - XrmDatabase XrmGetDatabase + XrmDatabase XrmGetDatabase Display *display @@ -1112,7 +1112,7 @@ To merge the contents of a resource file into a database, use - Status XrmCombineFileDatabase + Status XrmCombineFileDatabase char *filename XrmDatabase *target_db Bool override @@ -1163,7 +1163,7 @@ If the same specifier is used for an entry in both the file and the database, the entry in the file will replace the entry in the database if override is -True; +True; otherwise, the entry in the file is discarded. The file is parsed in the current locale. If the file cannot be read, @@ -1186,7 +1186,7 @@ To merge the contents of one database into another database, use - void XrmCombineDatabase + void XrmCombineDatabase XrmDatabasesource_db, *target_db Bool override @@ -1235,7 +1235,7 @@ function merges the contents of one database into another. If the same specifier is used for an entry in both databases, the entry in the source_db will replace the entry in the target_db if override is -True; +True; otherwise, the entry in source_db is discarded. If target_db contains NULL, XrmCombineDatabase @@ -1256,7 +1256,7 @@ semantics, use - void XrmMergeDatabases + void XrmMergeDatabases XrmDatabasesource_db, *target_db @@ -1293,7 +1293,7 @@ Calling the function is equivalent to calling the XrmCombineDatabase function with an override argument of -True. +True. @@ -1316,7 +1316,7 @@ or - Bool XrmGetResource + Bool XrmGetResource XrmDatabase database char *str_name char *str_class @@ -1386,7 +1386,7 @@ Returns the value in the database. - Bool XrmQGetResource + Bool XrmQGetResource XrmDatabase database XrmNameList quark_name XrmClassList quark_class @@ -1452,9 +1452,9 @@ Returns the value in the database. The -XrmGetResource +XrmGetResource and -XrmQGetResource +XrmQGetResource functions retrieve a resource from the specified database. Both take a fully qualified name/class pair, a destination resource representation, and the address of a value @@ -1473,13 +1473,13 @@ A client that is not storing new values into the database or is not merging the database should be safe using the address passed back at any time until it exits. If a resource was found, both -XrmGetResource +XrmGetResource and -XrmQGetResource +XrmQGetResource return -True; +True; otherwise, they return -False. +False. @@ -1493,7 +1493,7 @@ The X toolkit access pattern for a resource database is quite stylized. A series of from 1 to 20 probes is made with only the last name/class differing in each probe. The -XrmGetResource +XrmGetResource function is at worst a %2 sup n% algorithm, where n is the length of the name/class list. This can be improved upon by the application programmer by prefetching a list @@ -1508,7 +1508,7 @@ To obtain a list of database levels, use - Bool XrmQGetSearchResource + Bool XrmQGetSearchResource XrmDatabase database XrmNameList names XrmClassList classes @@ -1581,14 +1581,14 @@ function takes a list of names and classes and returns a list of database levels where a match might occur. The returned list is in best-to-worst order and uses the same algorithm as -XrmGetResource +XrmGetResource for determining precedence. If list_return was large enough for the search list, XrmQGetSearchList returns -True; +True; otherwise, it returns -False. +False. @@ -1601,7 +1601,7 @@ where n is the number of name or class components When using -XrmQGetSearchList +XrmQGetSearchList followed by multiple probes for resources with a common name and class prefix, only the common prefix should be specified in the name and class list to XrmQGetSearchList. @@ -1615,7 +1615,7 @@ To search resource database levels for a given resource, use - Bool XrmQGetSearchResource + Bool XrmQGetSearchResource XrmSearchList list XrmName name XrmClass class @@ -1688,22 +1688,22 @@ that is fully identified by the specified name and class. The search stops with the first match. XrmQGetSearchResource returns -True +True if the resource was found; otherwise, it returns -False. +False. A call to -XrmQGetSearchList +XrmQGetSearchList with a name and class list containing all but the last component of a resource name followed by a call to -XrmQGetSearchResource +XrmQGetSearchResource with the last component name and class returns the same database entry as -XrmGetResource +XrmGetResource and -XrmQGetResource +XrmQGetResource with the fully qualified name and class. @@ -1715,7 +1715,7 @@ with the fully qualified name and class. To store resources into the database, use -XrmPutResource +XrmPutResource or XrmQPutResource. Both functions take a partial resource specification, a @@ -1729,7 +1729,7 @@ This value is copied into the specified database. - void XrmPutResource + void XrmPutResource XrmDatabase *database char *specifier char *type @@ -1807,7 +1807,7 @@ The value is stored in the database without modification. - void XrmQPutResource + void XrmQPutResource XrmDatabase *database XrmBindingList bindings XrmQuarkList quarks @@ -1889,7 +1889,7 @@ To add a resource that is specified as a string, use - void XrmPutStringResource + void XrmPutStringResource XrmDatabase *database char *specifier char *value @@ -1956,7 +1956,7 @@ To add a string resource using quarks as a specification, use - void XrmQPutStringResource + void XrmQPutStringResource XrmDatabase *database XrmBindingList bindings XrmQuarkList quarks @@ -2015,7 +2015,7 @@ If database contains NULL, creates a new database and returns a pointer to it. XrmQPutStringResource is a convenience routine that constructs an -XrmValue +XrmValue for the value string (by calling strlen to compute the size) and @@ -2034,7 +2034,7 @@ both a name and a value, use - void XrmPutLineResource + void XrmPutLineResource XrmDatabase *database char *line @@ -2077,7 +2077,7 @@ the database that results from using a string with incorrect syntax is implementation-dependent. The string is parsed in the locale of the database. If the -ResourceName +ResourceName is not in the Host Portable Character Encoding, the result is implementation-dependent. Note that comment lines are not stored. @@ -2103,7 +2103,7 @@ To enumerate the entries of a database, use - Bool XrmEnumerateDatabase + Bool XrmEnumerateDatabase XrmDatabase database XrmNameList name_prefix XrmClassList class_prefix @@ -2185,20 +2185,20 @@ function calls the specified procedure for each resource in the database that would match some completion of the given name/class resource prefix. The order in which resources are found is implementation-dependent. If mode is -XrmEnumOneLevel, +XrmEnumOneLevel, a resource must match the given name/class prefix with just a single name and class appended. If mode is -XrmEnumAllLevels, +XrmEnumAllLevels, the resource must match the given name/class prefix with one or more names and classes appended. If the procedure returns -True, +True, the enumeration terminates and the function returns -True. +True. If the procedure always returns -False, +False, all matching resources are enumerated and the function returns -False. +False. @@ -2223,7 +2223,7 @@ The procedure is called with the following arguments: The bindings and quarks lists are terminated by -NULLQUARK. +NULLQUARK. Note that pointers to the database and type are passed, but these values should not be modified. @@ -2271,14 +2271,14 @@ typedef enum { Note that -XrmoptionSkipArg +XrmoptionSkipArg is equivalent to -XrmoptionSkipNArgs +XrmoptionSkipNArgs with the -XrmOptionDescRec.value +XrmOptionDescRec.value field containing the value one. Note also that the value zero for -XrmoptionSkipNArgs +XrmoptionSkipNArgs indicates that only the option itself is to be skipped. @@ -2307,7 +2307,7 @@ To load a resource database from a C command line, use - void XrmParseCommand + void XrmParseCommand XrmDatabase *database XrmOptionDescList table int table_count @@ -2404,7 +2404,7 @@ in the order they occur in argv. The table entries contain information on the option string, the option name, the style of option, and a value to provide if the option kind is -XrmoptionNoArg. +XrmoptionNoArg. The option names are compared byte-for-byte to arguments in argv, independent of any locale. The resource values given in the table are stored in the resource database diff --git a/libX11/specs/libX11/CH16.xml b/libX11/specs/libX11/CH16.xml index 7575c4a61..c3751cc09 100644 --- a/libX11/specs/libX11/CH16.xml +++ b/libX11/specs/libX11/CH16.xml @@ -99,7 +99,7 @@ To obtain a KeySym for the KeyCode of an event, use - KeySym XLookupKeysym + KeySym XLookupKeysym XKeyEvent *key_event int index @@ -113,9 +113,9 @@ To obtain a KeySym for the KeyCode of an event, use Specifies the -KeyPress +KeyPress or -KeyRelease +KeyRelease event. @@ -139,14 +139,14 @@ The XLookupKeysym function uses a given keyboard event and the index you specified to return the KeySym from the list that corresponds to the KeyCode member in the -XKeyPressedEvent +XKeyPressedEvent or -XKeyReleasedEvent +XKeyReleasedEvent structure. If no KeySym is defined for the KeyCode of the event, XLookupKeysym returns -NoSymbol. +NoSymbol. @@ -157,7 +157,7 @@ To obtain a KeySym for a specific KeyCode, use - KeySym XKeycodeToKeysym + KeySym XKeycodeToKeysym Display *display KeyCode keycode int index @@ -208,7 +208,7 @@ the element of the KeyCode vector. If no symbol is defined, XKeycodeToKeysym returns -NoSymbol. +NoSymbol. @@ -219,7 +219,7 @@ To obtain a KeyCode for a key having a specific KeySym, use - KeyCode XKeysymToKeycode + KeyCode XKeysymToKeycode Display *display KeySym keysym @@ -267,7 +267,7 @@ To refresh the stored modifier and keymap information, use - XRefreshKeyboardMapping + XRefreshKeyboardMapping XMappingEvent *event_map @@ -292,11 +292,11 @@ The XRefreshKeyboardMapping function refreshes the stored modifier and keymap information. You usually call this function when a -MappingNotify +MappingNotify event with a request member of -MappingKeyboard +MappingKeyboard or -MappingModifier +MappingModifier occurs. The result is to update Xlib's knowledge of the keyboard. @@ -309,7 +309,7 @@ To obtain the uppercase and lowercase forms of a KeySym, use - void XConvertCase + void XConvertCase KeySym keysym KeySym *lower_return KeySym *upper_return @@ -372,7 +372,7 @@ To convert the name of the KeySym to the KeySym code, use - KeySym XStringToKeysym + KeySym XStringToKeysym char *string @@ -394,7 +394,7 @@ Specifies the name of the KeySym that is to be converted. Standard KeySym names are obtained from - +<X11/keysymdef.h> by removing the XK_ prefix from each name. KeySyms that are not part of the Xlib standard also may be obtained with this function. @@ -408,7 +408,7 @@ the result is implementation-dependent. If the specified string does not match a valid KeySym, XStringToKeysym returns -NoSymbol. +NoSymbol. @@ -419,7 +419,7 @@ To convert a KeySym code to the name of the KeySym, use - char * XKeysymToString + char *XKeysymToString KeySym keysym @@ -479,7 +479,7 @@ Specifies the KeySym that is to be tested. IsCursorKey Returns -True +True if the specified KeySym is a cursor key. @@ -506,7 +506,7 @@ Specifies the KeySym that is to be tested. IsFunctionKey Returns -True +True if the specified KeySym is a function key. @@ -533,7 +533,7 @@ Specifies the KeySym that is to be (Fn. IsKeypadKey Returns -True +True if the specified KeySym is a standard keypad key. @@ -559,7 +559,7 @@ Specifies the KeySym that is to be (Fn. IsPrivateKeypadKey Returns -True +True if the specified KeySym is a vendor-private keypad key. @@ -587,7 +587,7 @@ Specifies the KeySym that is to be (Fn. IsMiscFunctionKey Returns -True +True if the specified KeySym is a miscellaneous function key. @@ -613,7 +613,7 @@ Specifies the KeySym that is to be tested. IsModifierKey Returns -True +True if the specified KeySym is a modifier key. @@ -637,7 +637,7 @@ Specifies the KeySym that is to be tested. IsPFKey Returns -True +True if the specified KeySym is a PF key. @@ -667,7 +667,7 @@ To map a key event to an ISO Latin-1 string, use - int XLookupString + int XLookupString XKeyEvent *event_struct char *buffer_return int bytes_buffer @@ -685,9 +685,9 @@ To map a key event to an ISO Latin-1 string, use Specifies the key event structure to be used. You can pass -XKeyPressedEvent +XKeyPressedEvent or -XKeyReleasedEvent. +XKeyReleasedEvent. @@ -729,7 +729,7 @@ Returns the KeySym computed from the event if this argument is not NULL. Specifies or returns the -XComposeStatus +XComposeStatus structure or NULL. @@ -743,8 +743,8 @@ The XLookupString function translates a key event to a KeySym and a string. The KeySym is obtained by using the standard interpretation of the -Shift, -Lock, +Shift, +Lock, group, and numlock modifiers as defined in the X Protocol specification. If the KeySym has been rebound (see XRebindKeysym), @@ -759,14 +759,14 @@ returns the number of characters that are stored in the buffer. If present (non-NULL), the -XComposeStatus +XComposeStatus structure records the state, which is private to Xlib, that needs preservation across calls to XLookupString to implement compose processing. The creation of -XComposeStatus +XComposeStatus structures is implementation-dependent; a portable program must pass NULL for this argument. @@ -789,7 +789,7 @@ use - XRebindKeysym + XRebindKeysym Display *display KeySym keysym KeySym list[\^]\^ @@ -894,7 +894,7 @@ To allocate some memory you will never give back, use - char * Xpermalloc + char *Xpermalloc unsignedint size @@ -928,7 +928,7 @@ To parse standard window geometry strings, use - int XParseGeometry + int XParseGeometry char *parsestring int*x_return, *y_return unsignedint*width_return, *height_return @@ -1029,24 +1029,24 @@ be able to say ``position the window relative to the right or bottom edge.'' For each value found, the corresponding argument is updated. For each value not found, the argument is left unchanged. The bits are represented by -XValue, -YValue, -WidthValue, -HeightValue, -XNegative, +XValue, +YValue, +WidthValue, +HeightValue, +XNegative, or -YNegative +YNegative and are defined in - +<X11/Xutil.h>. They will be set whenever one of the values is defined or one of the signs is set. If the function returns either the -XValue +XValue or -YValue +YValue flag, you should place the window at the requested position. @@ -1059,7 +1059,7 @@ To construct a window's geometry information, use - int XWMGeometry + int XWMGeometry Display *display int screen char *user_geom @@ -1192,20 +1192,20 @@ Returns the window gravity. The -XWMGeometry +XWMGeometry function combines any geometry information (given in the format used by XParseGeometry) specified by the user and by the calling program with size hints (usually the ones to be stored in WM_NORMAL_HINTS) and returns the position, size, and gravity -(NorthWestGravity, -NorthEastGravity, -SouthEastGravity, +(NorthWestGravity, +NorthEastGravity, +SouthEastGravity, or -SouthWestGravity) +SouthWestGravity) that describe the window. If the base size is not set in the -XSizeHints +XSizeHints structure, the minimum size is used if set. Otherwise, a base size of zero is assumed. @@ -1237,9 +1237,9 @@ as gravity_return to update the hints directly. Regions are arbitrary sets of pixel locations. Xlib provides functions for manipulating regions. The opaque type -Region +Region is defined in - +<X11/Xutil.h>. Xlib provides functions that you can use to manipulate regions. This section discusses how to: @@ -1295,7 +1295,7 @@ To generate a region from a polygon, use - Region XPolygonRegion + Region XPolygonRegion XPoint points[] int n int fill_rule @@ -1331,9 +1331,9 @@ Specifies the number of points in the polygon. Specifies the fill-rule you want to set for the specified GC. You can pass -EvenOddRule +EvenOddRule or -WindingRule. +WindingRule. @@ -1358,7 +1358,7 @@ To set the clip-mask of a GC to a region, use - XSetRegion + XSetRegion Display *display GC gc Region r @@ -1418,7 +1418,7 @@ To deallocate the storage associated with a specified region, use - XDestroyRegion + XDestroyRegion Region r @@ -1454,7 +1454,7 @@ To move a region by a specified amount, use - XOffsetRegion + XOffsetRegion Region r intdx, dy @@ -1506,7 +1506,7 @@ To reduce a region by a specified amount, use - XShrinkRegion + XShrinkRegion Region r intdx, dy @@ -1569,7 +1569,7 @@ To generate the smallest rectangle enclosing a region, use - XClipBox + XClipBox Region r XRectangle *rect_return @@ -1614,7 +1614,7 @@ To compute the intersection of two regions, use - XIntersectRegion + XIntersectRegion Regionsra,srb, dr_return @@ -1663,7 +1663,7 @@ To compute the union of two regions, use - XUnionRegion + XUnionRegion Regionsra,srb, dr_return @@ -1712,7 +1712,7 @@ To create a union of a source region and a rectangle, use - XUnionRectWithRegion + XUnionRectWithRegion XRectangle *rectangle Region src_region Region dest_region_return @@ -1769,7 +1769,7 @@ To subtract two regions, use - XSubtractRegion + XSubtractRegion Regionsra,srb, dr_return @@ -1825,7 +1825,7 @@ of two regions, use - XXorRegion + XXorRegion Regionsra,srb, dr_return @@ -1882,7 +1882,7 @@ To determine if the specified region is empty, use - Bool XEmptyRegion + Bool XEmptyRegion Region r @@ -1906,7 +1906,7 @@ Specifies the region. The XEmptyRegion function returns -True +True if the region is empty. @@ -1918,7 +1918,7 @@ To determine if two regions have the same offset, size, and shape, use - Bool XEqualRegion + Bool XEqualRegion Regionr1, r2 @@ -1953,7 +1953,7 @@ Specify the two regions. The XEqualRegion function returns -True +True if the two regions have the same offset, size, and shape. @@ -1970,7 +1970,7 @@ To determine if a specified point resides in a specified region, use - Bool XPointInRegion + Bool XPointInRegion Region r intx, y @@ -2017,7 +2017,7 @@ Specify the x and y coordinates(Xy. The XPointInRegion function returns -True +True if the point (x, y) is contained in the region r. @@ -2029,7 +2029,7 @@ To determine if a specified rectangle is inside a region, use - int XRectInRegion + int XRectInRegion Region r intx, y unsignedintwidth, height @@ -2099,12 +2099,12 @@ Specify the width and height(Wh. The XRectInRegion function returns -RectangleIn +RectangleIn if the rectangle is entirely in the specified region, -RectangleOut +RectangleOut if the rectangle is entirely out of the specified region, and -RectanglePart +RectanglePart if the rectangle is partially in the specified region. @@ -2141,7 +2141,7 @@ To store data in cut buffer 0, use - XStoreBytes + XStoreBytes Display *display char *bytes int \^nbytes @@ -2194,7 +2194,7 @@ any client calling XStoreBytes can generate a -BadAlloc +BadAlloc error. @@ -2206,7 +2206,7 @@ To store data in a specified cut buffer, use - XStoreBuffer + XStoreBuffer Display *display char *bytes int \^nbytes @@ -2269,7 +2269,7 @@ and need not be null-terminated. XStoreBuffer can generate a -BadAlloc +BadAlloc error. @@ -2281,7 +2281,7 @@ To return data from cut buffer 0, use - char * XFetchBytes + char *XFetchBytes Display *display int *nbytes_return @@ -2333,7 +2333,7 @@ To return data from a specified cut buffer, use - char * XFetchBuffer + char *XFetchBuffer Display *display int *nbytes_return int buffer @@ -2392,7 +2392,7 @@ To rotate the cut buffers, use - XRotateBuffers + XRotateBuffers Display *display int rotate @@ -2433,7 +2433,7 @@ This cut buffer numbering is global to the display. Note that XRotateBuffers generates -BadMatch +BadMatch errors if any of the eight buffers have not been created. @@ -2453,10 +2453,10 @@ which visual to use for your application. The functions in this section use the visual information masks and the -XVisualInfo +XVisualInfo structure, which is defined in - +<X11/Xutil.h> and contains: @@ -2509,7 +2509,7 @@ template, use - XVisualInfo * XGetVisualInfo + XVisualInfo *XGetVisualInfo Display *display long vinfo_mask XVisualInfo *vinfo_template @@ -2584,7 +2584,7 @@ class of the screen, use - Status XMatchVisualInfo + Status XMatchVisualInfo Display *display int screen int depth @@ -2672,10 +2672,10 @@ returns zero. Xlib provides several functions that perform basic operations on images. All operations on images are defined using an -XImage +XImage structure, as defined in - +<X11/Xlib.h>. Because the number of different types of image formats can be very large, this hides details of image storage properly from applications. @@ -2701,7 +2701,7 @@ to and from disk files. The -XImage +XImage structure describes an image as it exists in the client's memory. The user can request that some of the members such as height, width, and xoffset be changed when the image is sent to the server. @@ -2711,12 +2711,12 @@ Other members (for example, byte order, bitmap_unit, and so forth) are characteristics of both the image and the server. If these members differ between the image and the server, -XPutImage +XPutImage makes the appropriate conversions. The first byte of the first line of plane n must be located at the address (data + (n * height * bytes_per_line)). For a description of the -XImage +XImage structure, see section 8.7. @@ -2724,14 +2724,14 @@ see section 8.7. To allocate an -XImage +XImage structure and initialize it with image format values from a display, use XCreateImage. XCreateImage - XImage * XCreateImage + XImage *XCreateImage Display *display Visual *visual unsignedint depth @@ -2763,7 +2763,7 @@ Specifies the connection to the X server. Specifies the -Visual +Visual structure. @@ -2786,10 +2786,10 @@ Specifies the depth of the image. Specifies the format for the image. You can pass -XYBitmap, -XYPixmap, +XYBitmap, +XYPixmap, or -ZPixmap. +ZPixmap. @@ -2864,16 +2864,16 @@ the start of one scanline and the start of the next. The XCreateImage function allocates the memory needed for an -XImage +XImage structure for the specified display but does not allocate space for the image itself. Rather, it initializes the structure byte-order, bit-order, and bitmap-unit values from the display and returns a pointer to the -XImage +XImage structure. The red, green, and blue mask values are defined for Z format images only and are derived from the -Visual +Visual structure passed in. Other values also are passed in. The offset permits the rapid displaying of the image without requiring each @@ -2900,7 +2900,7 @@ The basic functions used to get a pixel, set a pixel, create a subimage, and add a constant value to an image are defined in the image object. The functions in this section are really macro invocations of the functions in the image object and are defined in - +<X11/Xutil.h>. @@ -2911,7 +2911,7 @@ To obtain a pixel value in an image, use - unsigned long XGetPixel + unsigned long XGetPixel XImage *ximage int x int y @@ -2972,7 +2972,7 @@ To set a pixel value in an image, use - XPutPixel + XPutPixel XImage *ximage int x int y @@ -3044,7 +3044,7 @@ To create a subimage, use - XImage * XSubImage + XImage *XSubImage XImage *ximage int x int y @@ -3114,7 +3114,7 @@ The XSubImage function creates a new image that is a subsection of an existing one. It allocates the memory necessary for the new -XImage +XImage structure and returns a pointer to the new image. The data is copied from the source image, @@ -3130,7 +3130,7 @@ To increment each pixel in an image by a constant value, use - XAddPixel + XAddPixel XImage *ximage long value @@ -3179,7 +3179,7 @@ use - XDestroyImage + XDestroyImage XImage *\^ximage @@ -3203,7 +3203,7 @@ Specifies the image. The XDestroyImage function deallocates the memory associated with the -XImage +XImage structure. @@ -3266,7 +3266,7 @@ To read a bitmap from a file and store it in a pixmap, use - int XReadBitmapFile + int XReadBitmapFile Display *display Drawable d char *filename @@ -3373,32 +3373,32 @@ The file is parsed in the encoding of the current locale. The ability to read other than the standard format is implementation-dependent. If the file cannot be opened, -XReadBitmapFile +XReadBitmapFile returns -BitmapOpenFailed. +BitmapOpenFailed. If the file can be opened but does not contain valid bitmap data, it returns -BitmapFileInvalid. +BitmapFileInvalid. If insufficient working storage is allocated, it returns -BitmapNoMemory. +BitmapNoMemory. If the file is readable and valid, it returns -BitmapSuccess. +BitmapSuccess. -XReadBitmapFile +XReadBitmapFile returns the bitmap's height and width, as read from the file, to width_return and height_return. It then creates a pixmap of the appropriate size, reads the bitmap data from the file into the pixmap, and assigns the pixmap to the caller's variable bitmap. The caller must free the bitmap using -XFreePixmap +XFreePixmap when finished. If name_x_hot and name_y_hot exist, -XReadBitmapFile +XReadBitmapFile returns them to x_hot_return and y_hot_return; otherwise, it returns \-1,\-1. @@ -3406,10 +3406,10 @@ otherwise, it returns \-1,\-1. XReadBitmapFile can generate -BadAlloc, -BadDrawable, +BadAlloc, +BadDrawable, and -BadGC +BadGC errors. @@ -3421,7 +3421,7 @@ To read a bitmap from a file and return it as data, use - int XReadBitmapFileData + int XReadBitmapFileData char *filename unsignedint*width_return, *height_return unsignedchar *data_return @@ -3518,7 +3518,7 @@ To write out a bitmap from a pixmap to a file, use - int XWriteBitmapFile + int XWriteBitmapFile Display *display char *filename Pixmap bitmap @@ -3615,14 +3615,14 @@ by deleting the directory prefix. The file is written in the encoding of the current locale. If the file cannot be opened for writing, it returns -BitmapOpenFailed. +BitmapOpenFailed. If insufficient memory is allocated, XWriteBitmapFile returns -BitmapNoMemory; +BitmapNoMemory; otherwise, on no error, it returns -BitmapSuccess. +BitmapSuccess. If x_hot and y_hot are not \-1, \-1, XWriteBitmapFile writes them out as the hotspot coordinates for the bitmap. @@ -3631,9 +3631,9 @@ writes them out as the hotspot coordinates for the bitmap. XWriteBitmapFile can generate -BadDrawable +BadDrawable and -BadMatch +BadMatch errors. @@ -3645,7 +3645,7 @@ To create a pixmap and then store bitmap-format data into it, use - Pixmap XCreatePixmapFromBitmapData + Pixmap XCreatePixmapFromBitmapData Display *display Drawable d char *data @@ -3751,25 +3751,25 @@ function creates a pixmap of the given depth and then does a bitmap-format of the data into it. The depth must be supported by the screen of the specified drawable, or a -BadMatch +BadMatch error results. XCreatePixmapFromBitmapData can generate -BadAlloc, -BadDrawable, -BadGC, +BadAlloc, +BadDrawable, +BadGC, and -BadValue +BadValue errors. To include a bitmap written out by -XWriteBitmapFile +XWriteBitmapFile XWriteBitmapFile in a program directly, as opposed to reading it in every time at run time, use XCreateBitmapFromData. @@ -3777,7 +3777,7 @@ in a program directly, as opposed to reading it in every time at run time, use - Pixmap XCreateBitmapFromData + Pixmap XCreateBitmapFromData Display *display Drawable d char *data @@ -3846,7 +3846,7 @@ Specify the width and height. The XCreateBitmapFromData function allows you to include in your C program (using -#include) +#include) a bitmap file that was written out by XWriteBitmapFile (X version 11 format only) without reading in the bitmap file. @@ -3866,7 +3866,7 @@ bitmap = XCreateBitmapFromData(display, window, gray_bits, gray_width, gray_heig If insufficient working storage was allocated, XCreateBitmapFromData returns -None. +None. It is your responsibility to free the bitmap using XFreePixmap @@ -3876,9 +3876,9 @@ when finished. XCreateBitmapFromData can generate -BadAlloc +BadAlloc and -BadGC +BadGC errors. @@ -3909,7 +3909,7 @@ Xlib provides context management functions with which you can save data values, get data values, delete entries, and create a unique context type. The symbols used are in - +<X11/Xutil.h>. @@ -3920,7 +3920,7 @@ To save a data value that corresponds to a resource ID and context type, use - int XSaveContext + int XSaveContext Display *display XID rid XContext context @@ -3982,7 +3982,7 @@ The function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are -XCNOMEM +XCNOMEM (out of memory). @@ -3994,7 +3994,7 @@ To get the data associated with a resource ID and type, use - int XFindContext + int XFindContext Display *display XID rid XContext context @@ -4055,7 +4055,7 @@ The function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are -XCNOENT +XCNOENT (context-not-found). @@ -4067,7 +4067,7 @@ To delete an entry for a given resource ID and type, use - int XDeleteContext + int XDeleteContext Display *display XID rid XContext context @@ -4124,7 +4124,7 @@ does not free the data whose address was saved. To create a unique context type that may be used in subsequent calls to -XSaveContext +XSaveContext and XFindContext, use diff --git a/libX11/specs/libX11/glossary.xml b/libX11/specs/libX11/glossary.xml index eda236875..4202e9a9d 100644 --- a/libX11/specs/libX11/glossary.xml +++ b/libX11/specs/libX11/glossary.xml @@ -1,6 +1,6 @@ Glossary - + Access control list Access control list @@ -14,69 +14,63 @@ Some server implementations can also implement other authorization mechanisms in addition to or in place of this mechanism. The action of this mechanism can be conditional based on the authorization protocol name and data received by the server at connection setup. - - + Active grab Active grab A grab is active when the pointer or keyboard is actually owned by the single grabbing client. - - + Ancestors Ancestors If W is an inferior of A, then A is an ancestor of W. - - + Atom Atom An atom is a unique ID corresponding to a string name. Atoms are used to identify properties, types, and selections. - - + Background Background An -InputOutput +InputOutput window can have a background, which is defined as a pixmap. When regions of the window have their contents lost or invalidated, the server automatically tiles those regions with the background. - - + Backing store Backing store When a server maintains the contents of a window, the pixels saved off-screen are known as a backing store. - - + Base font name Base font name @@ -84,29 +78,28 @@ the pixels saved off-screen are known as a backing store. A font name used to select a family of fonts whose members may be encoded in various charsets. The -CharSetRegistry +CharSetRegistry and -CharSetEncoding +CharSetEncoding fields of an XLFD name identify the charset of the font. A base font name may be a full XLFD name, with all fourteen '-' delimiters, or an abbreviated XLFD name containing only the first 12 fields of an XLFD name, up to but not including -CharSetRegistry, +CharSetRegistry, with or without the thirteenth '-', or a non-XLFD name. Any XLFD fields may contain wild cards. When creating an -XFontSet, +XFontSet, Xlib accepts from the client a list of one or more base font names which select one or more font families. They are combined with charset names obtained from the encoding of the locale to load the fonts required to render text. - - + Bit gravity Bitgravity @@ -117,47 +110,43 @@ It is possible to request that the server relocate the previous contents to some region of the window (though no guarantees are made). This attraction of window contents for some location of a window is known as bit gravity. - - + Bit plane Bitplane When a pixmap or window is thought of as a stack of bitmaps, each bitmap is called a bit plane or plane. - - + Bitmap Bitmap -A bitmap is a pixmap of depth one. - +A bitmap is a pixmap of depth one. - + Border Border An -InputOutput +InputOutput window can have a border of equal thickness on all four sides of the window. The contents of the border are defined by a pixmap, and the server automatically maintains the contents of the border. Exposure events are never generated for border regions. - - + Button grabbing Buttongrabbing @@ -165,11 +154,10 @@ Exposure events are never generated for border regions. Buttons on the pointer can be passively grabbed by a client. When the button is pressed, the pointer is then actively grabbed by the client. - - + Byte order Byteorder @@ -181,11 +169,10 @@ necessary. For all other parts of the protocol, the client defines the byte order, and the server swaps bytes as necessary. - - + Character Character @@ -194,11 +181,10 @@ A member of a set of elements used for the organization, control, or representation of text (ISO2022, as adapted by XPG3). Note that in ISO2022 terms, a character is not bound to a coded value until it is identified as part of a coded character set. - - + Character glyph Character glyph @@ -207,21 +193,19 @@ The abstract graphical symbol for a character. Character glyphs may or may not map one-to-one to font glyphs, and may be context-dependent, varying with the adjacent characters. Multiple characters may map to a single character glyph. - - + Character set Character set A collection of characters. - - + Charset Charset @@ -244,36 +228,33 @@ not characters to character glyphs. Note that a single font charset is sometimes used as the encoding of a locale, for example, ISO8859-1. - - + Children Children The children of a window are its first-level subwindows. - - + Class Class Windows can be of different classes or types. See the entries for -InputOnly +InputOnly and -InputOutput +InputOutput windows for further information about valid window types. - - + Client Client @@ -288,11 +269,10 @@ A program with multiple paths open to the server is viewed as multiple clients by the protocol. Resource lifetimes are controlled by connection lifetimes, not by program lifetimes. - - + Clipping region Clipping region @@ -301,21 +281,19 @@ In a graphics context, a bitmap or list of rectangles can be specified to restrict output to a particular region of the window. The image defined by the bitmap or rectangles is called a clipping region. - - + Coded character Coded character A character bound to a codepoint. - - + Coded character set Coded character set @@ -326,21 +304,19 @@ and its bit representation. (ISO2022, as adapted by XPG3) A definition of a one-to-one mapping of a set of characters to a set of codepoints. - - + Codepoint Codepoint The coded representation of a single character in a coded character set. - - + Colormap Colormap @@ -352,11 +328,10 @@ that drives the guns of a monitor. Depending on hardware limitations, one or more colormaps can be installed at one time so that windows associated with those maps display with true colors. - - + Connection Connection @@ -364,11 +339,10 @@ that windows associated with those maps display with true colors. The IPC path between the server and client program is known as a connection. A client program typically (but not necessarily) has one connection to the server over which requests and events are sent. - - + Containment Containment @@ -379,11 +353,10 @@ visible region of one of its inferiors. The border of the window is included as part of the window for containment. The pointer is in a window if the window contains the pointer but no inferior contains the pointer. - - + Coordinate system Coordinate system @@ -394,11 +367,10 @@ Coordinates are integral and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside upper-left corner. - - + Cursor Cursor @@ -408,11 +380,10 @@ It consists of a hotspot, a source bitmap, a shape bitmap, and a pair of colors. The cursor defined for a window controls the visible appearance when the pointer is in that window. - - + Depth Depth @@ -420,11 +391,10 @@ appearance when the pointer is in that window. The depth of a window or pixmap is the number of bits per pixel it has. The depth of a graphics context is the depth of the drawables it can be used in conjunction with graphics output. - - + Device Device @@ -435,16 +405,15 @@ Pointers can have one or more buttons (the most common number is three). The core protocol only deals with two devices: the keyboard and the pointer. - - + DirectColor DirectColor -DirectColor +DirectColor is a class of colormap in which a pixel value is decomposed into three separate subfields for indexing. The first subfield indexes an array to produce red intensity values. @@ -452,27 +421,25 @@ The second subfield indexes a second array to produce blue intensity values. The third subfield indexes a third array to produce green intensity values. The RGB (red, green, and blue) values in the colormap entry can be changed dynamically. - - + Display Display A server, together with its screens and input devices, is called a display. The Xlib -Display +Display Displaystructure structure contains all information about the particular display and its screens as well as the state that Xlib needs to communicate with the display over a particular connection. - - + Drawable Drawable @@ -481,14 +448,13 @@ Both windows and pixmaps can be used as sources and destinations in graphics operations. These windows and pixmaps are collectively known as drawables. However, an -InputOnly +InputOnly window cannot be used as a source or destination in a graphics operation. - - + Encoding Encoding @@ -505,20 +471,19 @@ sets, and the X Compound Text encoding. In X, encodings are identified by a string which appears as: the -CharSetRegistry +CharSetRegistry and -CharSetEncoding +CharSetEncoding components of an XLFD name; the name of a charset of the locale for which a font could not be found; or an atom which identifies the encoding of a text property or which names an encoding for a text selection target type. Encoding names should be composed of characters from the X Portable Character Set. - - + Escapement Escapement @@ -526,11 +491,10 @@ Character Set. The escapement of a string is the distance in pixels in the primary draw direction from the drawing origin to the origin of the next character (that is, the one following the given string) to be drawn. - - + Event Event @@ -543,11 +507,10 @@ The server never sends an event to a client unless the client has specifically asked to be informed of that type of event. However, clients can force events to be sent to other clients. Events are typically reported relative to a window. - - + Event mask Eventmask @@ -555,11 +518,10 @@ Events are typically reported relative to a window. Events are requested relative to a window. The set of event types a client requests relative to a window is described by using an event mask. - - + Event propagation Eventpropagation @@ -567,22 +529,20 @@ by using an event mask. Device-related events propagate from the source window to ancestor windows until some client has expressed interest in handling that type of event or until the event is discarded explicitly. - - + Event source Eventsource The deepest viewable window that the pointer is in is called the source of a device-related event. - - + Event synchronization Eventsynchronization @@ -593,11 +553,10 @@ events should be sent when in the middle of window management operations). The event synchronization mechanism allows synchronous processing of device events. - - + Exposure event EventExposure @@ -606,11 +565,10 @@ Servers do not guarantee to preserve the contents of windows when windows are obscured or reconfigured. Exposure events are sent to clients to inform them when contents of regions of windows have been lost. - - + Extension Extension @@ -618,11 +576,10 @@ of windows have been lost. Named extensions to the core protocol can be defined to extend the system. Extensions to output requests, resources, and event types are all possible and expected. - - + Font Font @@ -632,42 +589,38 @@ The protocol does no translation or interpretation of character sets. The client simply indicates values used to index the glyph array. A font contains additional metric information to determine interglyph and interline spacing. - - + Font glyph Font glyph The abstract graphical symbol for an index into a font. - - + Frozen events Frozen events Clients can freeze event processing during keyboard and pointer grabs. - - + GC GC GC is an abbreviation for graphics context. -See Graphics context. - +See Graphics context. - + Glyph Glyph @@ -676,11 +629,10 @@ An identified abstract graphical symbol independent of any actual image. (ISO/IEC/DIS 9541-1) An abstract visual representation of a graphic character, not bound to a codepoint. - - + Glyph image Glyph image @@ -688,11 +640,10 @@ not bound to a codepoint. An image of a glyph, as obtained from a glyph representation displayed on a presentation surface. (ISO/IEC/DIS 9541-1) - - + Grab Grab @@ -703,79 +654,74 @@ In general, these facilities are not intended to be used by normal applications but are intended for various input and window managers to implement various styles of user interfaces. - - + Graphics context Graphics context Various information for graphics output is stored in a graphics -context (GC), such as foreground pixel, background +context (GC), such as foreground pixel, background pixel, line width, clipping region, and so on. A graphics context can only be used with drawables that have the same root and the same depth as the graphics context. - - + Gravity Gravity The contents of windows and windows themselves have a gravity, which determines how the contents move when a window is resized. -See Bit gravity and Window gravity. - +See Bit gravity and +Window gravity. - + GrayScale GrayScale -GrayScale +GrayScale can be viewed as a degenerate case of -PseudoColor, +PseudoColor, in which the red, green, and blue values in any given colormap entry are equal and thus, produce shades of gray. The gray values can be changed dynamically. - - + Host Portable Character Encoding Host Portable Character Encoding -The encoding of the X Portable Character Set on the host. +The encoding of the X Portable Character Set on the host. The encoding itself is not defined by this standard, but the encoding must be the same in all locales supported by Xlib on the host. If a string is said to be in the Host Portable Character Encoding, then it only contains characters from the X Portable Character Set, in the host encoding. - - + Hotspot Hotspot A cursor has an associated hotspot, which defines the point in the cursor corresponding to the coordinates reported for the pointer. - - + Identifier Identifier @@ -783,22 +729,20 @@ cursor corresponding to the coordinates reported for the pointer. An identifier is a unique value associated with a resource that clients use to name that resource. The identifier can be used over any connection to name the resource. - - + Inferiors Inferiors The inferiors of a window are all of the subwindows nested below it: the children, the children's children, and so on. - - + Input focus Inputfocus @@ -812,59 +756,55 @@ Otherwise, the event is reported with respect to the focus window. The input focus also can be set such that all keyboard events are discarded and such that the focus window is dynamically taken to be the root window of whatever screen the pointer is on at each keyboard event. - - + Input manager Inputmanager Control over keyboard input is typically provided by an input manager client, which usually is part of a window manager. - - + InputOnly window WindowInputOnly An -InputOnly +InputOnly window is a window that cannot be used for graphics requests. -InputOnly +InputOnly windows are invisible and are used to control such things as cursors, input event generation, and grabbing. -InputOnly +InputOnly windows cannot have -InputOutput +InputOutput windows as inferiors. - - + InputOutput window WindowInputOutput An -InputOutput +InputOutput window is the normal kind of window that is used for both input and output. -InputOutput +InputOutput windows can have both -InputOutput +InputOutput and -InputOnly +InputOnly windows as inferiors. - - + Internationalization Internationalization @@ -873,22 +813,20 @@ The process of making software adaptable to the requirements of different native languages, local customs, and character string encodings. Making a computer program adaptable to different locales without program source modifications or recompilation. - - + ISO2022 ISO2022 ISO standard for code extension techniques for 7-bit and 8-bit coded character sets. - - + Key grabbing Keygrabbing @@ -896,11 +834,10 @@ character sets. Keys on the keyboard can be passively grabbed by a client. When the key is pressed, the keyboard is then actively grabbed by the client. - - + Keyboard grabbing Keyboardgrabbing @@ -908,31 +845,28 @@ the keyboard is then actively grabbed by the client. A client can actively grab control of the keyboard, and key events will be sent to that client rather than the client the events would normally have been sent to. - - + Keysym Keysym An encoding of a symbol on a keycap on a keyboard. - - + Latin-1 Latin-1 The coded character set defined by the ISO8859-1 standard. - - + Latin Portable Character Encoding Latin Portable Character Encoding @@ -942,11 +876,10 @@ plus ASCII control characters. If a string is said to be in the Latin Portable Character Encoding, then it only contains characters from the X Portable Character Set, not all of Latin-1. - - + Locale Locale @@ -963,25 +896,23 @@ category. Associated with each locale is a text encoding. When text is processed in the context of a locale, the text must be in the encoding of the locale. The current locale affects Xlib in its: - - - + + Encoding and processing of input method text - - + + Encoding of resource files and values - - + + Encoding and imaging of text strings - - + + Encoding and decoding for inter-client text communication - - - + + - + Locale name Locale name @@ -992,11 +923,10 @@ On ANSI C library compliant systems, the locale argument to the setlocale function. - - + Localization Localization @@ -1005,45 +935,41 @@ The process of establishing information within a computer system specific to the operation of particular native languages, local customs and coded character sets. (XPG3) - - + Mapped Mapped window A window is said to be mapped if a map call has been performed on it. Unmapped windows and their inferiors are never viewable or visible. - - + Modifier keys Modifier keys Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock, ShiftLock, and similar keys are called modifier keys. - - + Monochrome Monochrome Monochrome is a special case of -StaticGray +StaticGray in which there are only two colormap entries. - - + Multibyte Multibyte @@ -1051,14 +977,13 @@ in which there are only two colormap entries. A character whose codepoint is stored in more than one byte; any encoding which can contain multibyte characters; text in a multibyte encoding. -The ``char *'' null-terminated string datatype in ANSI C. +The ``char *'' null-terminated string datatype in ANSI C. Note that references in this document to multibyte strings imply only that the strings may contain multibyte characters. - - + Obscure Obscure @@ -1066,17 +991,16 @@ imply only that the strings may contain multibyte A window is obscured if some other window obscures it. A window can be partially obscured and so still have visible regions. Window A obscures window B if both are viewable -InputOutput +InputOutput windows, if A is higher in the global stacking order, and if the rectangle defined by the outside edges of A intersects the rectangle defined by the outside edges of B. Note the distinction between obscures and occludes. Also note that window borders are included in the calculation. - - + Occlude Occlude @@ -1089,13 +1013,12 @@ by the outside edges of B. Note the distinction between occludes and obscures. Also note that window borders are included in the calculation and that -InputOnly +InputOnly windows never obscure other windows but can occlude other windows. - - + Padding Padding @@ -1103,32 +1026,29 @@ windows never obscure other windows but can occlude other windows. Some padding bytes are inserted in the data stream to maintain alignment of the protocol requests on natural boundaries. This increases ease of portability to some machine architectures. - - + Parent window Windowparent If C is a child of P, then P is the parent of C. - - + Passive grab Passive grab Grabbing a key or button is a passive grab. The grab activates when the key or button is actually pressed. - - + Pixel value Pixel value @@ -1138,11 +1058,10 @@ where N is the number of bit planes used in a particular window or pixmap (that is, is the depth of the window or pixmap). A pixel in a window indexes a colormap to derive an actual color to be displayed. - - + Pixmap Pixmap @@ -1155,22 +1074,20 @@ where each pixel can be a value from 0 to %2 sup N %\-1, and where N is the depth (z axis) of the pixmap. A pixmap can also be thought of as a stack of N bitmaps. A pixmap can only be used on the screen that it was created in. - - + Plane Plane When a pixmap or window is thought of as a stack of bitmaps, each bitmap is called a plane or bit plane. - - + Plane mask Planemask @@ -1179,22 +1096,20 @@ Graphics operations can be restricted to only affect a subset of bit planes of a destination. A plane mask is a bit mask describing which planes are to be modified. The plane mask is stored in a graphics context. - - + Pointer Pointer The pointer is the pointing device currently attached to the cursor and tracked on the screens. - - + Pointer grabbing Pointergrabbing @@ -1202,11 +1117,10 @@ and tracked on the screens. A client can actively grab control of the pointer. Then button and motion events will be sent to that client rather than the client the events would normally have been sent to. - - + Pointing device Pointing device @@ -1215,21 +1129,19 @@ A pointing device is typically a mouse, tablet, or some other device with effective dimensional motion. The core protocol defines only one visible cursor, which tracks whatever pointing device is attached as the pointer. - - + POSIX POSIX Portable Operating System Interface, ISO/IEC 9945-1 (IEEE Std 1003.1). - - + POSIX Portable Filename Character Set POSIX Portable Filename Character Set @@ -1242,11 +1154,10 @@ The set is: a..z A..Z 0..9 ._- - - + Property Property @@ -1257,36 +1168,33 @@ The protocol places no interpretation on properties. They are intended as a general-purpose naming mechanism for clients. For example, clients might use properties to share information such as resize hints, program names, and icon formats with a window manager. - - + Property list Property list The property list of a window is the list of properties that have been defined for the window. - - + PseudoColor PseudoColor -PseudoColor +PseudoColor is a class of colormap in which a pixel value indexes the colormap entry to produce an independent RGB value; that is, the colormap is viewed as an array of triples (RGB values). The RGB values can be changed dynamically. - - + Rectangle Rectangle @@ -1300,11 +1208,10 @@ if w=h=0, nothing would be drawn. For w=h=1, a single pixel would be drawn. - - + Redirecting control Redirecting control @@ -1314,11 +1221,10 @@ policy in various ways. When a client attempts to change the size or position of a window, the operation may be redirected to a specified client rather than the operation actually being performed. - - + Reply Reply @@ -1328,22 +1234,20 @@ is sent back to the client with a reply. Both events and replies are multiplexed on the same connection. Most requests do not generate replies, but some requests generate multiple replies. - - + Request Request A command to the server is called a request. It is a single block of data sent over a connection. - - + Resource Resource @@ -1353,11 +1257,10 @@ known as resources. They all have unique identifiers associated with them for naming purposes. The lifetime of a resource usually is bounded by the lifetime of the connection over which the resource was created. - - + RGB values RGB values @@ -1367,11 +1270,10 @@ to define a color. These values are always represented as 16-bit, unsigned numbers, with 0 the minimum intensity and 65535 the maximum intensity. The X server scales these values to match the display hardware. - - + Root Root @@ -1379,11 +1281,10 @@ The X server scales these values to match the display hardware. The root of a pixmap or graphics context is the same as the root of whatever drawable was used when the pixmap or GC was created. The root of a window is the root window under which the window was created. - - + Root window Windowroot @@ -1392,11 +1293,10 @@ Each screen has a root window covering it. The root window cannot be reconfigured or unmapped, but otherwise it acts as a full-fledged window. A root window has no parent. - - + Save set Save set @@ -1407,11 +1307,10 @@ close, should not be destroyed and that should be remapped if currently unmapped. Save sets are typically used by window managers to avoid lost windows if the manager should terminate abnormally. - - + Scanline Scanline @@ -1419,22 +1318,20 @@ lost windows if the manager should terminate abnormally. A scanline is a list of pixel or bit values viewed as a horizontal row (all values having the same y coordinate) of an image, with the values ordered by increasing the x coordinate. - - + Scanline order Scanlineorder An image represented in scanline order contains scanlines ordered by increasing the y coordinate. - - + Screen Screen @@ -1444,18 +1341,17 @@ which typically have physically independent monitors. This would be the expected configuration when there is only a single keyboard and pointer shared among the screens. A -Screen +Screen Screenstructure structure contains the information about that screen and is linked to the -Display +Display Displaystructure structure. - - + Selection Selection @@ -1485,11 +1381,10 @@ text of the paragraph. The target type can also be used for other purposes. The protocol does not constrain the semantics. - - + Server Server @@ -1499,11 +1394,10 @@ provides the basic windowing mechanism. It handles IPC connections from clients, multiplexes graphics requests onto the screens, and demultiplexes input back to the appropriate clients. - - + Server grabbing Servergrabbing @@ -1513,11 +1407,10 @@ This prevents processing of any requests from other client connections until the grab is completed. This is typically only a transient state for such things as rubber-banding, pop-up menus, or executing requests indivisibly. - - + Shift sequence Shift sequence @@ -1525,21 +1418,19 @@ pop-up menus, or executing requests indivisibly. ISO2022 defines control characters and escape sequences which temporarily (single shift) or permanently (locking shift) cause a different character set to be in effect (``invoking'' a character set). - - + Sibling Sibling Children of the same parent window are known as sibling windows. - - + Stacking order Stacking order @@ -1548,11 +1439,10 @@ Sibling windows, similar to sheets of paper on a desk, can stack on top of each other. Windows above both obscure and occlude lower windows. The relationship between sibling windows is known as the stacking order. - - + State-dependent encoding State-dependent encoding @@ -1564,11 +1454,10 @@ and enters other ``shift states'' when specific ``shift sequences'' are encountered in the byte sequence. In ISO2022 terms, this means use of locking shifts, not single shifts. - - + State-independent encoding State-independent encoding @@ -1577,38 +1466,35 @@ Any encoding in which the invocations of the charsets are fixed, or span only a single character. In ISO2022 terms, this means use of at most single shifts, not locking shifts. - - + StaticColor StaticColor -StaticColor +StaticColor can be viewed as a degenerate case of -PseudoColor +PseudoColor in which the RGB values are predefined and read-only. - - + StaticGray StaticGray -StaticGray +StaticGray can be viewed as a degenerate case of -GrayScale +GrayScale in which the gray values are predefined and read-only. The values are typically linear or near-linear increasing ramps. - - + Status Status @@ -1616,11 +1502,10 @@ The values are typically linear or near-linear increasing ramps. Many Xlib functions return a success status. If the function does not succeed, however, its arguments are not disturbed. - - + Stipple Stipple @@ -1631,16 +1516,15 @@ color. - - + STRING encoding -Latin-1, plus tab and newline. +Latin-1, plus tab and newline. - + String Equivalence @@ -1655,22 +1539,20 @@ values 224 to 246 inclusive (characters ``a grave'' to ``o diaeresis''), and decimal values 216 to 222 inclusive (characters ``O oblique'' to ``THORN'') are pairwise equivalent to decimal values 246 to 254 inclusive (characters ``o oblique'' to ``thorn''). - - + Tile Tile A pixmap can be replicated in two dimensions to tile a region. The pixmap itself is also known as a tile. - - + Timestamp Timestamp @@ -1683,30 +1565,28 @@ always interprets timestamps from clients by treating half of the timestamp space as being earlier in time than T and half of the timestamp space as being later in time than T. One timestamp value, represented by the constant -CurrentTime, +CurrentTime, is never generated by the server. This value is reserved for use in requests to represent the current server time. - - + TrueColor TrueColor -TrueColor +TrueColor can be viewed as a degenerate case of -DirectColor +DirectColor in which the subfields in the pixel value directly encode the corresponding RGB values. That is, the colormap has predefined read-only RGB values. The values are typically linear or near-linear increasing ramps. - - + Type Type @@ -1717,11 +1597,10 @@ Types are completely uninterpreted by the server. They are solely for the benefit of clients. X predefines type atoms for many frequently used types, and clients also can define new types. - - + Viewable Viewable @@ -1731,11 +1610,10 @@ This does not imply that any portion of the window is actually visible. Graphics requests can be performed on a window when it is not viewable, but output will not be retained unless the server is maintaining backing store. - - + Visible Visible @@ -1743,11 +1621,10 @@ backing store. A region of a window is visible if someone looking at the screen can actually see it; that is, the window is viewable and the region is not occluded by any other window. - - + Whitespace Whitespace @@ -1757,11 +1634,10 @@ On implementations that conform to the ANSI C library, whitespace is any character for which isspace returns true. - - + Window gravity Windowgravity @@ -1771,22 +1647,20 @@ subwindows may be repositioned automatically relative to some position in the window. This attraction of a subwindow to some part of its parent is known as window gravity. - - + Window manager Windowmanager Manipulation of windows on the screen and much of the user interface (policy) is typically provided by a window manager client. - - + X Portable Character Set X Portable Character Set @@ -1813,23 +1687,21 @@ of the graphic character set of ISO8859-1 plus <space>, <tab>, and & It is also the set of graphic characters in 7-bit ASCII plus the same three control characters. The actual encoding of these characters on the host is system dependent; -see the Host Portable Character Encoding. - +see the Host Portable Character Encoding. - + XLFD XLFD The X Logical Font Description Conventions that define a standard syntax for structured font names. - - + XY format XY format @@ -1837,18 +1709,16 @@ for structured font names. The data for a pixmap is said to be in XY format if it is organized as a set of bitmaps representing individual bit planes with the planes appearing from most-significant to least-significant bit order. - - + Z format Z format The data for a pixmap is said to be in Z format if it is organized as a set of pixel values in scanline order. - diff --git a/libX11/specs/xmlrules.in b/libX11/specs/xmlrules.in index 20263afba..29e371a81 100644 --- a/libX11/specs/xmlrules.in +++ b/libX11/specs/xmlrules.in @@ -56,4 +56,9 @@ SUFFIXES = .xml .ps .pdf .txt .html %.ps: %.xml $(dist_spec_DATA) $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $< +chunked-html: $(doc_sources) + $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) -o html xhtml $(doc_sources) + +CLEANFILES += html + endif HAVE_XMLTO diff --git a/libxcb/configure.ac b/libxcb/configure.ac index 680199b4f..ef71ad886 100644 --- a/libxcb/configure.ac +++ b/libxcb/configure.ac @@ -155,7 +155,7 @@ XCB_EXTENSION(XvMC, "yes") AC_ARG_WITH(launchd, AS_HELP_STRING([--with-launchd], [Build with support for Apple's launchd (default: auto)]), [LAUNCHD=$withval], [LAUNCHD=auto]) if test "x$LAUNCHD" = xauto; then unset LAUNCHD - AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no]) + AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [$PATH$PATH_SEPARATOR/sbin]) fi if test "x$LAUNCHD" = xyes ; then diff --git a/xorg-server/xkbdata.src/rules/base.xml.in b/xorg-server/xkbdata.src/rules/base.xml.in index d23dbdc1b..84fd69339 100644 --- a/xorg-server/xkbdata.src/rules/base.xml.in +++ b/xorg-server/xkbdata.src/rules/base.xml.in @@ -4517,7 +4517,7 @@ @@ -4753,7 +4753,7 @@ @@ -4971,89 +4971,89 @@ - caps - <_description>CapsLock key behavior + <_description>Caps Lock key behavior @@ -5163,7 +5163,7 @@ @@ -5217,7 +5217,7 @@