SDL_DialogFileFilter(3type)

SDL_DialogFileFilter3type

An entry for filters for file dialogs.

Usage

#include "SDL3/SDL.h"

typedef struct SDL_DialogFileFilter { const char *name; const char *pattern; } SDL_DialogFileFilter;

Header file

Defined in SDL3/SDL_dialog.h

Overview

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.