[go: up one dir, main page]

GLFWerrorfun

Type Alias GLFWerrorfun 

Source
pub type GLFWerrorfun = Option<unsafe extern "C" fn(i32, *const i8)>;
Expand description

@brief The function pointer type for error callbacks.

This is the function pointer type for error callbacks. An error callback function has the following signature: @code void callback_name(int error_code, const char* description) @endcode

@param[in] error_code An [error code](@ref errors). Future releases may add more error codes. @param[in] description A UTF-8 encoded string describing the error.

@pointer_lifetime The error description string is valid until the callback function returns.

@sa @ref error_handling @sa @ref glfwSetErrorCallback

@since Added in version 3.0.

@ingroup init

Aliased Type§

pub enum GLFWerrorfun {
    None,
    Some(unsafe extern "C" fn(i32, *const i8)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, *const i8))

Some value of type T.