Function SDL_GetWindowFromEvent

pub unsafe extern "C" fn SDL_GetWindowFromEvent(
    event: *const SDL_Event,
) -> *mut SDL_Window
Available on crate feature dep_sdl3 only.
Expand description

Get window associated with an event.

§Parameters

  • event: an event containing a windowID.

§Return value

Returns the associated window on success or NULL if there is none.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also