SDL_GetWindowFlags(3)

πŸ’– NAME πŸ’–

okay so bestie, gather round: SDL_GetWindowFlags is literally the function that gets you the window flags. that's it. that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

#include <SDL3/SDL_video.h>

SDL_WindowFlags SDL_GetWindowFlags(SDL_Window *window);

like, you include the header, you call the function, the function hands you back a mask. iconic behavior fr fr. πŸ’…


🌸 FUNCTION PARAMETERS 🌸

  • window β€” the window you wanna query, bestie. that's the one you're asking about. πŸ”

πŸ¦‹ RETURN VALUE πŸ¦‹

it returns a mask of the SDL_WindowFlags associated with window. so like, all the flag info for that window, bundled up into one mask. slay. ✨


πŸ’œ THREAD SAFETY πŸ’œ

⚠️ okay important: this function should only be called on the main thread. do not be out here calling it from some random side thread, bestie, it's not that girl. 🚫🧡

🌈 AVAILABILITY 🌈

this function is available since SDL 3.2.0. so if you're on anything older, it's giving "not invited to the party" energy. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, obviously:


Simple Directmedia Layer β€’ SDL 3.4.18 β€’ SDL_GetWindowFlags(3)

and that's the whole page, bestie 🫢 this was Simple Directmedia Layer, SDL 3.4.18, mwah πŸ’‹ go get those window flags, you main character πŸ‘‘βœ¨

πŸ“¦ where this page comes from