pub type GLFWwindowposfun = Option<unsafe extern "C" fn(*mut GLFWwindow, i32, i32)>;Expand description
@brief The function pointer type for window position callbacks.
This is the function pointer type for window position callbacks. A window position callback function has the following signature: @code void callback_name(GLFWwindow* window, int xpos, int ypos) @endcode
@param[in] window The window that was moved. @param[in] xpos The new x-coordinate, in screen coordinates, of the upper-left corner of the content area of the window. @param[in] ypos The new y-coordinate, in screen coordinates, of the upper-left corner of the content area of the window.
@sa @ref window_pos @sa @ref glfwSetWindowPosCallback
@since Added in version 3.0.
@ingroup window
Aliased Type§
pub enum GLFWwindowposfun {
None,
Some(unsafe extern "C" fn(*mut GLFWwindow, i32, i32)),
}