#ifndef _X11_XLIB_H_
#define _X11_XLIB_H_
#define XlibSpecificationRelease …
#include <sys/types.h>
#if defined(__SCO__) || defined(__UNIXWARE__)
#include <stdint.h>
#endif
#include <X11/X.h>
#include <X11/Xfuncproto.h>
#include <X11/Xosdefs.h>
#ifndef X_WCHAR
#include <stddef.h>
#else
#ifdef __UNIXOS2__
#include <stdlib.h>
#else
typedef unsigned long wchar_t;
#endif
#endif
extern int
_Xmblen(
char *str,
int len
);
#define X_HAVE_UTF8_STRING …
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
#endif
XPointer;
#define Bool …
#define Status …
#define True …
#define False …
#define QueuedAlready …
#define QueuedAfterReading …
#define QueuedAfterFlush …
#define ConnectionNumber(dpy) …
#define RootWindow(dpy, scr) …
#define DefaultScreen(dpy) …
#define DefaultRootWindow(dpy) …
#define DefaultVisual(dpy, scr) …
#define DefaultGC(dpy, scr) …
#define BlackPixel(dpy, scr) …
#define WhitePixel(dpy, scr) …
#define AllPlanes …
#define QLength(dpy) …
#define DisplayWidth(dpy, scr) …
#define DisplayHeight(dpy, scr) …
#define DisplayWidthMM(dpy, scr) …
#define DisplayHeightMM(dpy, scr) …
#define DisplayPlanes(dpy, scr) …
#define DisplayCells(dpy, scr) …
#define ScreenCount(dpy) …
#define ServerVendor(dpy) …
#define ProtocolVersion(dpy) …
#define ProtocolRevision(dpy) …
#define VendorRelease(dpy) …
#define DisplayString(dpy) …
#define DefaultDepth(dpy, scr) …
#define DefaultColormap(dpy, scr) …
#define BitmapUnit(dpy) …
#define BitmapBitOrder(dpy) …
#define BitmapPad(dpy) …
#define ImageByteOrder(dpy) …
#define NextRequest(dpy) …
#define LastKnownRequestProcessed(dpy) …
#define ScreenOfDisplay(dpy, scr) …
#define DefaultScreenOfDisplay(dpy) …
#define DisplayOfScreen(s) …
#define RootWindowOfScreen(s) …
#define BlackPixelOfScreen(s) …
#define WhitePixelOfScreen(s) …
#define DefaultColormapOfScreen(s) …
#define DefaultDepthOfScreen(s) …
#define DefaultGCOfScreen(s) …
#define DefaultVisualOfScreen(s) …
#define WidthOfScreen(s) …
#define HeightOfScreen(s) …
#define WidthMMOfScreen(s) …
#define HeightMMOfScreen(s) …
#define PlanesOfScreen(s) …
#define CellsOfScreen(s) …
#define MinCmapsOfScreen(s) …
#define MaxCmapsOfScreen(s) …
#define DoesSaveUnders(s) …
#define DoesBackingStore(s) …
#define EventMaskOfScreen(s) …
XExtData;
XExtCodes;
XPixmapFormatValues;
XGCValues;
GC;
Visual;
Depth;
struct _XDisplay;
Screen;
ScreenFormat;
XSetWindowAttributes;
XWindowAttributes;
XHostAddress;
XServerInterpretedAddress;
XImage;
XWindowChanges;
XColor;
XSegment;
XPoint;
XRectangle;
XArc;
XKeyboardControl;
XKeyboardState;
XTimeCoord;
XModifierKeymap;
#ifndef XLIB_ILLEGAL_ACCESS
Display;
#endif
struct _XPrivate;
struct _XrmHashBucketRec;
_XPrivDisplay;
#undef _XEVENT_
#ifndef _XEVENT_
XKeyEvent;
XKeyPressedEvent;
XKeyReleasedEvent;
XButtonEvent;
XButtonPressedEvent;
XButtonReleasedEvent;
XMotionEvent;
XPointerMovedEvent;
XCrossingEvent;
XEnterWindowEvent;
XLeaveWindowEvent;
XFocusChangeEvent;
XFocusInEvent;
XFocusOutEvent;
XKeymapEvent;
XExposeEvent;
XGraphicsExposeEvent;
XNoExposeEvent;
XVisibilityEvent;
XCreateWindowEvent;
XDestroyWindowEvent;
XUnmapEvent;
XMapEvent;
XMapRequestEvent;
XReparentEvent;
XConfigureEvent;
XGravityEvent;
XResizeRequestEvent;
XConfigureRequestEvent;
XCirculateEvent;
XCirculateRequestEvent;
XPropertyEvent;
XSelectionClearEvent;
XSelectionRequestEvent;
XSelectionEvent;
XColormapEvent;
XClientMessageEvent;
XMappingEvent;
XErrorEvent;
XAnyEvent;
XGenericEvent;
XGenericEventCookie;
XEvent;
#endif
#define XAllocID(dpy) …
XCharStruct;
XFontProp;
XFontStruct;
XTextItem;
XChar2b;
XTextItem16;
XEDataObject;
XFontSetExtents;
XOM;
XFontSet;
XmbTextItem;
XwcTextItem;
#define XNRequiredCharSet …
#define XNQueryOrientation …
#define XNBaseFontName …
#define XNOMAutomatic …
#define XNMissingCharSet …
#define XNDefaultString …
#define XNOrientation …
#define XNDirectionalDependentDrawing …
#define XNContextualDrawing …
#define XNFontInfo …
XOMCharSetList;
XOrientation;
XOMOrientation;
XOMFontInfo;
XIM;
XIC;
XIMProc;
XICProc;
XIDProc;
XIMStyle;
XIMStyles;
#define XIMPreeditArea …
#define XIMPreeditCallbacks …
#define XIMPreeditPosition …
#define XIMPreeditNothing …
#define XIMPreeditNone …
#define XIMStatusArea …
#define XIMStatusCallbacks …
#define XIMStatusNothing …
#define XIMStatusNone …
#define XNVaNestedList …
#define XNQueryInputStyle …
#define XNClientWindow …
#define XNInputStyle …
#define XNFocusWindow …
#define XNResourceName …
#define XNResourceClass …
#define XNGeometryCallback …
#define XNDestroyCallback …
#define XNFilterEvents …
#define XNPreeditStartCallback …
#define XNPreeditDoneCallback …
#define XNPreeditDrawCallback …
#define XNPreeditCaretCallback …
#define XNPreeditStateNotifyCallback …
#define XNPreeditAttributes …
#define XNStatusStartCallback …
#define XNStatusDoneCallback …
#define XNStatusDrawCallback …
#define XNStatusAttributes …
#define XNArea …
#define XNAreaNeeded …
#define XNSpotLocation …
#define XNColormap …
#define XNStdColormap …
#define XNForeground …
#define XNBackground …
#define XNBackgroundPixmap …
#define XNFontSet …
#define XNLineSpace …
#define XNCursor …
#define XNQueryIMValuesList …
#define XNQueryICValuesList …
#define XNVisiblePosition …
#define XNR6PreeditCallback …
#define XNStringConversionCallback …
#define XNStringConversion …
#define XNResetState …
#define XNHotKey …
#define XNHotKeyState …
#define XNPreeditState …
#define XNSeparatorofNestedList …
#define XBufferOverflow …
#define XLookupNone …
#define XLookupChars …
#define XLookupKeySym …
#define XLookupBoth …
XVaNestedList;
XIMCallback;
XICCallback;
XIMFeedback;
#define XIMReverse …
#define XIMUnderline …
#define XIMHighlight …
#define XIMPrimary …
#define XIMSecondary …
#define XIMTertiary …
#define XIMVisibleToForward …
#define XIMVisibleToBackword …
#define XIMVisibleToCenter …
XIMText;
XIMPreeditState;
#define XIMPreeditUnKnown …
#define XIMPreeditEnable …
#define XIMPreeditDisable …
XIMPreeditStateNotifyCallbackStruct;
XIMResetState;
#define XIMInitialState …
#define XIMPreserveState …
XIMStringConversionFeedback;
#define XIMStringConversionLeftEdge …
#define XIMStringConversionRightEdge …
#define XIMStringConversionTopEdge …
#define XIMStringConversionBottomEdge …
#define XIMStringConversionConcealed …
#define XIMStringConversionWrapped …
XIMStringConversionText;
XIMStringConversionPosition;
XIMStringConversionType;
#define XIMStringConversionBuffer …
#define XIMStringConversionLine …
#define XIMStringConversionWord …
#define XIMStringConversionChar …
XIMStringConversionOperation;
#define XIMStringConversionSubstitution …
#define XIMStringConversionRetrieval …
XIMCaretDirection;
XIMStringConversionCallbackStruct;
XIMPreeditDrawCallbackStruct;
XIMCaretStyle;
XIMPreeditCaretCallbackStruct;
XIMStatusDataType;
XIMStatusDrawCallbackStruct;
XIMHotKeyTrigger;
XIMHotKeyTriggers;
XIMHotKeyState;
#define XIMHotKeyStateON …
#define XIMHotKeyStateOFF …
XIMValuesList;
_XFUNCPROTOBEGIN
#if defined(WIN32) && !defined(_XLIBINT_)
#define _Xdebug …
#endif
extern int _Xdebug;
extern XFontStruct *XLoadQueryFont(
Display* ,
_Xconst char*
);
extern XFontStruct *XQueryFont(
Display* ,
XID
);
extern XTimeCoord *XGetMotionEvents(
Display* ,
Window ,
Time ,
Time ,
int*
);
extern XModifierKeymap *XDeleteModifiermapEntry(
XModifierKeymap* ,
#if NeedWidePrototypes
unsigned int ,
#else
KeyCode ,
#endif
int
);
extern XModifierKeymap *XGetModifierMapping(
Display*
);
extern XModifierKeymap *XInsertModifiermapEntry(
XModifierKeymap* ,
#if NeedWidePrototypes
unsigned int ,
#else
KeyCode ,
#endif
int
);
extern XModifierKeymap *XNewModifiermap(
int
);
extern XImage *XCreateImage(
Display* ,
Visual* ,
unsigned int ,
int ,
int ,
char* ,
unsigned int ,
unsigned int ,
int ,
int
);
extern Status XInitImage(
XImage*
);
extern XImage *XGetImage(
Display* ,
Drawable ,
int ,
int ,
unsigned int ,
unsigned int ,
unsigned long ,
int
);
extern XImage *XGetSubImage(
Display* ,
Drawable ,
int ,
int ,
unsigned int ,
unsigned int ,
unsigned long ,
int ,
XImage* ,
int ,
int
);
extern Display *XOpenDisplay(
_Xconst char*
);
extern void XrmInitialize(
void
);
extern char *XFetchBytes(
Display* ,
int*
);
extern char *XFetchBuffer(
Display* ,
int* ,
int
);
extern char *XGetAtomName(
Display* ,
Atom
);
extern Status XGetAtomNames(
Display* ,
Atom* ,
int ,
char**
);
extern char *XGetDefault(
Display* ,
_Xconst char* ,
_Xconst char*
);
extern char *XDisplayName(
_Xconst char*
);
extern char *XKeysymToString(
KeySym
);
extern int (*XSynchronize(
Display* ,
Bool
))(
Display*
);
extern int (*XSetAfterFunction(
Display* ,
int (*) (
Display*
)
))(
Display*
);
extern Atom XInternAtom(
Display* ,
_Xconst char* ,
Bool
);
extern Status XInternAtoms(
Display* ,
char** ,
int ,
Bool ,
Atom*
);
extern Colormap XCopyColormapAndFree(
Display* ,
Colormap
);
extern Colormap XCreateColormap(
Display* ,
Window ,
Visual* ,
int
);
extern Cursor XCreatePixmapCursor(
Display* ,
Pixmap ,
Pixmap ,
XColor* ,
XColor* ,
unsigned int ,
unsigned int
);
extern Cursor XCreateGlyphCursor(
Display* ,
Font ,
Font ,
unsigned int ,
unsigned int ,
XColor _Xconst * ,
XColor _Xconst *
);
extern Cursor XCreateFontCursor(
Display* ,
unsigned int
);
extern Font XLoadFont(
Display* ,
_Xconst char*
);
extern GC XCreateGC(
Display* ,
Drawable ,
unsigned long ,
XGCValues*
);
extern GContext XGContextFromGC(
GC
);
extern void XFlushGC(
Display* ,
GC
);
extern Pixmap XCreatePixmap(
Display* ,
Drawable ,
unsigned int ,
unsigned int ,
unsigned int
);
extern Pixmap XCreateBitmapFromData(
Display* ,
Drawable ,
_Xconst char* ,
unsigned int ,
unsigned int
);
extern Pixmap XCreatePixmapFromBitmapData(
Display* ,
Drawable ,
char* ,
unsigned int ,
unsigned int ,
unsigned long ,
unsigned long ,
unsigned int
);
extern Window XCreateSimpleWindow(
Display* ,
Window ,
int ,
int ,
unsigned int ,
unsigned int ,
unsigned int ,
unsigned long ,
unsigned long
);
extern Window XGetSelectionOwner(
Display* ,
Atom
);
extern Window XCreateWindow(
Display* ,
Window ,
int ,
int ,
unsigned int ,
unsigned int ,
unsigned int ,
int ,
unsigned int ,
Visual* ,
unsigned long ,
XSetWindowAttributes*
);
extern Colormap *XListInstalledColormaps(
Display* ,
Window ,
int*
);
extern char **XListFonts(
Display* ,
_Xconst char* ,
int ,
int*
);
extern char **XListFontsWithInfo(
Display* ,
_Xconst char* ,
int ,
int* ,
XFontStruct**
);
extern char **XGetFontPath(
Display* ,
int*
);
extern char **XListExtensions(
Display* ,
int*
);
extern Atom *XListProperties(
Display* ,
Window ,
int*
);
extern XHostAddress *XListHosts(
Display* ,
int* ,
Bool*
);
_X_DEPRECATED
extern KeySym XKeycodeToKeysym(
Display* ,
#if NeedWidePrototypes
unsigned int ,
#else
KeyCode ,
#endif
int
);
extern KeySym XLookupKeysym(
XKeyEvent* ,
int
);
extern KeySym *XGetKeyboardMapping(
Display* ,
#if NeedWidePrototypes
unsigned int ,
#else
KeyCode ,
#endif
int ,
int*
);
extern KeySym XStringToKeysym(
_Xconst char*
);
extern long XMaxRequestSize(
Display*
);
extern long XExtendedMaxRequestSize(
Display*
);
extern char *XResourceManagerString(
Display*
);
extern char *XScreenResourceString(
Screen*
);
extern unsigned long XDisplayMotionBufferSize(
Display*
);
extern VisualID XVisualIDFromVisual(
Visual*
);
extern Status XInitThreads(
void
);
extern void XLockDisplay(
Display*
);
extern void XUnlockDisplay(
Display*
);
extern XExtCodes *XInitExtension(
Display* ,
_Xconst char*
);
extern XExtCodes *XAddExtension(
Display*
);
extern XExtData *XFindOnExtensionList(
XExtData** ,
int
);
extern XExtData **XEHeadOfExtensionList(
XEDataObject
);
extern Window XRootWindow(
Display* ,
int
);
extern Window XDefaultRootWindow(
Display*
);
extern Window XRootWindowOfScreen(
Screen*
);
extern Visual *XDefaultVisual(
Display* ,
int
);
extern Visual *XDefaultVisualOfScreen(
Screen*
);
extern GC XDefaultGC(
Display* ,
int
);
extern GC XDefaultGCOfScreen(
Screen*
);
extern unsigned long XBlackPixel(
Display* ,
int
);
extern unsigned long XWhitePixel(
Display* ,
int
);
extern unsigned long XAllPlanes(
void
);
extern unsigned long XBlackPixelOfScreen(
Screen*
);
extern unsigned long XWhitePixelOfScreen(
Screen*
);
extern unsigned long XNextRequest(
Display*
);
extern unsigned long XLastKnownRequestProcessed(
Display*
);
extern char *XServerVendor(
Display*
);
extern char *XDisplayString(
Display*
);
extern Colormap XDefaultColormap(
Display* ,
int
);
extern Colormap XDefaultColormapOfScreen(
Screen*
);
extern Display *XDisplayOfScreen(
Screen*
);
extern Screen *XScreenOfDisplay(
Display* ,
int
);
extern Screen *XDefaultScreenOfDisplay(
Display*
);
extern long XEventMaskOfScreen(
Screen*
);
extern int XScreenNumberOfScreen(
Screen*
);
XErrorHandler;
extern XErrorHandler XSetErrorHandler (
XErrorHandler
);
XIOErrorHandler;
extern XIOErrorHandler XSetIOErrorHandler (
XIOErrorHandler
);
XIOErrorExitHandler;
extern void XSetIOErrorExitHandler (
Display*,
XIOErrorExitHandler,
void*
);
extern XPixmapFormatValues *XListPixmapFormats(
Display* ,
int*
);
extern int *XListDepths(
Display* ,
int ,
int*
);
extern Status XReconfigureWMWindow(
Display* ,
Window ,
int ,
unsigned int ,
XWindowChanges*
);
extern Status XGetWMProtocols(
Display* ,
Window ,
Atom** ,
int*
);
extern Status XSetWMProtocols(
Display* ,
Window ,
Atom* ,
int
);
extern Status XIconifyWindow(
Display* ,
Window ,
int
);
extern Status XWithdrawWindow(
Display* ,
Window ,
int
);
extern Status XGetCommand(
Display* ,
Window ,
char*** ,
int*
);
extern Status XGetWMColormapWindows(
Display* ,
Window ,
Window** ,
int*
);
extern Status XSetWMColormapWindows(
Display* ,
Window ,
Window* ,
int
);
extern void XFreeStringList(
char**
);
extern int XSetTransientForHint(
Display* ,
Window ,
Window
);
extern int XActivateScreenSaver(
Display*
);
extern int XAddHost(
Display* ,
XHostAddress*
);
extern int XAddHosts(
Display* ,
XHostAddress* ,
int
);
extern int XAddToExtensionList(
struct _XExtData** ,
XExtData*
);
extern int XAddToSaveSet(
Display* ,
Window
);
extern Status XAllocColor(
Display* ,
Colormap ,
XColor*
);
extern Status XAllocColorCells(
Display* ,
Colormap ,
Bool ,
unsigned long* ,
unsigned int ,
unsigned long* ,
unsigned int
);
extern Status XAllocColorPlanes(
Display* ,
Colormap ,
Bool ,
unsigned long* ,
int ,
int ,
int ,
int ,
unsigned long* ,
unsigned long* ,
unsigned long*
);
extern Status XAllocNamedColor(
Display* ,
Colormap ,
_Xconst char* ,
XColor* ,
XColor*
);
extern int XAllowEvents(
Display* ,
int ,
Time
);
extern int XAutoRepeatOff(
Display*
);
extern int XAutoRepeatOn(
Display*
);
extern int XBell(
Display* ,
int
);
extern int XBitmapBitOrder(
Display*
);
extern int XBitmapPad(
Display*
);
extern int XBitmapUnit(
Display*
);
extern int XCellsOfScreen(
Screen*
);
extern int XChangeActivePointerGrab(
Display* ,
unsigned int ,
Cursor ,
Time
);
extern int XChangeGC(
Display* ,
GC ,
unsigned long ,
XGCValues*
);
extern int XChangeKeyboardControl(
Display* ,
unsigned long ,
XKeyboardControl*
);
extern int XChangeKeyboardMapping(
Display* ,
int ,
int ,
KeySym* ,
int
);
extern int XChangePointerControl(
Display* ,
Bool ,
Bool ,
int ,
int ,
int
);
extern int XChangeProperty(
Display* ,
Window ,
Atom ,
Atom ,
int ,
int ,
_Xconst unsigned char* ,
int
);
extern int XChangeSaveSet(
Display* ,
Window ,
int
);
extern int XChangeWindowAttributes(
Display* ,
Window ,
unsigned long ,
XSetWindowAttributes*
);
extern Bool XCheckIfEvent(
Display* ,
XEvent* ,
Bool (*) (
Display* ,
XEvent* ,
XPointer
) ,
XPointer
);
extern Bool XCheckMaskEvent(
Display* ,
long ,
XEvent*
);
extern Bool XCheckTypedEvent(
Display* ,
int ,
XEvent*
);
extern Bool XCheckTypedWindowEvent(
Display* ,
Window ,
int ,
XEvent*
);
extern Bool XCheckWindowEvent(
Display* ,
Window ,
long ,
XEvent*
);
extern int XCirculateSubwindows(
Display* ,
Window ,
int
);
extern int XCirculateSubwindowsDown(
Display* ,
Window
);
extern int XCirculateSubwindowsUp(
Display* ,
Window
);
extern int XClearArea(
Display* ,
Window ,
int ,
int ,
unsigned int ,
unsigned int ,
Bool
);
extern int XClearWindow(
Display* ,
Window
);
extern int XCloseDisplay(
Display*
);
extern int XConfigureWindow(
Display* ,
Window ,
unsigned int ,
XWindowChanges*
);
extern int XConnectionNumber(
Display*
);
extern int XConvertSelection(
Display* ,
Atom ,
Atom ,
Atom ,
Window ,
Time
);
extern int XCopyArea(
Display* ,
Drawable ,
Drawable ,
GC ,
int ,
int ,
unsigned int ,
unsigned int ,
int ,
int
);
extern int XCopyGC(
Display* ,
GC ,
unsigned long ,
GC
);
extern int XCopyPlane(
Display* ,
Drawable ,
Drawable ,
GC ,
int ,
int ,
unsigned int ,
unsigned int ,
int ,
int ,
unsigned long
);
extern int XDefaultDepth(
Display* ,
int
);
extern int XDefaultDepthOfScreen(
Screen*
);
extern int XDefaultScreen(
Display*
);
extern int XDefineCursor(
Display* ,
Window ,
Cursor
);
extern int XDeleteProperty(
Display* ,
Window ,
Atom
);
extern int XDestroyWindow(
Display* ,
Window
);
extern int XDestroySubwindows(
Display* ,
Window
);
extern int XDoesBackingStore(
Screen*
);
extern Bool XDoesSaveUnders(
Screen*
);
extern int XDisableAccessControl(
Display*
);
extern int XDisplayCells(
Display* ,
int
);
extern int XDisplayHeight(
Display* ,
int
);
extern int XDisplayHeightMM(
Display* ,
int
);
extern int XDisplayKeycodes(
Display* ,
int* ,
int*
);
extern int XDisplayPlanes(
Display* ,
int
);
extern int XDisplayWidth(
Display* ,
int
);
extern int XDisplayWidthMM(
Display* ,
int
);
extern int XDrawArc(
Display* ,
Drawable ,
GC ,
int ,
int ,
unsigned int ,
unsigned int ,
int ,
int
);
extern int XDrawArcs(
Display* ,
Drawable ,
GC ,
XArc* ,
int
);
extern int XDrawImageString(
Display* ,
Drawable ,
GC ,
int ,
int ,
_Xconst char* ,
int
);
extern int XDrawImageString16(
Display* ,
Drawable ,
GC ,
int ,
int ,
_Xconst XChar2b* ,
int
);
extern int XDrawLine(
Display* ,
Drawable ,
GC ,
int ,
int ,
int ,
int
);
extern int XDrawLines(
Display* ,
Drawable ,
GC ,
XPoint* ,
int ,
int
);
extern int XDrawPoint(
Display* ,
Drawable ,
GC ,
int ,
int
);
extern int XDrawPoints(
Display* ,
Drawable ,
GC ,
XPoint* ,
int ,
int
);
extern int XDrawRectangle(
Display* ,
Drawable ,
GC ,
int ,
int ,
unsigned int ,
unsigned int
);
extern int XDrawRectangles(
Display* ,
Drawable ,
GC ,
XRectangle* ,
int
);
extern int XDrawSegments(
Display* ,
Drawable ,
GC ,
XSegment* ,
int
);
extern int XDrawString(
Display* ,
Drawable ,
GC ,
int ,
int ,
_Xconst char* ,
int
);
extern int XDrawString16(
Display* ,
Drawable ,
GC ,
int ,
int ,
_Xconst XChar2b* ,
int
);
extern int XDrawText(
Display* ,
Drawable ,
GC ,
int ,
int ,
XTextItem* ,
int
);
extern int XDrawText16(
Display* ,
Drawable ,
GC ,
int ,
int ,
XTextItem16* ,
int
);
extern int XEnableAccessControl(
Display*
);
extern int XEventsQueued(
Display* ,
int
);
extern Status XFetchName(
Display* ,
Window ,
char**
);
extern int XFillArc(
Display* ,
Drawable ,
GC ,
int ,
int ,
unsigned int ,
unsigned int ,
int ,
int
);
extern int XFillArcs(
Display* ,
Drawable ,
GC ,
XArc* ,
int
);
extern int XFillPolygon(
Display* ,
Drawable ,
GC ,
XPoint* ,
int ,
int ,
int
);
extern int XFillRectangle(
Display* ,
Drawable ,
GC ,
int ,
int ,
unsigned int ,
unsigned int
);
extern int XFillRectangles(
Display* ,
Drawable ,
GC ,
XRectangle* ,
int
);
extern int XFlush(
Display*
);
extern int XForceScreenSaver(
Display* ,
int
);
extern int XFree(
void*
);
extern int XFreeColormap(
Display* ,
Colormap
);
extern int XFreeColors(
Display* ,
Colormap ,
unsigned long* ,
int ,
unsigned long
);
extern int XFreeCursor(
Display* ,
Cursor
);
extern int XFreeExtensionList(
char**
);
extern int XFreeFont(
Display* ,
XFontStruct*
);
extern int XFreeFontInfo(
char** ,
XFontStruct* ,
int
);
extern int XFreeFontNames(
char**
);
extern int XFreeFontPath(
char**
);
extern int XFreeGC(
Display* ,
GC
);
extern int XFreeModifiermap(
XModifierKeymap*
);
extern int XFreePixmap(
Display* ,
Pixmap
);
extern int XGeometry(
Display* ,
int ,
_Xconst char* ,
_Xconst char* ,
unsigned int ,
unsigned int ,
unsigned int ,
int ,
int ,
int* ,
int* ,
int* ,
int*
);
extern int XGetErrorDatabaseText(
Display* ,
_Xconst char* ,
_Xconst char* ,
_Xconst char* ,
char* ,
int
);
extern int XGetErrorText(
Display* ,
int ,
char* ,
int
);
extern Bool XGetFontProperty(
XFontStruct* ,
Atom ,
unsigned long*
);
extern Status XGetGCValues(
Display* ,
GC ,
unsigned long ,
XGCValues*
);
extern Status XGetGeometry(
Display* ,
Drawable ,
Window* ,
int* ,
int* ,
unsigned int* ,
unsigned int* ,
unsigned int* ,
unsigned int*
);
extern Status XGetIconName(
Display* ,
Window ,
char**
);
extern int XGetInputFocus(
Display* ,
Window* ,
int*
);
extern int XGetKeyboardControl(
Display* ,
XKeyboardState*
);
extern int XGetPointerControl(
Display* ,
int* ,
int* ,
int*
);
extern int XGetPointerMapping(
Display* ,
unsigned char* ,
int
);
extern int XGetScreenSaver(
Display* ,
int* ,
int* ,
int* ,
int*
);
extern Status XGetTransientForHint(
Display* ,
Window ,
Window*
);
extern int XGetWindowProperty(
Display* ,
Window ,
Atom ,
long ,
long ,
Bool ,
Atom ,
Atom* ,
int* ,
unsigned long* ,
unsigned long* ,
unsigned char**
);
extern Status XGetWindowAttributes(
Display* ,
Window ,
XWindowAttributes*
);
extern int XGrabButton(
Display* ,
unsigned int ,
unsigned int ,
Window ,
Bool ,
unsigned int ,
int ,
int ,
Window ,
Cursor
);
extern int XGrabKey(
Display* ,
int ,
unsigned int ,
Window ,
Bool ,
int ,
int
);
extern int XGrabKeyboard(
Display* ,
Window ,
Bool ,
int ,
int ,
Time
);
extern int XGrabPointer(
Display* ,
Window ,
Bool ,
unsigned int ,
int ,
int ,
Window ,
Cursor ,
Time
);
extern int XGrabServer(
Display*
);
extern int XHeightMMOfScreen(
Screen*
);
extern int XHeightOfScreen(
Screen*
);
extern int XIfEvent(
Display* ,
XEvent* ,
Bool (*) (
Display* ,
XEvent* ,
XPointer
) ,
XPointer
);
extern int XImageByteOrder(
Display*
);
extern int XInstallColormap(
Display* ,
Colormap
);
extern KeyCode XKeysymToKeycode(
Display* ,
KeySym
);
extern int XKillClient(
Display* ,
XID
);
extern Status XLookupColor(
Display* ,
Colormap ,
_Xconst char* ,
XColor* ,
XColor*
);
extern int XLowerWindow(
Display* ,
Window
);
extern int XMapRaised(
Display* ,
Window
);
extern int XMapSubwindows(
Display* ,
Window
);
extern int XMapWindow(
Display* ,
Window
);
extern int XMaskEvent(
Display* ,
long ,
XEvent*
);
extern int XMaxCmapsOfScreen(
Screen*
);
extern int XMinCmapsOfScreen(
Screen*
);
extern int XMoveResizeWindow(
Display* ,
Window ,
int ,
int ,
unsigned int ,
unsigned int
);
extern int XMoveWindow(
Display* ,
Window ,
int ,
int
);
extern int XNextEvent(
Display* ,
XEvent*
);
extern int XNoOp(
Display*
);
extern Status XParseColor(
Display* ,
Colormap ,
_Xconst char* ,
XColor*
);
extern int XParseGeometry(
_Xconst char* ,
int* ,
int* ,
unsigned int* ,
unsigned int*
);
extern int XPeekEvent(
Display* ,
XEvent*
);
extern int XPeekIfEvent(
Display* ,
XEvent* ,
Bool (*) (
Display* ,
XEvent* ,
XPointer
) ,
XPointer
);
extern int XPending(
Display*
);
extern int XPlanesOfScreen(
Screen*
);
extern int XProtocolRevision(
Display*
);
extern int XProtocolVersion(
Display*
);
extern int XPutBackEvent(
Display* ,
XEvent*
);
extern int XPutImage(
Display* ,
Drawable ,
GC ,
XImage* ,
int ,
int ,
int ,
int ,
unsigned int ,
unsigned int
);
extern int XQLength(
Display*
);
extern Status XQueryBestCursor(
Display* ,
Drawable ,
unsigned int ,
unsigned int ,
unsigned int* ,
unsigned int*
);
extern Status XQueryBestSize(
Display* ,
int ,
Drawable ,
unsigned int ,
unsigned int ,
unsigned int* ,
unsigned int*
);
extern Status XQueryBestStipple(
Display* ,
Drawable ,
unsigned int ,
unsigned int ,
unsigned int* ,
unsigned int*
);
extern Status XQueryBestTile(
Display* ,
Drawable ,
unsigned int ,
unsigned int ,
unsigned int* ,
unsigned int*
);
extern int XQueryColor(
Display* ,
Colormap ,
XColor*
);
extern int XQueryColors(
Display* ,
Colormap ,
XColor* ,
int
);
extern Bool XQueryExtension(
Display* ,
_Xconst char* ,
int* ,
int* ,
int*
);
extern int XQueryKeymap(
Display* ,
char [32]
);
extern Bool XQueryPointer(
Display* ,
Window ,
Window* ,
Window* ,
int* ,
int* ,
int* ,
int* ,
unsigned int*
);
extern int XQueryTextExtents(
Display* ,
XID ,
_Xconst char* ,
int ,
int* ,
int* ,
int* ,
XCharStruct*
);
extern int XQueryTextExtents16(
Display* ,
XID ,
_Xconst XChar2b* ,
int ,
int* ,
int* ,
int* ,
XCharStruct*
);
extern Status XQueryTree(
Display* ,
Window ,
Window* ,
Window* ,
Window** ,
unsigned int*
);
extern int XRaiseWindow(
Display* ,
Window
);
extern int XReadBitmapFile(
Display* ,
Drawable ,
_Xconst char* ,
unsigned int* ,
unsigned int* ,
Pixmap* ,
int* ,
int*
);
extern int XReadBitmapFileData(
_Xconst char* ,
unsigned int* ,
unsigned int* ,
unsigned char** ,
int* ,
int*
);
extern int XRebindKeysym(
Display* ,
KeySym ,
KeySym* ,
int ,
_Xconst unsigned char* ,
int
);
extern int XRecolorCursor(
Display* ,
Cursor ,
XColor* ,
XColor*
);
extern int XRefreshKeyboardMapping(
XMappingEvent*
);
extern int XRemoveFromSaveSet(
Display* ,
Window
);
extern int XRemoveHost(
Display* ,
XHostAddress*
);
extern int XRemoveHosts(
Display* ,
XHostAddress* ,
int
);
extern int XReparentWindow(
Display* ,
Window ,
Window ,
int ,
int
);
extern int XResetScreenSaver(
Display*
);
extern int XResizeWindow(
Display* ,
Window ,
unsigned int ,
unsigned int
);
extern int XRestackWindows(
Display* ,
Window* ,
int
);
extern int XRotateBuffers(
Display* ,
int
);
extern int XRotateWindowProperties(
Display* ,
Window ,
Atom* ,
int ,
int
);
extern int XScreenCount(
Display*
);
extern int XSelectInput(
Display* ,
Window ,
long
);
extern Status XSendEvent(
Display* ,
Window ,
Bool ,
long ,
XEvent*
);
extern int XSetAccessControl(
Display* ,
int
);
extern int XSetArcMode(
Display* ,
GC ,
int
);
extern int XSetBackground(
Display* ,
GC ,
unsigned long
);
extern int XSetClipMask(
Display* ,
GC ,
Pixmap
);
extern int XSetClipOrigin(
Display* ,
GC ,
int ,
int
);
extern int XSetClipRectangles(
Display* ,
GC ,
int ,
int ,
XRectangle* ,
int ,
int
);
extern int XSetCloseDownMode(
Display* ,
int
);
extern int XSetCommand(
Display* ,
Window ,
char** ,
int
);
extern int XSetDashes(
Display* ,
GC ,
int ,
_Xconst char* ,
int
);
extern int XSetFillRule(
Display* ,
GC ,
int
);
extern int XSetFillStyle(
Display* ,
GC ,
int
);
extern int XSetFont(
Display* ,
GC ,
Font
);
extern int XSetFontPath(
Display* ,
char** ,
int
);
extern int XSetForeground(
Display* ,
GC ,
unsigned long
);
extern int XSetFunction(
Display* ,
GC ,
int
);
extern int XSetGraphicsExposures(
Display* ,
GC ,
Bool
);
extern int XSetIconName(
Display* ,
Window ,
_Xconst char*
);
extern int XSetInputFocus(
Display* ,
Window ,
int ,
Time
);
extern int XSetLineAttributes(
Display* ,
GC ,
unsigned int ,
int ,
int ,
int
);
extern int XSetModifierMapping(
Display* ,
XModifierKeymap*
);
extern int XSetPlaneMask(
Display* ,
GC ,
unsigned long
);
extern int XSetPointerMapping(
Display* ,
_Xconst unsigned char* ,
int
);
extern int XSetScreenSaver(
Display* ,
int ,
int ,
int ,
int
);
extern int XSetSelectionOwner(
Display* ,
Atom ,
Window ,
Time
);
extern int XSetState(
Display* ,
GC ,
unsigned long ,
unsigned long ,
int ,
unsigned long
);
extern int XSetStipple(
Display* ,
GC ,
Pixmap
);
extern int XSetSubwindowMode(
Display* ,
GC ,
int
);
extern int XSetTSOrigin(
Display* ,
GC ,
int ,
int
);
extern int XSetTile(
Display* ,
GC ,
Pixmap
);
extern int XSetWindowBackground(
Display* ,
Window ,
unsigned long
);
extern int XSetWindowBackgroundPixmap(
Display* ,
Window ,
Pixmap
);
extern int XSetWindowBorder(
Display* ,
Window ,
unsigned long
);
extern int XSetWindowBorderPixmap(
Display* ,
Window ,
Pixmap
);
extern int XSetWindowBorderWidth(
Display* ,
Window ,
unsigned int
);
extern int XSetWindowColormap(
Display* ,
Window ,
Colormap
);
extern int XStoreBuffer(
Display* ,
_Xconst char* ,
int ,
int
);
extern int XStoreBytes(
Display* ,
_Xconst char* ,
int
);
extern int XStoreColor(
Display* ,
Colormap ,
XColor*
);
extern int XStoreColors(
Display* ,
Colormap ,
XColor* ,
int
);
extern int XStoreName(
Display* ,
Window ,
_Xconst char*
);
extern int XStoreNamedColor(
Display* ,
Colormap ,
_Xconst char* ,
unsigned long ,
int
);
extern int XSync(
Display* ,
Bool
);
extern int XTextExtents(
XFontStruct* ,
_Xconst char* ,
int ,
int* ,
int* ,
int* ,
XCharStruct*
);
extern int XTextExtents16(
XFontStruct* ,
_Xconst XChar2b* ,
int ,
int* ,
int* ,
int* ,
XCharStruct*
);
extern int XTextWidth(
XFontStruct* ,
_Xconst char* ,
int
);
extern int XTextWidth16(
XFontStruct* ,
_Xconst XChar2b* ,
int
);
extern Bool XTranslateCoordinates(
Display* ,
Window ,
Window ,
int ,
int ,
int* ,
int* ,
Window*
);
extern int XUndefineCursor(
Display* ,
Window
);
extern int XUngrabButton(
Display* ,
unsigned int ,
unsigned int ,
Window
);
extern int XUngrabKey(
Display* ,
int ,
unsigned int ,
Window
);
extern int XUngrabKeyboard(
Display* ,
Time
);
extern int XUngrabPointer(
Display* ,
Time
);
extern int XUngrabServer(
Display*
);
extern int XUninstallColormap(
Display* ,
Colormap
);
extern int XUnloadFont(
Display* ,
Font
);
extern int XUnmapSubwindows(
Display* ,
Window
);
extern int XUnmapWindow(
Display* ,
Window
);
extern int XVendorRelease(
Display*
);
extern int XWarpPointer(
Display* ,
Window ,
Window ,
int ,
int ,
unsigned int ,
unsigned int ,
int ,
int
);
extern int XWidthMMOfScreen(
Screen*
);
extern int XWidthOfScreen(
Screen*
);
extern int XWindowEvent(
Display* ,
Window ,
long ,
XEvent*
);
extern int XWriteBitmapFile(
Display* ,
_Xconst char* ,
Pixmap ,
unsigned int ,
unsigned int ,
int ,
int
);
extern Bool XSupportsLocale (void);
extern char *XSetLocaleModifiers(
const char*
);
extern XOM XOpenOM(
Display* ,
struct _XrmHashBucketRec* ,
_Xconst char* ,
_Xconst char*
);
extern Status XCloseOM(
XOM
);
extern char *XSetOMValues(
XOM ,
...
) _X_SENTINEL(0);
extern char *XGetOMValues(
XOM ,
...
) _X_SENTINEL(0);
extern Display *XDisplayOfOM(
XOM
);
extern char *XLocaleOfOM(
XOM
);
extern XOC XCreateOC(
XOM ,
...
) _X_SENTINEL(0);
extern void XDestroyOC(
XOC
);
extern XOM XOMOfOC(
XOC
);
extern char *XSetOCValues(
XOC ,
...
) _X_SENTINEL(0);
extern char *XGetOCValues(
XOC ,
...
) _X_SENTINEL(0);
extern XFontSet XCreateFontSet(
Display* ,
_Xconst char* ,
char*** ,
int* ,
char**
);
extern void XFreeFontSet(
Display* ,
XFontSet
);
extern int XFontsOfFontSet(
XFontSet ,
XFontStruct*** ,
char***
);
extern char *XBaseFontNameListOfFontSet(
XFontSet
);
extern char *XLocaleOfFontSet(
XFontSet
);
extern Bool XContextDependentDrawing(
XFontSet
);
extern Bool XDirectionalDependentDrawing(
XFontSet
);
extern Bool XContextualDrawing(
XFontSet
);
extern XFontSetExtents *XExtentsOfFontSet(
XFontSet
);
extern int XmbTextEscapement(
XFontSet ,
_Xconst char* ,
int
);
extern int XwcTextEscapement(
XFontSet ,
_Xconst wchar_t* ,
int
);
extern int Xutf8TextEscapement(
XFontSet ,
_Xconst char* ,
int
);
extern int XmbTextExtents(
XFontSet ,
_Xconst char* ,
int ,
XRectangle* ,
XRectangle*
);
extern int XwcTextExtents(
XFontSet ,
_Xconst wchar_t* ,
int ,
XRectangle* ,
XRectangle*
);
extern int Xutf8TextExtents(
XFontSet ,
_Xconst char* ,
int ,
XRectangle* ,
XRectangle*
);
extern Status XmbTextPerCharExtents(
XFontSet ,
_Xconst char* ,
int ,
XRectangle* ,
XRectangle* ,
int ,
int* ,
XRectangle* ,
XRectangle*
);
extern Status XwcTextPerCharExtents(
XFontSet ,
_Xconst wchar_t* ,
int ,
XRectangle* ,
XRectangle* ,
int ,
int* ,
XRectangle* ,
XRectangle*
);
extern Status Xutf8TextPerCharExtents(
XFontSet ,
_Xconst char* ,
int ,
XRectangle* ,
XRectangle* ,
int ,
int* ,
XRectangle* ,
XRectangle*
);
extern void XmbDrawText(
Display* ,
Drawable ,
GC ,
int ,
int ,
XmbTextItem* ,
int
);
extern void XwcDrawText(
Display* ,
Drawable ,
GC ,
int ,
int ,
XwcTextItem* ,
int
);
extern void Xutf8DrawText(
Display* ,
Drawable ,
GC ,
int ,
int ,
XmbTextItem* ,
int
);
extern void XmbDrawString(
Display* ,
Drawable ,
XFontSet ,
GC ,
int ,
int ,
_Xconst char* ,
int
);
extern void XwcDrawString(
Display* ,
Drawable ,
XFontSet ,
GC ,
int ,
int ,
_Xconst wchar_t* ,
int
);
extern void Xutf8DrawString(
Display* ,
Drawable ,
XFontSet ,
GC ,
int ,
int ,
_Xconst char* ,
int
);
extern void XmbDrawImageString(
Display* ,
Drawable ,
XFontSet ,
GC ,
int ,
int ,
_Xconst char* ,
int
);
extern void XwcDrawImageString(
Display* ,
Drawable ,
XFontSet ,
GC ,
int ,
int ,
_Xconst wchar_t* ,
int
);
extern void Xutf8DrawImageString(
Display* ,
Drawable ,
XFontSet ,
GC ,
int ,
int ,
_Xconst char* ,
int
);
extern XIM XOpenIM(
Display* ,
struct _XrmHashBucketRec* ,
char* ,
char*
);
extern Status XCloseIM(
XIM
);
extern char *XGetIMValues(
XIM , ...
) _X_SENTINEL(0);
extern char *XSetIMValues(
XIM , ...
) _X_SENTINEL(0);
extern Display *XDisplayOfIM(
XIM
);
extern char *XLocaleOfIM(
XIM
);
extern XIC XCreateIC(
XIM , ...
) _X_SENTINEL(0);
extern void XDestroyIC(
XIC
);
extern void XSetICFocus(
XIC
);
extern void XUnsetICFocus(
XIC
);
extern wchar_t *XwcResetIC(
XIC
);
extern char *XmbResetIC(
XIC
);
extern char *Xutf8ResetIC(
XIC
);
extern char *XSetICValues(
XIC , ...
) _X_SENTINEL(0);
extern char *XGetICValues(
XIC , ...
) _X_SENTINEL(0);
extern XIM XIMOfIC(
XIC
);
extern Bool XFilterEvent(
XEvent* ,
Window
);
extern int XmbLookupString(
XIC ,
XKeyPressedEvent* ,
char* ,
int ,
KeySym* ,
Status*
);
extern int XwcLookupString(
XIC ,
XKeyPressedEvent* ,
wchar_t* ,
int ,
KeySym* ,
Status*
);
extern int Xutf8LookupString(
XIC ,
XKeyPressedEvent* ,
char* ,
int ,
KeySym* ,
Status*
);
extern XVaNestedList XVaCreateNestedList(
int , ...
) _X_SENTINEL(0);
extern Bool XRegisterIMInstantiateCallback(
Display* ,
struct _XrmHashBucketRec* ,
char* ,
char* ,
XIDProc ,
XPointer
);
extern Bool XUnregisterIMInstantiateCallback(
Display* ,
struct _XrmHashBucketRec* ,
char* ,
char* ,
XIDProc ,
XPointer
);
XConnectionWatchProc;
extern Status XInternalConnectionNumbers(
Display* ,
int** ,
int*
);
extern void XProcessInternalConnection(
Display* ,
int
);
extern Status XAddConnectionWatch(
Display* ,
XConnectionWatchProc ,
XPointer
);
extern void XRemoveConnectionWatch(
Display* ,
XConnectionWatchProc ,
XPointer
);
extern void XSetAuthorization(
char * ,
int ,
char * ,
int
);
extern int _Xmbtowc(
wchar_t * ,
char * ,
int
);
extern int _Xwctomb(
char * ,
wchar_t
);
extern Bool XGetEventData(
Display* ,
XGenericEventCookie*
);
extern void XFreeEventData(
Display* ,
XGenericEventCookie*
);
#ifdef __clang__
#pragma clang diagnostic pop
#endif
_XFUNCPROTOEND
#endif