#ifndef _X11_XUTIL_H_
#define _X11_XUTIL_H_
#include <X11/Xlib.h>
#include <X11/keysym.h>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
#endif
#define NoValue …
#define XValue …
#define YValue …
#define WidthValue …
#define HeightValue …
#define AllValues …
#define XNegative …
#define YNegative …
XSizeHints;
#define USPosition …
#define USSize …
#define PPosition …
#define PSize …
#define PMinSize …
#define PMaxSize …
#define PResizeInc …
#define PAspect …
#define PBaseSize …
#define PWinGravity …
#define PAllHints …
XWMHints;
#define InputHint …
#define StateHint …
#define IconPixmapHint …
#define IconWindowHint …
#define IconPositionHint …
#define IconMaskHint …
#define WindowGroupHint …
#define AllHints …
#define XUrgencyHint …
#define WithdrawnState …
#define NormalState …
#define IconicState …
#define DontCareState …
#define ZoomState …
#define InactiveState …
XTextProperty;
#define XNoMemory …
#define XLocaleNotSupported …
#define XConverterNotFound …
XICCEncodingStyle;
XIconSize;
XClassHint;
#ifdef XUTIL_DEFINE_FUNCTIONS
extern int XDestroyImage(
XImage *ximage);
extern unsigned long XGetPixel(
XImage *ximage,
int x, int y);
extern int XPutPixel(
XImage *ximage,
int x, int y,
unsigned long pixel);
extern XImage *XSubImage(
XImage *ximage,
int x, int y,
unsigned int width, unsigned int height);
extern int XAddPixel(
XImage *ximage,
long value);
#else
#define XDestroyImage(ximage) …
#define XGetPixel(ximage, x, y) …
#define XPutPixel(ximage, x, y, pixel) …
#define XSubImage(ximage, x, y, width, height) …
#define XAddPixel(ximage, value) …
#endif
XComposeStatus;
#define IsKeypadKey(keysym) …
#define IsPrivateKeypadKey(keysym) …
#define IsCursorKey(keysym) …
#define IsPFKey(keysym) …
#define IsFunctionKey(keysym) …
#define IsMiscFunctionKey(keysym) …
#ifdef XK_XKB_KEYS
#define IsModifierKey(keysym) …
#else
#define IsModifierKey …
#endif
Region;
#define RectangleOut …
#define RectangleIn …
#define RectanglePart …
XVisualInfo;
#define VisualNoMask …
#define VisualIDMask …
#define VisualScreenMask …
#define VisualDepthMask …
#define VisualClassMask …
#define VisualRedMaskMask …
#define VisualGreenMaskMask …
#define VisualBlueMaskMask …
#define VisualColormapSizeMask …
#define VisualBitsPerRGBMask …
#define VisualAllMask …
XStandardColormap;
#define ReleaseByFreeingColormap …
#define BitmapSuccess …
#define BitmapOpenFailed …
#define BitmapFileInvalid …
#define BitmapNoMemory …
#define XCSUCCESS …
#define XCNOMEM …
#define XCNOENT …
XContext;
#define XUniqueContext() …
#define XStringToContext(string) …
_XFUNCPROTOBEGIN
extern XClassHint *XAllocClassHint (
void
);
extern XIconSize *XAllocIconSize (
void
);
extern XSizeHints *XAllocSizeHints (
void
);
extern XStandardColormap *XAllocStandardColormap (
void
);
extern XWMHints *XAllocWMHints (
void
);
extern int XClipBox(
Region ,
XRectangle*
);
extern Region XCreateRegion(
void
);
extern const char *XDefaultString (void);
extern int XDeleteContext(
Display* ,
XID ,
XContext
);
extern int XDestroyRegion(
Region
);
extern int XEmptyRegion(
Region
);
extern int XEqualRegion(
Region ,
Region
);
extern int XFindContext(
Display* ,
XID ,
XContext ,
XPointer*
);
extern Status XGetClassHint(
Display* ,
Window ,
XClassHint*
);
extern Status XGetIconSizes(
Display* ,
Window ,
XIconSize** ,
int*
);
extern Status XGetNormalHints(
Display* ,
Window ,
XSizeHints*
);
extern Status XGetRGBColormaps(
Display* ,
Window ,
XStandardColormap** ,
int* ,
Atom
);
extern Status XGetSizeHints(
Display* ,
Window ,
XSizeHints* ,
Atom
);
extern Status XGetStandardColormap(
Display* ,
Window ,
XStandardColormap* ,
Atom
);
extern Status XGetTextProperty(
Display* ,
Window ,
XTextProperty* ,
Atom
);
extern XVisualInfo *XGetVisualInfo(
Display* ,
long ,
XVisualInfo* ,
int*
);
extern Status XGetWMClientMachine(
Display* ,
Window ,
XTextProperty*
);
extern XWMHints *XGetWMHints(
Display* ,
Window
);
extern Status XGetWMIconName(
Display* ,
Window ,
XTextProperty*
);
extern Status XGetWMName(
Display* ,
Window ,
XTextProperty*
);
extern Status XGetWMNormalHints(
Display* ,
Window ,
XSizeHints* ,
long*
);
extern Status XGetWMSizeHints(
Display* ,
Window ,
XSizeHints* ,
long* ,
Atom
);
extern Status XGetZoomHints(
Display* ,
Window ,
XSizeHints*
);
extern int XIntersectRegion(
Region ,
Region ,
Region
);
extern void XConvertCase(
KeySym ,
KeySym* ,
KeySym*
);
extern int XLookupString(
XKeyEvent* ,
char* ,
int ,
KeySym* ,
XComposeStatus*
);
extern Status XMatchVisualInfo(
Display* ,
int ,
int ,
int ,
XVisualInfo*
);
extern int XOffsetRegion(
Region ,
int ,
int
);
extern Bool XPointInRegion(
Region ,
int ,
int
);
extern Region XPolygonRegion(
XPoint* ,
int ,
int
);
extern int XRectInRegion(
Region ,
int ,
int ,
unsigned int ,
unsigned int
);
extern int XSaveContext(
Display* ,
XID ,
XContext ,
_Xconst char*
);
extern int XSetClassHint(
Display* ,
Window ,
XClassHint*
);
extern int XSetIconSizes(
Display* ,
Window ,
XIconSize* ,
int
);
extern int XSetNormalHints(
Display* ,
Window ,
XSizeHints*
);
extern void XSetRGBColormaps(
Display* ,
Window ,
XStandardColormap* ,
int ,
Atom
);
extern int XSetSizeHints(
Display* ,
Window ,
XSizeHints* ,
Atom
);
extern int XSetStandardProperties(
Display* ,
Window ,
_Xconst char* ,
_Xconst char* ,
Pixmap ,
char** ,
int ,
XSizeHints*
);
extern void XSetTextProperty(
Display* ,
Window ,
XTextProperty* ,
Atom
);
extern void XSetWMClientMachine(
Display* ,
Window ,
XTextProperty*
);
extern int XSetWMHints(
Display* ,
Window ,
XWMHints*
);
extern void XSetWMIconName(
Display* ,
Window ,
XTextProperty*
);
extern void XSetWMName(
Display* ,
Window ,
XTextProperty*
);
extern void XSetWMNormalHints(
Display* ,
Window ,
XSizeHints*
);
extern void XSetWMProperties(
Display* ,
Window ,
XTextProperty* ,
XTextProperty* ,
char** ,
int ,
XSizeHints* ,
XWMHints* ,
XClassHint*
);
extern void XmbSetWMProperties(
Display* ,
Window ,
_Xconst char* ,
_Xconst char* ,
char** ,
int ,
XSizeHints* ,
XWMHints* ,
XClassHint*
);
extern void Xutf8SetWMProperties(
Display* ,
Window ,
_Xconst char* ,
_Xconst char* ,
char** ,
int ,
XSizeHints* ,
XWMHints* ,
XClassHint*
);
extern void XSetWMSizeHints(
Display* ,
Window ,
XSizeHints* ,
Atom
);
extern int XSetRegion(
Display* ,
GC ,
Region
);
extern void XSetStandardColormap(
Display* ,
Window ,
XStandardColormap* ,
Atom
);
extern int XSetZoomHints(
Display* ,
Window ,
XSizeHints*
);
extern int XShrinkRegion(
Region ,
int ,
int
);
extern Status XStringListToTextProperty(
char** ,
int ,
XTextProperty*
);
extern int XSubtractRegion(
Region ,
Region ,
Region
);
extern int XmbTextListToTextProperty(
Display* display,
char** list,
int count,
XICCEncodingStyle style,
XTextProperty* text_prop_return
);
extern int XwcTextListToTextProperty(
Display* display,
wchar_t** list,
int count,
XICCEncodingStyle style,
XTextProperty* text_prop_return
);
extern int Xutf8TextListToTextProperty(
Display* display,
char** list,
int count,
XICCEncodingStyle style,
XTextProperty* text_prop_return
);
extern void XwcFreeStringList(
wchar_t** list
);
extern Status XTextPropertyToStringList(
XTextProperty* ,
char*** ,
int*
);
extern int XmbTextPropertyToTextList(
Display* display,
const XTextProperty* text_prop,
char*** list_return,
int* count_return
);
extern int XwcTextPropertyToTextList(
Display* display,
const XTextProperty* text_prop,
wchar_t*** list_return,
int* count_return
);
extern int Xutf8TextPropertyToTextList(
Display* display,
const XTextProperty* text_prop,
char*** list_return,
int* count_return
);
extern int XUnionRectWithRegion(
XRectangle* ,
Region ,
Region
);
extern int XUnionRegion(
Region ,
Region ,
Region
);
extern int XWMGeometry(
Display* ,
int ,
_Xconst char* ,
_Xconst char* ,
unsigned int ,
XSizeHints* ,
int* ,
int* ,
int* ,
int* ,
int*
);
extern int XXorRegion(
Region ,
Region ,
Region
);
#ifdef __clang__
#pragma clang diagnostic pop
#endif
_XFUNCPROTOEND
#endif