SDL 3.0
SDL_DialogFileFilter Struct Reference

#include <SDL_dialog.h>

Data Fields

const char * name
 
const char * pattern
 

Detailed Description

CategoryDialog

File dialog support. An entry for filters for file dialogs.

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.

Since
This struct is available since SDL 3.0.0.
See also
SDL_DialogFileCallback
SDL_ShowOpenFileDialog
SDL_ShowSaveFileDialog
SDL_ShowOpenFolderDialog

Definition at line 58 of file SDL_dialog.h.

Field Documentation

◆ name

const char* SDL_DialogFileFilter::name

Definition at line 60 of file SDL_dialog.h.

◆ pattern

const char* SDL_DialogFileFilter::pattern

Definition at line 61 of file SDL_dialog.h.


The documentation for this struct was generated from the following file: