SDL_GetTrayMenuParentTray(3)

SDL_GetTrayMenuParentTray3

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

Usage

#include "SDL3/SDL.h"

SDL_Tray * SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu);

Header file

Defined in SDL3/SDL_tray.h

Overview

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.

Return value

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

Thread safety

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

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.