---
name: "SDL_GetTrayEntries"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetTrayEntries"
---

# SDL\_GetTrayEntries(3)

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

## NAME

SDL\_GetTrayEntries - Returns a list of entries in the menu, in order.

## HEADER FILE

Defined in SDL3/SDL\_tray.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**const SDL\_TrayEntry \*\* SDL\_GetTrayEntries(SDL\_TrayMenu \*menu, int \*count);**

## FUNCTION PARAMETERS

- *menu*

  The menu to get entries from.

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

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_RemoveTrayEntry**(3)](/SDL_RemoveTrayEntry/3.md), **•**(3), [**SDL\_InsertTrayEntryAt**(3)](/SDL_InsertTrayEntryAt/3.md)
