.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_ShowSimpleMessageBox: .\" https://wiki.libsdl.org/SDL_ShowSimpleMessageBox .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision SDL-3.1.0 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_ShowSimpleMessageBox .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_ShowSimpleMessageBox 3 "SDL 3.1.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_ShowSimpleMessageBox \- Display a simple modal message box\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "int SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window); .fi .SH DESCRIPTION If your needs aren't complex, this function is preferred over .BR SDL_ShowMessageBox \[char46] .BR flags may be any of the following: \(bu .BR .BR SDL_MESSAGEBOX_ERROR : error dialog \(bu .BR .BR SDL_MESSAGEBOX_WARNING : warning dialog \(bu .BR .BR SDL_MESSAGEBOX_INFORMATION : informational dialog This function should be called on the thread that created the parent window, or on the main thread if the messagebox has no parent\[char46] It will block execution of that thread until the user clicks a button or closes the messagebox\[char46] This function may be called at any time, even before .BR SDL_Init ()\[char46] This makes it useful for reporting errors like a failure to create a renderer or OpenGL context\[char46] On X11, SDL rolls its own dialog box with X11 primitives instead of a formal toolkit like GTK+ or Qt\[char46] Note that if .BR SDL_Init () would fail because there isn't any available video target, this function is likely to fail for the same reasons\[char46] If this is a concern, check the return value from this function and fall back to writing to stderr if you can\[char46] .SH FUNCTION PARAMETERS .TP .I flags an .BR SDL_MessageBoxFlags value .TP .I title UTF-8 title text .TP .I message UTF-8 message text .TP .I window the parent window, or NULL for no parent .SH RETURN VALUE Returns 0 on success or a negative error code on failure; call .BR SDL_GetError () for more information\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR SDL_ShowMessageBox (3)