SDL_GetWindowParent(3)
π SDL_GetWindowParent π
okay so bestie, real talk β this is the SDL_GetWindowParent page from the SDL3 FUNCTIONS manual, and it's literally just "who's your window's parent?" energy. no cap. let's get into it π«Ά
β¨ NAME β¨
SDL_GetWindowParent β get the parent of a window. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
SDL_Window * SDL_GetWindowParent(SDL_Window *window);
π FUNCTION PARAMETERS π
windowβ the window you wanna query. like, the one you're asking "so... who's your parent?" about. π
π RETURN VALUE π
Returns the parent of the window on success β¨ β or NULL if the window has no parent. orphan window behaviour, honestly kinda iconic π
π¦ THREAD SAFETY π¦
β οΈ this function should only be called on the main thread. do not try to be cute and call it from a worker thread, bestie, i'm begging π
π AVAILABILITY π
this one's been around since SDL 3.2.0 β vintage, but make it slay. π
π SEE ALSO π
SDL_CreatePopupWindow(3)β the whole reason a window even has a parent, iykyk π₯
and that's the tea, fr fr. this page came to you courtesy of Simple Directmedia Layer, version SDL 3.4.18, and it's serving SDL_GetWindowParent(3) realness. mwah, go query some windows πβ¨
π¦ 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