1 // Fake Xlib.h
2 
3 struct Display {};
4 typedef int Window, Colormap, GC;
5 typedef const char *XID;
6 struct XFontStruct { int ascent, descent; };
7 struct Screen {};
8 struct XColor { int pixel; };
9 
10 enum { Success, ExposureMask };
11 
XOpenDisplay(void *)12 inline Display *XOpenDisplay(void *) { return 0; }
DefaultColormap(Display *,int)13 inline Colormap DefaultColormap( Display *, int ) { return 0; }
XParseColor(Display *,Colormap,const char *,XColor *)14 inline void XParseColor( Display *, Colormap, const char *, XColor * ) {}
XAllocColor(Display *,Colormap,XColor *)15 inline int XAllocColor( Display *, Colormap, XColor *) { return 0; }
XCreateSimpleWindow(Display *,Window,int,int,int,int,int,int,int)16 inline Window XCreateSimpleWindow( Display *, Window, int, int, int, int, int, int, int ) { return 0; }
RootWindow(Display *,int)17 inline Window RootWindow( Display *, int ) { return 0; }
XCreateGC(Display *,Window,int,int)18 inline GC XCreateGC( Display *, Window, int, int ) { return 0; }
XLoadFont(Display *,const char *)19 inline XID XLoadFont( Display *, const char * ) { return 0; }
XSetFont(Display *,GC,XID)20 inline int XSetFont( Display *, GC, XID ) { return 0; }
XGContextFromGC(GC)21 inline XID XGContextFromGC( GC ) { return 0; }
XQueryFont(Display *,const char *)22 inline XFontStruct *XQueryFont( Display *, const char * ) { return 0; }
XFreeFontInfo(char **,XFontStruct *,int)23 inline int XFreeFontInfo( char **, XFontStruct *, int ) { return 0; }
XSelectInput(Display *,Window,int)24 inline int XSelectInput( Display *, Window, int ) { return 0; }
XMapWindow(Display *,Window)25 inline int XMapWindow( Display *, Window ) { return 0; }
XDefaultScreenOfDisplay(Display *)26 inline Screen *XDefaultScreenOfDisplay( Display * ) { return 0; }
WidthOfScreen(Screen *)27 inline int WidthOfScreen( Screen * ) { return 0; }
HeightOfScreen(Screen *)28 inline int HeightOfScreen( Screen * ) { return 0; }
XMoveResizeWindow(Display *,Window,int,int,int,int)29 inline int XMoveResizeWindow( Display *, Window, int, int, int, int ) { return 0; }
30 
31 struct XEvent {};
XCheckMaskEvent(Display *,int,XEvent *)32 inline int XCheckMaskEvent( Display *, int, XEvent * ) { return 0; }
XSetStandardProperties(Display *,Window,const char *,int,int,int,int,int)33 inline int XSetStandardProperties( Display *, Window, const char *, int, int, int, int, int ) { return 0; }
34 
35 struct XWindowAttributes { int width, height; };
XGetWindowAttributes(Display *,Window,XWindowAttributes *)36 inline int XGetWindowAttributes( Display *, Window, XWindowAttributes * ) { return 0; }
XSetForeground(Display *,GC,unsigned long)37 inline int XSetForeground( Display *, GC, unsigned long ) { return 0; }
XSetBackground(Display *,GC,unsigned long)38 inline int XSetBackground( Display *, GC, unsigned long ) { return 0; }
XFillRectangle(Display *,Window,GC,int,int,int,int)39 inline int XFillRectangle( Display *, Window, GC, int, int, int, int ) { return 0; }
XDrawLine(Display *,Window,GC,int,int,int,int)40 inline int XDrawLine( Display *, Window, GC, int, int, int, int ) { return 0; }
XDrawString(Display *,Window,GC,int,int,const char *,int)41 inline int XDrawString( Display *, Window, GC, int, int, const char *, int ) { return 0; }
XFlush(Display *)42 inline int XFlush( Display * ) { return 0; }
XFreeGC(Display *,GC)43 inline int XFreeGC( Display *, GC ) { return 0; }
XDestroyWindow(Display *,Window)44 inline int XDestroyWindow( Display *, Window ) { return 0; }
XCloseDisplay(Display *)45 inline int XCloseDisplay( Display * ) { return 0; }
XTextWidth(XFontStruct *,const char *,int)46 inline int XTextWidth( XFontStruct *, const char *, int ) { return 0; }
47