|
SDL
2.0
|
Include dependency graph for SDL_messagebox.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | SDL_MessageBoxButtonData |
| Individual button data. More... | |
| struct | SDL_MessageBoxColor |
| RGB value used in a message box color scheme. More... | |
| struct | SDL_MessageBoxColorScheme |
| A set of colors to use for message box dialogs. More... | |
| struct | SDL_MessageBoxData |
| MessageBox structure containing title, text, window, etc. More... | |
Enumerations | |
| enum | SDL_MessageBoxFlags { SDL_MESSAGEBOX_ERROR = 0x00000010, SDL_MESSAGEBOX_WARNING = 0x00000020, SDL_MESSAGEBOX_INFORMATION = 0x00000040 } |
| SDL_MessageBox flags. If supported will display warning icon, etc. More... | |
| enum | SDL_MessageBoxButtonFlags { SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001, SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002 } |
| Flags for SDL_MessageBoxButtonData. More... | |
| enum | SDL_MessageBoxColorType { SDL_MESSAGEBOX_COLOR_BACKGROUND, SDL_MESSAGEBOX_COLOR_TEXT, SDL_MESSAGEBOX_COLOR_BUTTON_BORDER, SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND, SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED, SDL_MESSAGEBOX_COLOR_MAX } |
Functions | |
| int | SDL_ShowMessageBox (const SDL_MessageBoxData *messageboxdata, int *buttonid) |
| Create a modal message box. More... | |
| int | SDL_ShowSimpleMessageBox (Uint32 flags, const char *title, const char *message, SDL_Window *window) |
| Create a simple modal message box. More... | |
Flags for SDL_MessageBoxButtonData.
| Enumerator | |
|---|---|
| SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT | Marks the default button when return is hit |
| SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT | Marks the default button when escape is hit |
Definition at line 47 of file SDL_messagebox.h.
Definition at line 71 of file SDL_messagebox.h.
| enum SDL_MessageBoxFlags |
SDL_MessageBox flags. If supported will display warning icon, etc.
| Enumerator | |
|---|---|
| SDL_MESSAGEBOX_ERROR | error dialog |
| SDL_MESSAGEBOX_WARNING | warning dialog |
| SDL_MESSAGEBOX_INFORMATION | informational dialog |
Definition at line 37 of file SDL_messagebox.h.
| int SDL_ShowMessageBox | ( | const SDL_MessageBoxData * | messageboxdata, |
| int * | buttonid | ||
| ) |
Create a modal message box.
| messageboxdata | The SDL_MessageBoxData structure with title, text, etc. |
| buttonid | The pointer to which user id of hit button should be copied. |
Definition at line 3639 of file SDL_video.c.
References retval, SDL_CaptureMouse, SDL_FALSE, SDL_GetKeyboardFocus, SDL_GetRelativeMouseMode, SDL_GetWindowFlags(), SDL_InvalidParamError, SDL_MessageboxValidForDriver(), SDL_RaiseWindow(), SDL_ResetKeyboard(), SDL_SetError, SDL_SetRelativeMouseMode, SDL_ShowCursor, SDL_SYSWM_COCOA, SDL_SYSWM_UIKIT, SDL_SYSWM_WINDOWS, SDL_SYSWM_WINRT, SDL_SYSWM_X11, SDL_TRUE, SDL_WINDOW_MOUSE_CAPTURE, and SDL_VideoDevice::ShowMessageBox.
Referenced by SDL_ShowSimpleMessageBox().
| int SDL_ShowSimpleMessageBox | ( | Uint32 | flags, |
| const char * | title, | ||
| const char * | message, | ||
| SDL_Window * | window | ||
| ) |
Create a simple modal message box.
| flags | SDL_MessageBoxFlags |
| title | UTF-8 title text |
| message | UTF-8 message text |
| window | The parent window, or NULL for no parent |
Definition at line 3728 of file SDL_video.c.
References button, SDL_MessageBoxData::buttons, SDL_MessageBoxButtonData::flags, SDL_MessageBoxData::flags, SDL_MessageBoxData::message, NULL, SDL_MessageBoxData::numbuttons, SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT, SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT, SDL_ShowMessageBox(), SDL_zero, SDL_MessageBoxButtonData::text, SDL_MessageBoxData::title, window, and SDL_MessageBoxData::window.