Module dialog
Available on crate feature
dep_sdl3
only.Expand description
File dialog support.
SDL offers file dialogs, to let users select files with native GUI interfaces. There are “open” dialogs, “save” dialogs, and folder selection dialogs. The app can control some details, such as filtering to specific files, or whether multiple files can be selected by the user.
Note that launching a file dialog is a non-blocking operation; control returns to the app immediately, and a callback is called later (possibly in another thread) when the user makes a choice.
Structs§
- SDL_
Dialog File Filter - An entry for filters for file dialogs.
- SDL_
File Dialog Type - Various types of file dialogs.
Constants§
- SDL_
FILEDIALOG_ OPENFILE - SDL_
FILEDIALOG_ OPENFOLDER - SDL_
FILEDIALOG_ SAVEFILE - SDL_
PROP_ FILE_ DIALOG_ ACCEPT_ STRING - SDL_
PROP_ FILE_ DIALOG_ CANCEL_ STRING - SDL_
PROP_ FILE_ DIALOG_ FILTERS_ POINTER - SDL_
PROP_ FILE_ DIALOG_ LOCATION_ STRING - SDL_
PROP_ FILE_ DIALOG_ MANY_ BOOLEAN - SDL_
PROP_ FILE_ DIALOG_ NFILTERS_ NUMBER - SDL_
PROP_ FILE_ DIALOG_ TITLE_ STRING - SDL_
PROP_ FILE_ DIALOG_ WINDOW_ POINTER
Functions§
- SDL_
Show ⚠File Dialog With Properties - Create and launch a file dialog with the specified properties.
- SDL_
Show ⚠Open File Dialog - Displays a dialog that lets the user select a file on their filesystem.
- SDL_
Show ⚠Open Folder Dialog - Displays a dialog that lets the user select a folder on their filesystem.
- SDL_
Show ⚠Save File Dialog - Displays a dialog that lets the user choose a new or existing file on their filesystem.
Type Aliases§
- SDL_
Dialog File Callback - Callback used by file dialog functions.