Function fermium::video::SDL_SetWindowGrab[][src]

pub unsafe extern "C" fn SDL_SetWindowGrab(
    window: *mut SDL_Window,
    grabbed: SDL_bool
)

Sets if the window “grabs” the mouse pointer (locking it inside the window).

Only one window can have a grab at a time. If another window is already grabbing the mouse, that grab is cancelled in favor of this grab.