pub unsafe extern "C" fn glfwSetWindowPos(
window: *mut GLFWwindow,
xpos: i32,
ypos: i32,
)Expand description
@brief Sets the position of the content area of the specified window.
This function sets the position, in screen coordinates, of the upper-left corner of the content area of the specified windowed mode window. If the window is a full screen window, this function does nothing.
Do not use this function to move an already visible window unless you have very good reasons for doing so, as it will confuse and annoy the user.
The window manager may put limits on what positions are allowed. GLFW cannot and should not override these limits.
@param[in] window The window to query. @param[in] xpos The x-coordinate of the upper-left corner of the content area. @param[in] ypos The y-coordinate of the upper-left corner of the content area.
@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 set 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 glfwGetWindowPos
@since Added in version 1.0. @glfw3 Added window handle parameter.
@ingroup window