|
|
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,
1.1.1.3 ! root 19: SGEDITFIELD,
1.1 root 20: SGBUTTON,
21: SGRADIOBUT,
22: SGCHECKBOX,
23: SGPOPUP
24: };
25:
26:
27: /* Object flags: */
28: #define SG_TOUCHEXIT 1
29: #define SG_EXIT 2 /* Not yet tested */
30:
31: /* Object states: */
32: #define SG_SELECTED 1
33:
1.1.1.3 ! root 34: /* Special characters: */
! 35: #define SGRADIOBUTTON_NORMAL 12
! 36: #define SGRADIOBUTTON_SELECTED 13
! 37: #define SGCHECKBOX_NORMAL 14
! 38: #define SGCHECKBOX_SELECTED 15
! 39: #define SGARROWUP 1
! 40: #define SGARROWDOWN 2
! 41: #define SGFOLDER 5
! 42:
1.1 root 43:
44: typedef struct
45: {
46: int type; /* What type of object */
47: int flags; /* Object flags */
48: int state; /* Object state */
49: int x, y; /* The offset to the upper left corner */
50: int w, h; /* Width and height */
51: char *txt; /* Text string */
52: } SGOBJ;
53:
54:
1.1.1.3 ! root 55: extern int SDLGui_Init(void);
! 56: extern int SDLGui_UnInit(void);
! 57: extern int SDLGui_PrepareFont(void);
! 58: extern int SDLGui_DoDialog(SGOBJ *dlg);
! 59: extern void SDLGui_CenterDlg(SGOBJ *dlg);
! 60:
! 61: /* prototypes for gui-sdl/dlg*.c functions */
! 62: extern int Dialog_MainDlg(BOOL *bReset);
! 63: extern int SDLGui_FileSelect(char *path_and_name, char *zip_path, BOOL bAllowNew);
! 64: extern void Dialog_AboutDlg(void);
! 65: extern void Dialog_DeviceDlg(void);
! 66: extern void Dialog_DiscDlg(void);
! 67: extern void Dialog_JoyDlg(void);
! 68: extern void Dialog_KeyboardDlg(void);
! 69: extern void Dialog_MemDlg(void);
! 70: extern void DlgNewDisc_Main(void);
! 71: extern void Dialog_ScreenDlg(void);
! 72: extern void Dialog_SoundDlg(void);
! 73: extern void Dialog_SystemDlg(void);
! 74: extern void Dialog_TosGemDlg(void);
1.1.1.2 root 75:
76: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.