SDL_GetWindowFromID(3)

SDL_GetWindowFromID3

Get a window from a stored id.

Usage

#include "SDL3/SDL.h"

SDL_Window * SDL_GetWindowFromID(SDL_WindowID id);

Header file

Defined in SDL3/SDL_video.h

Overview

The numeric ID is what SDL_WindowEvent
references, and is necessary to map these events to specific SDL_Window

objects.

Function parameters

id

the ID of the window.

Return value

( SDL_Window
*) Returns the window associated with id or NULL if it doesn't exist; call SDL_GetError () for more information.

Thread safety

This function should only be called on the main thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.