pub unsafe extern "C" fn glfwGetWindowPos(
window: *mut GLFWwindow,
xpos: *mut i32,
ypos: *mut i32,
)Expand description
@brief Retrieves the position of the content area of the specified window.
This function retrieves the position, in screen coordinates, of the upper-left corner of the content area of the specified window.
Any or all of the position arguments may be NULL. If an error occurs, all
non-NULL position arguments will be set to zero.
@param[in] window The window to query.
@param[out] xpos Where to store the x-coordinate of the upper-left corner of
the content area, or NULL.
@param[out] ypos Where to store the y-coordinate of the upper-left corner of
the content area, or NULL.
@errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
@remark @wayland There is no way for an application to retrieve the global position of its windows. This function will emit @ref GLFW_FEATURE_UNAVAILABLE.
@thread_safety This function must only be called from the main thread.
@sa @ref window_pos @sa @ref glfwSetWindowPos
@since Added in version 3.0.
@ingroup window