Class GLFWNativeCocoa


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

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int glfwGetCocoaMonitor​(long monitor)
      Returns the CGDirectDisplayID of the specified monitor.
      static long glfwGetCocoaWindow​(long window)
      Returns the NSWindow of the specified GLFW window.
      • Methods inherited from class java.lang.Object

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

      • glfwGetCocoaMonitor

        public static int glfwGetCocoaMonitor​(long monitor)
        Returns the CGDirectDisplayID of the specified monitor.

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

        Parameters:
        monitor - the GLFW monitor
        Returns:
        The CGDirectDisplayID of the specified monitor, or kCGNullDirectDisplay if an error occurred.
        Since:
        version 3.1
      • glfwGetCocoaWindow

        public static long glfwGetCocoaWindow​(long window)
        Returns the NSWindow of the specified GLFW window.

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

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