logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetTrayMenuParentTray - Gets the tray for which this menu is the first-level menu, if the current

Availability

       This function is available since SDL 3.2.0.

Description

       Either this function or

       SDL_GetTrayMenuParentEntry () will return non-NULL for any given menu.

Function Parameters

menu   the menu for which to get the parent enttrayry.

Header File

       Defined in SDL3/SDL_tray.h

Name

       SDL_GetTrayMenuParentTray  -  Gets  the  tray for which this menu is the first-level menu, if the current
       menu isn't a submenu.

Return Value

       ( SDL_Tray
        *) Returns the parent tray, or NULL if this menu is a submenu.

See Also

(3), SDL_CreateTrayMenu(3), (3), SDL_GetTrayMenuParentEntry(3)

Simple Directmedia Layer                           SDL 3.2.10                       SDL_GetTrayMenuParentTray(3)

Synopsis

#include"SDL3/SDL.h"SDL_Tray*SDL_GetTrayMenuParentTray(SDL_TrayMenu*menu);

Thread Safety

       This function should be called on the thread that created the tray.

See Also