---
name: "SDL_GetTrayEntryLabel"
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_GetTrayEntryLabel"
---

# SDL\_GetTrayEntryLabel(3)

Gets the label of an entry.

## NAME

SDL\_GetTrayEntryLabel - Gets the label of an entry.

## HEADER FILE

Defined in SDL3/SDL\_tray.h

## SYNOPSIS

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

**const char \* SDL\_GetTrayEntryLabel(SDL\_TrayEntry \*entry);**

## DESCRIPTION

If the returned value is NULL, the entry is a separator.

## FUNCTION PARAMETERS

- *entry*

  the entry to be read.

## RETURN VALUE

Returns the label of the entry in UTF-8 encoding.

## 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\_GetTrayEntries**(3)](/SDL_GetTrayEntries/3.md), **•**(3), [**SDL\_InsertTrayEntryAt**(3)](/SDL_InsertTrayEntryAt/3.md), **•**(3), [**SDL\_SetTrayEntryLabel**(3)](/SDL_SetTrayEntryLabel/3.md)
