sdl.dialog

SDL Dialog

Members

Aliases

SDL_DialogFileCallback
alias SDL_DialogFileCallback = void function(void* userdata, const(const(char)*)* filelist, int filter)

Callback used by file dialog functions.

Enums

SDL_FileDialogType
enum SDL_FileDialogType

Various types of file dialogs.

Functions

SDL_ShowFileDialogWithProperties
void SDL_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFileCallback callback, void* userdata, SDL_PropertiesID props)

Create and launch a file dialog with the specified properties.

SDL_ShowOpenFileDialog
void SDL_ShowOpenFileDialog(SDL_DialogFileCallback callback, void* userdata, SDL_Window* window, const(SDL_DialogFileFilter)** filters, int nfilters, const(char)** default_location, bool allow_many)

Displays a dialog that lets the user select a file on their filesystem.

SDL_ShowOpenFolderDialog
void SDL_ShowOpenFolderDialog(SDL_DialogFileCallback callback, void* userdata, SDL_Window* window, const(char)** default_location, bool allow_many)

Displays a dialog that lets the user select a folder on their filesystem.

SDL_ShowSaveFileDialog
void SDL_ShowSaveFileDialog(SDL_DialogFileCallback callback, void* userdata, SDL_Window* window, const(SDL_DialogFileFilter)** filters, int nfilters, const(char)** default_location)

Displays a dialog that lets the user choose a new or existing file on their filesystem.

Manifest constants

SDL_PROP_FILE_DIALOG_ACCEPT_STRING
enum SDL_PROP_FILE_DIALOG_ACCEPT_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_CANCEL_STRING
enum SDL_PROP_FILE_DIALOG_CANCEL_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_FILTERS_POINTER
enum SDL_PROP_FILE_DIALOG_FILTERS_POINTER;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_LOCATION_STRING
enum SDL_PROP_FILE_DIALOG_LOCATION_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_MANY_BOOLEAN
enum SDL_PROP_FILE_DIALOG_MANY_BOOLEAN;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_NFILTERS_NUMBER
enum SDL_PROP_FILE_DIALOG_NFILTERS_NUMBER;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_TITLE_STRING
enum SDL_PROP_FILE_DIALOG_TITLE_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_FILE_DIALOG_WINDOW_POINTER
enum SDL_PROP_FILE_DIALOG_WINDOW_POINTER;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

SDL_DialogFileFilter
struct SDL_DialogFileFilter

An entry for filters for file dialogs.

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen