PageRenderTime 66ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/third-party/cxxtest-4.4/test/fake/X11/Xlib.h

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