[go: up one dir, main page]

GLFWcursorenterfun

Type Alias GLFWcursorenterfun 

Source
pub type GLFWcursorenterfun = Option<unsafe extern "C" fn(*mut GLFWwindow, i32)>;
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§

pub 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.