Top Description Inners Constructors Methods
org.lwjgl.glfw

public Class GLFWNativeCocoa

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the GLFW library's Cocoa native access functions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GLFWNativeCocoa.Functions

Contains the function pointers loaded from GLFW.getLibrary().

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the CGDirectDisplayID of the specified monitor, or kCGNullDirectDisplay if an error occurred.

Possible errors include NOT_INITIALIZED.

glfwGetCocoaMonitor
(long
the GLFW monitor
monitor
)

Returns the CGDirectDisplayID of the specified monitor.

public static long

Returns:

the NSWindow of the specified window, or nil if an error occurred.

Possible errors include NOT_INITIALIZED.

glfwGetCocoaWindow
(long
the GLFW window
window
)

Returns the NSWindow of the specified GLFW window.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GLFWNativeCocoaback to summary
protected GLFWNativeCocoa()

Method Detail

glfwGetCocoaMonitorback to summary
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:long

the GLFW monitor

Returns:int

the CGDirectDisplayID of the specified monitor, or kCGNullDirectDisplay if an error occurred.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:CGDirectDisplayID
Since
version 3.1
glfwGetCocoaWindowback to summary
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:long

the GLFW window

Returns:long

the NSWindow of the specified window, or nil if an error occurred.

Possible errors include NOT_INITIALIZED.

Annotations
@NativeType:id
Since
version 3.0
org.lwjgl.glfw back to summary

public final Class GLFWNativeCocoa.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from GLFW.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
GetCocoaMonitor

Function address.

public static final long
GetCocoaWindow

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GetCocoaMonitorback to summary
public static final long GetCocoaMonitor

Function address.

GetCocoaWindowback to summary
public static final long GetCocoaWindow

Function address.

Constructor Detail

Functionsback to summary
private Functions()