Lines Matching refs:libX11
21 LibX11exports::LibX11exports(void *libX11, void *libXext) in LibX11exports() argument
23 XOpenDisplay = (Display *(*)(char*))getProcAddress(libX11, "XOpenDisplay"); in LibX11exports()
24 …XGetWindowAttributes = (Status (*)(Display*, Window, XWindowAttributes*))getProcAddress(libX11, "X… in LibX11exports()
25 XDefaultScreenOfDisplay = (Screen *(*)(Display*))getProcAddress(libX11, "XDefaultScreenOfDisplay"); in LibX11exports()
26 XWidthOfScreen = (int (*)(Screen*))getProcAddress(libX11, "XWidthOfScreen"); in LibX11exports()
27 XHeightOfScreen = (int (*)(Screen*))getProcAddress(libX11, "XHeightOfScreen"); in LibX11exports()
28 XPlanesOfScreen = (int (*)(Screen*))getProcAddress(libX11, "XPlanesOfScreen"); in LibX11exports()
29 XDefaultGC = (GC (*)(Display*, int))getProcAddress(libX11, "XDefaultGC"); in LibX11exports()
30 XDefaultDepth = (int (*)(Display*, int))getProcAddress(libX11, "XDefaultDepth"); in LibX11exports()
31 …XMatchVisualInfo = (Status (*)(Display*, int, int, int, XVisualInfo*))getProcAddress(libX11, "XMat… in LibX11exports()
32 …XDefaultVisual = (Visual *(*)(Display*, int screen_number))getProcAddress(libX11, "XDefaultVisual"… in LibX11exports()
33 …int (*)(Display*, XErrorEvent*)))(Display*, XErrorEvent*))getProcAddress(libX11, "XSetErrorHandler… in LibX11exports()
34 XSync = (int (*)(Display*, Bool))getProcAddress(libX11, "XSync"); in LibX11exports()
35 …int, int, int, char*, unsigned int, unsigned int, int, int))getProcAddress(libX11, "XCreateImage"); in LibX11exports()
36 XCloseDisplay = (int (*)(Display*))getProcAddress(libX11, "XCloseDisplay"); in LibX11exports()
37 …, GC, XImage*, int, int, int, int, unsigned int, unsigned int))getProcAddress(libX11, "XPutImage"); in LibX11exports()
38 …XDrawString = (int (*)(Display*, Drawable, GC, int, int, char*, int))getProcAddress(libX11, "XDraw… in LibX11exports()
54 static void *libX11 = nullptr; in loadExports() local
58 if(!libX11) in loadExports()
63 libX11 = (void*)-1; // No need to load it. in loadExports()
67 libX11 = loadLibrary("libX11.so"); in loadExports()
69 if(libX11) in loadExports()
72 libX11exports = new LibX11exports(libX11, libXext); in loadExports()
76 libX11 = (void*)-1; // Don't attempt loading more than once. in loadExports()
84 LibX11 libX11; variable