bindGLFW_X11

Undocumented in source.
  1. enum bindGLFW_X11;
    version(BindGLFW_Dynamic)
    @nogc nothrow
    static if(!(bindWindows))
    static if(!(bindMac))
    static if(bindPosix && !bindAndroid)
    static if(glfwSupport >= GLFWSupport.glfw33)
    enum bindGLFW_X11 = q{ extern(C) @nogc nothrow { alias pglfwGetX11Display = Display* function(); alias pglfwGetX11Window = Window function(GLFWwindow* window); alias pglfwGetX11Adapter = RRCrtc function(GLFWmonitor* monitor); alias pglfwGetX11Monitor = RROutput function(GLFWmonitor* monitor); alias pglfwSetX11SelectionString = void function(const(char)* string_); alias pglfwGetX11SelectionString = const(char)* function(); } __gshared { pglfwGetX11Display glfwGetX11Display; pglfwGetX11Window glfwGetX11Window; pglfwGetX11Adapter glfwGetX11Adapter; pglfwGetX11Monitor glfwGetX11Monitor; pglfwSetX11SelectionString glfwSetX11SelectionString; pglfwGetX11SelectionString glfwGetX11SelectionString; } @nogc nothrow bool loadGLFW_X11() { import bindbc.loader.sharedlib : errorCount; if(!isGLFWLoaded) return false; auto errCount = errorCount(); bindGLFWSymbol(cast(void**)&glfwGetX11Display, "glfwGetX11Display"); bindGLFWSymbol(cast(void**)&glfwGetX11Window,"glfwGetX11Window"); bindGLFWSymbol(cast(void**)&glfwGetX11Adapter, "glfwGetX11Adapter"); bindGLFWSymbol(cast(void**)&glfwGetX11Monitor,"glfwGetX11Monitor"); bindGLFWSymbol(cast(void**)&glfwSetX11SelectionString,"glfwSetX11SelectionString"); bindGLFWSymbol(cast(void**)&glfwGetX11SelectionString,"glfwGetX11SelectionString"); return errorCount() == errCount; } };
  2. enum bindGLFW_X11;
  3. enum bindGLFW_X11;

Meta