include/SDL_messagebox.h
changeset 6613 0a8672b04b00
parent 6602 533131e24aeb
child 6679 9f0d4046f3d6
equal deleted inserted replaced
6612:9a22ac8befa9 6613:0a8672b04b00
   109  *
   109  *
   110  *  \param messagebox The SDL_MessageBox structure with title, text, etc.
   110  *  \param messagebox The SDL_MessageBox structure with title, text, etc.
   111  *
   111  *
   112  *  \return -1 on error, otherwise 0 and buttonid contains user id of button
   112  *  \return -1 on error, otherwise 0 and buttonid contains user id of button
   113  *          hit or -1 if dialog was closed.
   113  *          hit or -1 if dialog was closed.
       
   114  *
       
   115  *  \note This function should be called on the thread that created the parent
       
   116  *        window, or on the main thread if the messagebox has no parent.  It will
       
   117  *        block execution of that thread until the user clicks a button or
       
   118  *        closes the messagebox.
   114  */
   119  */
   115 extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
   120 extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
   116 
   121 
   117 /**
   122 /**
   118  *  \brief Create a simple modal message box
   123  *  \brief Create a simple modal message box
   121  *  \param title    UTF-8 title text
   126  *  \param title    UTF-8 title text
   122  *  \param message  UTF-8 message text
   127  *  \param message  UTF-8 message text
   123  *  \param window   The parent window, or NULL for no parent
   128  *  \param window   The parent window, or NULL for no parent
   124  *
   129  *
   125  *  \return 0 on success, -1 on error
   130  *  \return 0 on success, -1 on error
       
   131  *
       
   132  *  \sa SDL_ShowMessageBox
   126  */
   133  */
   127 extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window);
   134 extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window);
   128 
   135 
   129 
   136 
   130 /* Ends C function definitions when using C++ */
   137 /* Ends C function definitions when using C++ */