|
|
Tom Morton
/*
Hatari - sdlgui.h
This file is distributed under the GNU Public License, version 2 or at
your option any later version. Read the file gpl.txt for details.
Header for the tiny graphical user interface for Hatari.
*/
#ifndef HATARI_SDLGUI_H
#define HATARI_SDLGUI_H
#include <SDL.h>
enum
{
SGBOX,
SGTEXT,
SGBUTTON,
SGRADIOBUT,
SGCHECKBOX,
SGPOPUP
};
/* Object flags: */
#define SG_TOUCHEXIT 1
#define SG_EXIT 2 /* Not yet tested */
/* Object states: */
#define SG_SELECTED 1
typedef struct
{
int type; /* What type of object */
int flags; /* Object flags */
int state; /* Object state */
int x, y; /* The offset to the upper left corner */
int w, h; /* Width and height */
char *txt; /* Text string */
} SGOBJ;
int SDLGui_Init(void);
int SDLGui_UnInit(void);
int SDLGui_DoDialog(SGOBJ *dlg);
int SDLGui_PrepareFont(void);
void SDLGui_CenterDlg(SGOBJ *dlg);
int SDLGui_FileSelect(char *path_and_name, char *zip_path);
#endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.