123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- #ifndef SDL_messagebox_h_
- #define SDL_messagebox_h_
- #include "SDL_stdinc.h"
- #include "SDL_video.h"
- #include "begin_code.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef enum
- {
- SDL_MESSAGEBOX_ERROR = 0x00000010,
- SDL_MESSAGEBOX_WARNING = 0x00000020,
- SDL_MESSAGEBOX_INFORMATION = 0x00000040,
- SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT = 0x00000080,
- SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT = 0x00000100
- } SDL_MessageBoxFlags;
- typedef enum
- {
- SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001,
- SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002
- } SDL_MessageBoxButtonFlags;
- typedef struct
- {
- Uint32 flags;
- int buttonid;
- const char * text;
- } SDL_MessageBoxButtonData;
- typedef struct
- {
- Uint8 r, g, b;
- } SDL_MessageBoxColor;
- typedef enum
- {
- 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
- } SDL_MessageBoxColorType;
- typedef struct
- {
- SDL_MessageBoxColor colors[SDL_MESSAGEBOX_COLOR_MAX];
- } SDL_MessageBoxColorScheme;
- typedef struct
- {
- Uint32 flags;
- SDL_Window *window;
- const char *title;
- const char *message;
- int numbuttons;
- const SDL_MessageBoxButtonData *buttons;
- const SDL_MessageBoxColorScheme *colorScheme;
- } SDL_MessageBoxData;
- extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
- extern DECLSPEC int SDLCALL SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window);
- #ifdef __cplusplus
- }
- #endif
- #include "close_code.h"
- #endif
|