Function SDL_SetWindowData

pub unsafe extern "C" fn SDL_SetWindowData(
    window: *mut SDL_Window,
    name: *const i8,
    userdata: *mut c_void,
) -> *mut c_void
Available on crate feature dep_sdl2 only.
Expand description

Associate an arbitrary named pointer with a window.

name is case-sensitive.

\param window the window to associate with the pointer \param name the name of the pointer \param userdata the associated pointer \returns the previous value associated with name.

\since This function is available since SDL 2.0.0.

\sa SDL_GetWindowData