SDL_GetTrayMenuParentTray(3)
πΈ NAME πΈ
SDL_GetTrayMenuParentTray β bestie, this one grabs the tray that this menu is the first-level menu of... but only if the menu you're holding isn't a submenu. iykyk π
(also hi yes this is from the SDL3 manual, the SDL3 FUNCTIONS corner of the internet, we're home π«Ά)
β¨ SYNOPSIS β¨
#include <SDL3/SDL_tray.h>
SDL_Tray * SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu);
π¦ DESCRIPTION π¦
okay so listen. for any menu you've got, exactly one of these two functions is gonna hand you a non-NULL answer: this one, or SDL_GetTrayMenuParentEntry(). not both, not neither. it's giving "pick a lane, one of us has your back" π
π FUNCTION PARAMETERS π
menuβ the menu whose parent tray you're tryna find. like, "hey who's your tray bestie" π₯Ί
π RETURN VALUE π
returns the parent tray π ...or NULL if this menu is actually a submenu, in which case sorry babe, this function isn't your girl π
π§ THREAD SAFETY π§
call this on the same thread that created the tray. no cap. don't be out here threading chaos into your tray menus, that's not the vibe π
β AVAILABILITY β
this beauty has been around since SDL 3.2.0 β¨
π₯ SEE ALSO π₯
and that's the whole page, bestie!! this little slice of the manual is brought to you by Simple Directmedia Layer, version SDL 3.4.18 β go forth, find those parent trays, and slay π ππ¦π
π¦ 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