pub type GLFWcursorposfun = Option<unsafe extern "C" fn(*mut GLFWwindow, f64, f64)>;Expand description
@brief The function pointer type for cursor position callbacks.
This is the function pointer type for cursor position callbacks. A cursor position callback function has the following signature: @code void function_name(GLFWwindow* window, double xpos, double ypos); @endcode
@param[in] window The window that received the event. @param[in] xpos The new cursor x-coordinate, relative to the left edge of the content area. @param[in] ypos The new cursor y-coordinate, relative to the top edge of the content area.
@sa @ref cursor_pos @sa @ref glfwSetCursorPosCallback
@since Added in version 3.0. Replaces GLFWmouseposfun.
@ingroup input
Aliased Type§
pub enum GLFWcursorposfun {
None,
Some(unsafe extern "C" fn(*mut GLFWwindow, f64, f64)),
}