Go to the documentation of this file.
47 "This is a custom messagebox",
55 data.buttons = buttons;
57 data.message =
"This is a custom messagebox from a background thread.";
65 event.type = (intptr_t)eventNumber;
76 event.type = (intptr_t)eventNumber;
84 main(
int argc,
char *argv[])
93 "This is a simple error MessageBox",
102 "This is a simple MessageBox with a newline:\r\nHello world!",
111 "UTF-8 Simple MessageBox",
112 "Unicode text: '牛肉西蘭花' ...",
121 "UTF-8 Simple MessageBox",
122 "Unicode text and newline:\r\n'牛肉西蘭花'\n'牛肉西蘭花'",
132 "Unicode text in the title.",
159 if (
event.type == eventNumber) {
166 SDL_Log(
"Message box thread return %i\n", status);
176 "This is a simple error MessageBox with a parent window",
#define SDL_CreateThread(fn, name, data)
@ SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT
#define SDL_WINDOWPOS_CENTERED
A user-defined event type (event.user.*)
static int button_messagebox(void *eventNumber)
#define SDL_RegisterEvents
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
The type used to identify a window.
#define SDL_ShowSimpleMessageBox
EGLSurface EGLNativeWindowType * window
@ SDL_LOG_CATEGORY_APPLICATION
MessageBox structure containing title, text, window, etc.
int main(int argc, char *argv[])
@ SDL_MESSAGEBOX_INFORMATION
@ SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT
#define SDL_LogSetPriority
#define SDL_ShowMessageBox