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 πŸ“


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