glfwGetCocoaMonitor

Returns the CGDirectDisplayID of the specified monitor.

version(GLFW_EXPOSE_NATIVE_COCOA)
export extern (C) @nogc nothrow __gshared
CGDirectDisplayID
glfwGetCocoaMonitor
(
GLFWmonitor* monitor
)

Return Value

Type: CGDirectDisplayID

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

Thread Safety

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

Meta

Since

Added in version 3.1.

Ingroup: native