|
@@ -286,6 +286,23 @@ GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
|
|
|
* @ingroup native
|
|
|
*/
|
|
|
GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window);
|
|
|
+
|
|
|
+/*! @brief Returns the `NSView` of the specified window.
|
|
|
+ *
|
|
|
+ * @return The `NSView` of the specified window, or `nil` if an
|
|
|
+ * [error](@ref error_handling) occurred.
|
|
|
+ *
|
|
|
+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
|
|
|
+ * GLFW_PLATFORM_UNAVAILABLE.
|
|
|
+ *
|
|
|
+ * @thread_safety This function may be called from any thread. Access is not
|
|
|
+ * synchronized.
|
|
|
+ *
|
|
|
+ * @since Added in version 3.4.
|
|
|
+ *
|
|
|
+ * @ingroup native
|
|
|
+ */
|
|
|
+GLFWAPI id glfwGetCocoaView(GLFWwindow* window);
|
|
|
#endif
|
|
|
|
|
|
#if defined(GLFW_EXPOSE_NATIVE_NSGL)
|