SDL_GetGrabbedWindow(3)
π SDL_GetGrabbedWindow(3) π
okay so bestie, we're in the SDL3 FUNCTIONS section of the SDL3 manual, and today's main character is SDL_GetGrabbedWindow π«Ά
β¨ NAME β¨
SDL_GetGrabbedWindow β get the window that currently has an input grab enabled, no cap π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
SDL_Window * SDL_GetGrabbedWindow(void);
like. that's it. that's the whole vibe. no arguments, she takes nothing, she just knows things π
π¦ RETURN VALUE π¦
She hands you back the window if input is grabbed β and if it's not? You get NULL. That's the whole story, fr fr. π
- returns the window if input is grabbed
- returns
NULLotherwise
π THREAD SAFETY π
β οΈ listen to me. listen. This function should only be called on the main thread. Don't be chaotic, don't be doing side-quest threads with this one, it's not that girl π
β AVAILABILITY β
This function is available since SDL 3.2.0. If your SDL is older than thatβ¦ girl. upgrade. π
π SEE ALSO π
the little grabby siblings, iykyk π
mwah π that's the page!! brought to you by Simple Directmedia Layer, running SDL 3.4.18, dated same as always β and honestly? iconic of them. periodt. π§β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms