---
name: "SDL_GetTrayEntryParent"
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_GetTrayEntryParent"
---

# SDL\_GetTrayEntryParent(3)

Gets the menu containing a certain tray entry.

## NAME

SDL\_GetTrayEntryParent - Gets the menu containing a certain tray entry.

## HEADER FILE

Defined in SDL3/SDL\_tray.h

## SYNOPSIS

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

**SDL\_TrayMenu \* SDL\_GetTrayEntryParent(SDL\_TrayEntry \*entry);**

## FUNCTION PARAMETERS

- *entry*

  the entry for which to get the parent menu.

## RETURN VALUE

( **SDL\_TrayMenu**\
  \*) Returns the parent menu.

## 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\_InsertTrayEntryAt**(3)](/SDL_InsertTrayEntryAt/3.md)
