SDL_SetWindowProgressState(3)
β¨ NAME β¨
SDL_SetWindowProgressState β bestie, this one sets the state of the progress bar for the given window's taskbar icon π
Like. Your app is doing a Thing. And you want the lil taskbar icon to say that. This is the function that says it. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
bool SDL_SetWindowProgressState(SDL_Window *window, SDL_ProgressState state);
π FUNCTION PARAMETERS π
windowβ the window whose progress state is to be modified. Yes, this window, the one you're pointing at. π«Άstateβ the progress state. And listen, super important:SDL_PROGRESS_STATE_NONEstops displaying the progress bar. Poof. Gone. No bar. π«₯
β RETURN VALUE β
Returns true on success or false on failure β no in-between, it's giving binary icon behaviour honestly π
If it fails, call SDL_GetError() for more information. She will tell you what went wrong. Always ask her. π
π§ THREAD SAFETY π§
This function should only be called on the main thread.
Not me calling this from a worker thread π do NOT do that. Main thread only. Periodt. π
π AVAILABILITY π
This function is available since SDL 3.4.0. So if you're on something older, that's a you problem bestie, go update π₯
okay that's literally it, go make your taskbar icon glow up β¨π¦π
Signed, sealed, delivered by the Simple Directmedia Layer girlies β this is SDL 3.4.18 energy, mwah ππ
π¦ 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