[][src]Function sdl2_sys::SDL_ShowMessageBox

pub unsafe extern "C" fn SDL_ShowMessageBox(
    messageboxdata: *const SDL_MessageBoxData,
    buttonid: *mut c_int
) -> c_int

\brief Create a modal message box.

\param messageboxdata The SDL_MessageBoxData structure with title, text, etc. \param buttonid The pointer to which user id of hit button should be copied.

\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.