DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetTrayEntries.3.en
SDL_GetTrayEntries(3) SDL3 FUNCTIONS SDL_GetTrayEntries(3)

SDL_GetTrayEntries - Returns a list of entries in the menu, in order.

Defined in SDL3/SDL_tray.h

#include "SDL3/SDL.h"
const SDL_TrayEntry ** SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count);

The menu to get entries from.
An optional pointer to obtain the number of entries in the menu.

(const SDL_TrayEntry ) Returns a NULL-terminated list of entries within the given menu. The pointer becomes invalid when any function that inserts or deletes entries in the menu is called.

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

This function is available since SDL 3.2.0.

(3), SDL_RemoveTrayEntry(3), (3), SDL_InsertTrayEntryAt(3)

SDL 3.2.10 Simple Directmedia Layer