Provided by: libsdl3-doc_3.2.8+ds-1_all bug

NAME

       SDL_GetWindowFromEvent - Get window associated with an event.

HEADER FILE

       Defined in SDL3/SDL_events.h

SYNOPSIS

       #include "SDL3/SDL.h"

       SDL_Window * SDL_GetWindowFromEvent(const SDL_Event *event);

FUNCTION PARAMETERS

       event  an event containing a windowID .

RETURN VALUE

       ( SDL_Window
        *) 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

       (3), SDL_PollEvent(3), (3), SDL_WaitEvent(3), (3), SDL_WaitEventTimeout(3)

Simple Directmedia Layer                            SDL 3.2.8                          SDL_GetWindowFromEvent(3)