Package org.lwjgl.glfw
Class GLFWNativeCocoa
java.lang.Object
org.lwjgl.glfw.GLFWNativeCocoa
Native bindings to the GLFW library's Cocoa native access functions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromGLFW.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic intglfwGetCocoaMonitor(long monitor) Returns theCGDirectDisplayIDof the specified monitor.static longglfwGetCocoaView(long window) Returns theNSViewof the specified window.static longglfwGetCocoaWindow(long window) Returns theNSWindowof the specified GLFW window.
-
Method Details
-
glfwGetCocoaMonitor
public static int glfwGetCocoaMonitor(long monitor) Returns theCGDirectDisplayIDof the specified monitor.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
monitor- the GLFW monitor- Returns:
- the
CGDirectDisplayIDof the specified monitor, orkCGNullDirectDisplayif an error occurred.Possible errors include
NOT_INITIALIZEDandPLATFORM_UNAVAILABLE. - Since:
- version 3.1
-
glfwGetCocoaWindow
public static long glfwGetCocoaWindow(long window) Returns theNSWindowof the specified GLFW window.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
window- the GLFW window- Returns:
- the
NSWindowof the specified window, or nil if an error occurred.Possible errors include
NOT_INITIALIZEDandPLATFORM_UNAVAILABLE. - Since:
- version 3.0
-
glfwGetCocoaView
public static long glfwGetCocoaView(long window) Returns theNSViewof the specified window.This function may be called from any thread. Access is not synchronized.
- Parameters:
window- the GLFW window- Returns:
- the
NSViewof the specified window, ornilif an error occurredPossible errors include
NOT_INITIALIZEDandPLATFORM_UNAVAILABLE. - Since:
- version 3.4
-