SDL_GetTrayEntryParent(3)
π SDL_GetTrayEntryParent(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, we're doing SDL_GetTrayEntryParent today and honestly? it's giving "short and sweet and does exactly what it says" β¨
πΈ NAME πΈ
SDL_GetTrayEntryParent β gets the menu containing a certain tray entry. that's it. that's the whole job. no cap π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_tray.h>
SDL_TrayMenu * SDL_GetTrayEntryParent(SDL_TrayEntry *entry);
like, look at that signature. one param in, one menu out. iconic π
π¦ FUNCTION PARAMETERS π¦
entryβ the entry for which to get the parent menu. you hand it a tray entry, it tells you which menu that entry is living in π
π RETURN VALUE π
Returns the parent menu. the menu that contains your entry, fr fr. that's the whole return value, she's not complicated π
π§ THREAD SAFETY π§
β οΈ bestie listen β this function should be called on the thread that created the tray. don't be out here calling it from some random other thread, that's not the vibe π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on anything older, sorry babe, she's not there yet π
π SEE ALSO π
SDL_InsertTrayEntryAt(3)β go read that one too, it's the sibling energy you're looking for π«Ά
and that's the whole page, you ate it, no crumbs left π
mwah β this was Simple Directmedia Layer, SDL 3.4.18, and yes this gorgeous page is literally named SDL_GetTrayEntryParent(3). go get that parent menu, main character πβ¨
π¦ 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