--- hatari/src/includes/sdlgui.h 2019/04/09 08:55:38 1.1.1.12 +++ hatari/src/includes/sdlgui.h 2019/04/09 08:56:51 1.1.1.13 @@ -12,8 +12,10 @@ #include +/* object types: */ enum { + SGSTOP = -1, /* type used at end of dialog to terminate it */ SGBOX, SGTEXT, SGEDITFIELD, @@ -30,7 +32,6 @@ enum #define SG_EXIT 2 /* Exit when mouse button has been pressed (and released) */ #define SG_DEFAULT 4 /* Marks a default button, selectable with Enter & Return keys */ #define SG_CANCEL 8 /* Marks a cancel button, selectable with ESC key */ -#define SG_SHORTCUT 16 /* Marks a shortcut button, selectable with masked letter */ /* Object states: */ #define SG_SELECTED 1 @@ -53,11 +54,11 @@ enum #define SGARROWDOWN 2 #define SGFOLDER 5 -/* Return codes: */ +/* Object matching return codes: (negative so they aren't mixed with object indeces) */ #define SDLGUI_ERROR -1 #define SDLGUI_QUIT -2 #define SDLGUI_UNKNOWNEVENT -3 - +#define SDLGUI_NOTFOUND -4 typedef struct {