---
name: "SDL_GetTrayEntryChecked"
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_GetTrayEntryChecked"
---

# SDL\_GetTrayEntryChecked(3)

Gets whether or not an entry is checked.

## NAME

SDL\_GetTrayEntryChecked - Gets whether or not an entry is checked.

## HEADER FILE

Defined in SDL3/SDL\_tray.h

## SYNOPSIS

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

**bool SDL\_GetTrayEntryChecked(SDL\_TrayEntry \*entry);**

## DESCRIPTION

The entry must have been created with the

**SDL\_TRAYENTRY\_CHECKBOX**\
  flag.

## FUNCTION PARAMETERS

- *entry*

  the entry to be read.

## RETURN VALUE

Returns true if the entry is checked; false otherwise.

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