SDL Wiki

SDL_GetTrayEntries

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

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

const SDL_TrayEntry ** SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count);

Function Parameters

SDL_TrayMenu * menu The menu to get entries from.
int * count An optional pointer to obtain the number of entries in the menu.

Return Value

(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.

Thread Safety

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

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryTray


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.