From 27b931a8a072dd45429db7557a48c72696a9f783 Mon Sep 17 00:00:00 2001 From: SDL Wiki Bot Date: Fri, 3 May 2024 18:11:35 +0000 Subject: [PATCH] Sync SDL3 wiki -> header --- include/SDL3/SDL_dialog.h | 50 +++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/include/SDL3/SDL_dialog.h b/include/SDL3/SDL_dialog.h index bcbb0738f0..4f4acbd130 100644 --- a/include/SDL3/SDL_dialog.h +++ b/include/SDL3/SDL_dialog.h @@ -104,16 +104,16 @@ typedef void(SDLCALL *SDL_DialogFileCallback)(void *userdata, const char * const * \param callback An SDL_DialogFileCallback to be invoked when the user * selects a file and accepts, or cancels the dialog, or an * error occurs. The first argument is a null-terminated list - * of C strings, representing the paths chosen by the user. The - * list will be empty if the user canceled the dialog, and it - * will be NULL if an error occured. If an error occured, it - * can be fetched with SDL_GetError(). The second argument is - * the userdata pointer passed to the function. The third - * argument is the index of the filter selected by the user, or - * one past the index of the last filter (therefore the index - * of the terminating NULL filter) if no filter was chosen, or - * -1 if the platform does not support detecting the selected - * filter. + * of C strings, representing the paths chosen by the user. + * The list will be empty if the user canceled the dialog, and + * it will be NULL if an error occured. If an error occured, + * it can be fetched with SDL_GetError(). The second argument + * is the userdata pointer passed to the function. The third + * argument is the index of the filter selected by the user, + * or one past the index of the last filter (therefore the + * index of the terminating NULL filter) if no filter was + * chosen, or -1 if the platform does not support detecting + * the selected filter. * \param userdata An optional pointer to pass extra data to the callback when * it will be invoked. * \param window The window that the dialog should be modal for. May be NULL. @@ -156,16 +156,16 @@ extern DECLSPEC void SDLCALL SDL_ShowOpenFileDialog(SDL_DialogFileCallback callb * \param callback An SDL_DialogFileCallback to be invoked when the user * selects a file and accepts, or cancels the dialog, or an * error occurs. The first argument is a null-terminated list - * of C strings, representing the paths chosen by the user. The - * list will be empty if the user canceled the dialog, and it - * will be NULL if an error occured. If an error occured, it - * can be fetched with SDL_GetError(). The second argument is - * the userdata pointer passed to the function. The third - * argument is the index of the filter selected by the user, or - * one past the index of the last filter (therefore the index - * of the terminating NULL filter) if no filter was chosen, or - * -1 if the platform does not support detecting the selected - * filter. + * of C strings, representing the paths chosen by the user. + * The list will be empty if the user canceled the dialog, and + * it will be NULL if an error occured. If an error occured, + * it can be fetched with SDL_GetError(). The second argument + * is the userdata pointer passed to the function. The third + * argument is the index of the filter selected by the user, + * or one past the index of the last filter (therefore the + * index of the terminating NULL filter) if no filter was + * chosen, or -1 if the platform does not support detecting + * the selected filter. * \param userdata An optional pointer to pass extra data to the callback when * it will be invoked. * \param window The window that the dialog should be modal for. May be NULL. @@ -206,11 +206,11 @@ extern DECLSPEC void SDLCALL SDL_ShowSaveFileDialog(SDL_DialogFileCallback callb * \param callback An SDL_DialogFileCallback to be invoked when the user * selects a file and accepts, or cancels the dialog, or an * error occurs. The first argument is a null-terminated list - * of C strings, representing the paths chosen by the user. The - * list will be empty if the user canceled the dialog, and it - * will be NULL if an error occured. If an error occured, it - * can be fetched with SDL_GetError(). The second argument is - * the userdata pointer passed to the function. The third + * of C strings, representing the paths chosen by the user. + * The list will be empty if the user canceled the dialog, and + * it will be NULL if an error occured. If an error occured, + * it can be fetched with SDL_GetError(). The second argument + * is the userdata pointer passed to the function. The third * argument is always -1 for SDL_ShowOpenFolderDialog. * \param userdata An optional pointer to pass extra data to the callback when * it will be invoked.