SDL_GetWindowID

Get the numeric ID of a window.

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

extern (C) nothrow @nogc extern
SDL_GetWindowID

Parameters

window SDL_Window*

the window to query.

Return Value

the ID of the window on success or 0 on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta