Class GLFWNativeX11



  • public class GLFWNativeX11
    extends java.lang.Object
    Native bindings to the GLFW library's X11 native access functions.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  GLFWNativeX11.Functions
      Contains the function pointers loaded from GLFW.getLibrary().
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static long glfwGetX11Adapter(long monitor)
      Returns the RRCrtc of the specified monitor.
      static long glfwGetX11Display()
      Returns the Display used by GLFW.
      static long glfwGetX11Monitor(long monitor)
      Returns the RROutput of the specified monitor.
      static long glfwGetX11Window(long window)
      Returns the Window of the specified window.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • glfwGetX11Display

        public static long glfwGetX11Display()
        Returns the Display used by GLFW.

        Note: This function may be called from any thread. Access is not synchronized.

        Returns:
        The Display used by GLFW, or NULL if an error occurred.
        Since:
        version 3.0
      • glfwGetX11Adapter

        public static long glfwGetX11Adapter(long monitor)
        Returns the RRCrtc of the specified monitor.

        Note: This function may be called from any thread. Access is not synchronized.

        Parameters:
        monitor - the GLFW monitor
        Returns:
        The RRCrtc of the specified monitor, or None if an error occurred.
        Since:
        version 3.1
      • glfwGetX11Monitor

        public static long glfwGetX11Monitor(long monitor)
        Returns the RROutput of the specified monitor.

        Note: This function may be called from any thread. Access is not synchronized.

        Parameters:
        monitor - the GLFW monitor
        Returns:
        The RROutput of the specified monitor, or None if an error occurred.
        Since:
        version 3.1
      • glfwGetX11Window

        public static long glfwGetX11Window(long window)
        Returns the Window of the specified window.

        Note: This function may be called from any thread. Access is not synchronized.

        Parameters:
        window - a GLFW window
        Returns:
        The Window of the specified window, or None if an error occurred.
        Since:
        version 3.0