[][src]Function rs_glfw3::bindings::glfwSetWindowSizeCallback

pub unsafe extern "C" fn glfwSetWindowSizeCallback(
    window: *mut GLFWwindow,
    cbfun: GLFWwindowsizefun
) -> GLFWwindowsizefun

@brief Sets the size callback for the specified window.

This function sets the size callback of the specified window, which is called when the window is resized. The callback is provided with the size, in screen coordinates, of the client area of the window.

@param[in] window The window whose callback to set. @param[in] cbfun The new callback, or NULL to remove the currently set callback. @return The previously set callback, or NULL if no callback was set or the library had not been [initialized](@ref intro_init).

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

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

@sa @ref window_size

@since Added in version 1.0. @glfw3 Added window handle parameter and return value.

@ingroup window