glfwGetWindowMonitor function

Pointer<GLFWmonitor> glfwGetWindowMonitor(
  1. Pointer<GLFWwindow> window
)

! @brief Returns the monitor that the window uses for full screen mode.

This function returns the handle of the monitor that the specified window is in full screen on.

@paramin window The window to query. @return The monitor, or NULL if the window is in windowed mode or an error(@ref error_handling) occurred.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function must only be called from the main thread.

@sa @ref window_monitor @sa @ref glfwSetWindowMonitor

@since Added in version 3.0.

@ingroup window

GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window)

Implementation

Pointer<GLFWmonitor> glfwGetWindowMonitor(Pointer<GLFWwindow> window) {
  final glfwGetWindowMonitorLookupFunction = libglfw.lookupFunction<
      Pointer<GLFWmonitor> Function(Pointer<GLFWwindow> window),
      Pointer<GLFWmonitor> Function(
          Pointer<GLFWwindow> window)>('glfwGetWindowMonitor');
  return glfwGetWindowMonitorLookupFunction(window);
}