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

# SDL\_DialogFileFilter(3type)

An entry for filters for file dialogs.

## NAME

SDL\_DialogFileFilter - An entry for filters for file dialogs.

## HEADER FILE

Defined in SDL3/SDL\_dialog.h

## SYNOPSIS

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

**typedef struct SDL\_DialogFileFilter** **{**     **const char \*name;**     **const char \*pattern;** **} SDL\_DialogFileFilter;**

## DESCRIPTION

**name** is a user-readable label for the filter (for example, "Office document"). **pattern** is a semicolon-separated list of file extensions (for example, "doc;docx"). File extensions may only contain alphanumeric characters, hyphens, underscores and periods. Alternatively, the whole string can be a single asterisk ("\*"), which serves as an "All files" filter.

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_DialogFileCallback**(3type)](/SDL_DialogFileCallback/3type.md), **•**(3), [**SDL\_ShowOpenFileDialog**(3)](/SDL_ShowOpenFileDialog/3.md), **•**(3), [**SDL\_ShowSaveFileDialog**(3)](/SDL_ShowSaveFileDialog/3.md), **•**(3), [**SDL\_ShowOpenFolderDialog**(3)](/SDL_ShowOpenFolderDialog/3.md), **•**(3), [**SDL\_ShowFileDialogWithProperties**(3)](/SDL_ShowFileDialogWithProperties/3.md)
