glfwGetWindowMonitor

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.

extern (C) @nogc nothrow __gshared
glfwGetWindowMonitor

Parameters

window GLFWwindow*

The window to query.

Return Value

The monitor, or null if the window is in windowed mode or an error 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

Meta

Since

Added in version 3.0.

Ingroup: window