SDL_FlashWindow(3)
π SDL_FlashWindow(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_FlashWindow β¨
πΈ NAME πΈ
SDL_FlashWindow β it's literally how you ask a window to demand attention from the user. like, "hey babe, look over here" energy, but for your app π«Ά
π SYNOPSIS π
#include <SDL3/SDL_video.h>
bool SDL_FlashWindow(SDL_Window *window, SDL_FlashOperation operation);
π FUNCTION PARAMETERS π
windowβ the window that's gonna get flashed, bestie. that's the one doing the attention-grabbing.operationβ the operation you wanna perform. the vibe of the flash, if you will.
β RETURN VALUE β
Returns true on success or false on failure π and if it flops, pls call SDL_GetError() for more information, she'll tell you what went wrong.
π₯ THREAD SAFETY π₯
This function should only be called on the main thread. no cap. don't try to sneak it in from a side thread, it's giving main character energy only π
π¦ AVAILABILITY π¦
This function is available since SDL 3.2.0. so if you're on anything older... yeah, no. upgrade time π
β¨ reminder: every option, param and return value above is canon, i didn't make any of it up. go flash responsibly π
and that's the whole page, bestie!! π source is Simple Directmedia Layer, running SDL 3.4.18, dated SDL_FlashWindow(3) β mwah, 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