glfw_sys

Type Alias GLFWcursorenterfun

source
pub type GLFWcursorenterfun = Option<unsafe extern "C" fn(window: *mut GLFWwindow, entered: c_int)>;
Expand description

@brief The function pointer type for cursor enter/leave callbacks.

This is the function pointer type for cursor enter/leave callbacks. A cursor enter/leave callback function has the following signature: @code void function_name(GLFWwindow* window, int entered) @endcode

@param[in] window The window that received the event. @param[in] entered GLFW_TRUE if the cursor entered the window’s content area, or GLFW_FALSE if it left it.

@sa @ref cursor_enter @sa @ref glfwSetCursorEnterCallback

@since Added in version 3.0.

@ingroup input

Aliased Type§

enum GLFWcursorenterfun {
    None,
    Some(unsafe extern "C" fn(_: *mut GLFWwindow, _: i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut GLFWwindow, _: i32))

Some value of type T.