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_GetTrayMenuParentEntry - Gets the entry for which the menu is a submenu, if the current menu is a

Availability

       This function is available since SDL 3.2.0.

Description

       Either this function or

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

Function Parameters

menu   the menu for which to get the parent entry.

Header File

       Defined in SDL3/SDL_tray.h

Name

       SDL_GetTrayMenuParentEntry  -  Gets  the  entry for which the menu is a submenu, if the current menu is a
       submenu.

Return Value

       ( SDL_TrayEntry
        *) Returns the parent entry, or NULL if this menu is not a submenu.

See Also

(3), SDL_CreateTraySubmenu(3), (3), SDL_GetTrayMenuParentTray(3)

Simple Directmedia Layer                           SDL 3.2.10                      SDL_GetTrayMenuParentEntry(3)

Synopsis

#include"SDL3/SDL.h"SDL_TrayEntry*SDL_GetTrayMenuParentEntry(SDL_TrayMenu*menu);

Thread Safety

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

See Also