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 be NULL. no cap, NULL is 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