Skip to main content

SDL_GetWindowFromEvent

Function SDL_GetWindowFromEvent 

Source
pub unsafe extern "C" fn SDL_GetWindowFromEvent(
    event: *const SDL_Event,
) -> *mut SDL_Window
Expand description

Get window associated with an event.

Parameter: event an event containing a windowID. Returns: the associated window on success or NULL if there is none.

Thread Safety: It is safe to call this function from any thread.

Available Since: This function is available since SDL 3.2.0.

See Also: SDL_PollEvent See Also: SDL_WaitEvent See Also: SDL_WaitEventTimeout