|
|
1.1 root 1: /* 1.1.1.2 ! root 2: Hatari - sdlgui.h ! 3: ! 4: This file is distributed under the GNU Public License, version 2 or at ! 5: your option any later version. Read the file gpl.txt for details. 1.1 root 6: 7: Header for the tiny graphical user interface for Hatari. 8: */ 9: 1.1.1.2 ! root 10: #ifndef HATARI_SDLGUI_H ! 11: #define HATARI_SDLGUI_H ! 12: 1.1 root 13: #include <SDL.h> 14: 15: enum 16: { 17: SGBOX, 18: SGTEXT, 19: SGBUTTON, 20: SGRADIOBUT, 21: SGCHECKBOX, 22: SGPOPUP 23: }; 24: 25: 26: /* Object flags: */ 27: #define SG_TOUCHEXIT 1 28: #define SG_EXIT 2 /* Not yet tested */ 29: 30: /* Object states: */ 31: #define SG_SELECTED 1 32: 33: 34: typedef struct 35: { 36: int type; /* What type of object */ 37: int flags; /* Object flags */ 38: int state; /* Object state */ 39: int x, y; /* The offset to the upper left corner */ 40: int w, h; /* Width and height */ 41: char *txt; /* Text string */ 42: } SGOBJ; 43: 44: 45: int SDLGui_Init(void); 46: int SDLGui_UnInit(void); 47: int SDLGui_DoDialog(SGOBJ *dlg); 48: int SDLGui_PrepareFont(void); 49: void SDLGui_CenterDlg(SGOBJ *dlg); 1.1.1.2 ! root 50: int SDLGui_FileSelect(char *path_and_name, char *zip_path); ! 51: ! 52: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.