[go: up one dir, main page]

GLFWcharfun

Type Alias GLFWcharfun 

Source
pub type GLFWcharfun = Option<unsafe extern "C" fn(*mut GLFWwindow, u32)>;
Expand description

@brief The function pointer type for Unicode character callbacks.

This is the function pointer type for Unicode character callbacks. A Unicode character callback function has the following signature: @code void function_name(GLFWwindow* window, unsigned int codepoint) @endcode

@param[in] window The window that received the event. @param[in] codepoint The Unicode code point of the character.

@sa @ref input_char @sa @ref glfwSetCharCallback

@since Added in version 2.4. @glfw3 Added window handle parameter.

@ingroup input

Aliased Type§

pub enum GLFWcharfun {
    None,
    Some(unsafe extern "C" fn(*mut GLFWwindow, u32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut GLFWwindow, u32))

Some value of type T.