22 #ifndef SDL_messagebox_h_
23 #define SDL_messagebox_h_
39 SDL_MESSAGEBOX_ERROR = 0x00000010,
40 SDL_MESSAGEBOX_WARNING = 0x00000020,
41 SDL_MESSAGEBOX_INFORMATION = 0x00000040,
42 SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT = 0x00000080,
43 SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT = 0x00000100
44 } SDL_MessageBoxFlags;
51 SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001,
52 SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002
53 } SDL_MessageBoxButtonFlags;
75 SDL_MESSAGEBOX_COLOR_BACKGROUND,
76 SDL_MESSAGEBOX_COLOR_TEXT,
77 SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,
78 SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
79 SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,
80 SDL_MESSAGEBOX_COLOR_MAX
81 } SDL_MessageBoxColorType;
121 extern DECLSPEC
int SDLCALL SDL_ShowMessageBox(
const SDL_MessageBoxData *messageboxdata,
int *buttonid);
135 extern DECLSPEC
int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags,
const char *title,
const char *message,
SDL_Window *window);
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:90
A set of colors to use for message box dialogs.
Definition: SDL_messagebox.h:87
RGB value used in a message box color scheme.
Definition: SDL_messagebox.h:69
MessageBox structure containing title, text, window, etc.
Definition: SDL_messagebox.h:95
Uint32 flags
Definition: SDL_messagebox.h:96
const SDL_MessageBoxColorScheme * colorScheme
Definition: SDL_messagebox.h:104
SDL_Window * window
Definition: SDL_messagebox.h:97
const char * title
Definition: SDL_messagebox.h:98
const char * message
Definition: SDL_messagebox.h:99