SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

SDL_ShowFileDialogWithProperties

Create and launch a file dialog with the specified properties.

Header File

Defined in <SDL3/SDL_dialog.h>

Syntax

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

Function Parameters

SDL_FileDialogType type the type of file dialog.
SDL_DialogFileCallback callback a function pointer to be invoked when the user selects a file and accepts, or cancels the dialog, or an error occurs.
void * userdata an optional pointer to pass extra data to the callback when it will be invoked.
SDL_PropertiesID props the properties to use.

Remarks

These are the supported properties:

Note that each platform may or may not support any of the properties.

Thread Safety

This function should be called only from the main thread. The callback may be invoked from the same thread or from a different one, depending on the OS's constraints.

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryDialog


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.