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 πŸ‘‘


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