Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added some documentation on the behavior of SDL_ShowMessageBox()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 30, 2012
1 parent aed432b commit 1eeaace
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/SDL_messagebox.h
Expand Up @@ -111,6 +111,11 @@ typedef struct
*
* \return -1 on error, otherwise 0 and buttonid contains user id of button
* hit or -1 if dialog was closed.
*
* \note This function should be called on the thread that created the parent
* window, or on the main thread if the messagebox has no parent. It will
* block execution of that thread until the user clicks a button or
* closes the messagebox.
*/
extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);

Expand All @@ -123,6 +128,8 @@ extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *message
* \param window The parent window, or NULL for no parent
*
* \return 0 on success, -1 on error
*
* \sa SDL_ShowMessageBox
*/
extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window);

Expand Down

0 comments on commit 1eeaace

Please sign in to comment.