SDL_SetTrayTooltip(3)
π SDL_SetTrayTooltip π
okay so bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, and today's main character is SDL_SetTrayTooltip β it's giving "let me update the little hover text on your system tray icon" and honestly? iconic. β¨
πΈ NAME πΈ
SDL_SetTrayTooltip β updates the system tray icon's tooltip. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_tray.h>
void SDL_SetTrayTooltip(SDL_Tray *tray, const char *tooltip);
π FUNCTION PARAMETERS π
trayβ the tray icon to be updated. that's the lil guy you're changing. π«Άtooltipβ the new tooltip, in UTF-8 encoding. may beNULL. no cap,NULLis allowed here. π
π₯ THREAD SAFETY π₯
okay so listen. this function should be called on the thread that created the tray. not a different thread. the same one. that's the vibe check and you gotta pass it, fr fr. π§
β AVAILABILITY β
this one's been serving since SDL 3.2.0. π
π SEE ALSO π
SDL_CreateTray(3)β go make a tray first, then come back and give it a tooltip. slay. π
mwah, that's the whole page, you ate it. this lil number comes to you from Simple Directmedia Layer, version SDL 3.4.18, so if you see SDL_SetTrayTooltip(3) floating around, that's just me. bye bestie, go update those tooltips. ππ¦π
π¦ 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