[go: up one dir, main page]

glfwGetWindowMonitor

Function glfwGetWindowMonitor 

Source
pub unsafe extern "C" fn glfwGetWindowMonitor(
    window: *mut GLFWwindow,
) -> *mut GLFWmonitor
Expand description

@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.

@param[in] 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