Type Alias sdl2_sys::SDL_HintCallback

source ·
pub type SDL_HintCallback = Option<unsafe extern "C" fn(userdata: *mut c_void, name: *const c_char, oldValue: *const c_char, newValue: *const c_char)>;
Expand description

Type definition of the hint callback function.

\param userdata what was passed as userdata to SDL_AddHintCallback() \param name what was passed as name to SDL_AddHintCallback() \param oldValue the previous hint value \param newValue the new value hint is to be set to

Aliased Type§

enum SDL_HintCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: *const i8, _: *const i8)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: *const i8, _: *const i8))

Some value of type T.