--- hatari/src/includes/sdlgui.h 2019/04/01 07:12:37 1.1.1.6 +++ hatari/src/includes/sdlgui.h 2019/04/01 07:14:43 1.1.1.8 @@ -25,8 +25,10 @@ enum /* Object flags: */ -#define SG_TOUCHEXIT 1 -#define SG_EXIT 2 /* Not yet tested */ +#define SG_TOUCHEXIT 1 /* Exit immediately when mouse button is pressed down */ +#define SG_EXIT 2 /* Exit when mouse button has been pressed (and released) */ +#define SG_DEFAULT 4 /* Marks a default button, selectable with return key */ +#define SG_CANCEL 8 /* Marks a cancel button, selectable with ESC key */ /* Object states: */ #define SG_SELECTED 1 @@ -60,9 +62,12 @@ typedef struct extern int SDLGui_Init(void); extern int SDLGui_UnInit(void); extern int SDLGui_SetScreen(SDL_Surface *pScrn); +extern void SDLGui_GetFontSize(int *width, int *height); +extern void SDLGui_Text(int x, int y, const char *txt); extern void SDLGui_DrawDialog(const SGOBJ *dlg); extern int SDLGui_DoDialog(SGOBJ *dlg, SDL_Event *pEventOut); extern void SDLGui_CenterDlg(SGOBJ *dlg); -extern int SDLGui_FileSelect(char *path_and_name, char *zip_path, BOOL bAllowNew); +extern char* SDLGui_FileSelect(const char *path_and_name, char **zip_path, bool bAllowNew); +extern bool SDLGui_FileConfSelect(char *dlgname, char *confname, int maxlen, bool bAllowNew); #endif